LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-24-2004, 05:56 AM   #1
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Rep: Reputation: 15
Firewall (Single Host)


Hi All,

I have a co-located server which sits on a /24 LAN. I have 5 of these IP's assigned to me and use them by creating multiple virtual interfaces i.e eth0:1, eth0:2, etc.

What I need to do is create firewall rules for each virtual IP. I have CentOS 3.1 and the included "lokkit" tool does not provide this funtionality. Is anyone aware of a tool I can use to set this up? I've looked about and seen this like Shorewall which looks great but it's based on being a router rather than a firewall for a single host.

Thanks
 
Old 10-24-2004, 08:01 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
how complicated does the firewall need to be ?

often, the best sollution is to write your own iptables script, rather than use a defualt one from shorewall or firestarted etc etc.

all these linux firewalls really do, is provide a limited GUI with a few options, then generate an iptables ruleset.
 
Old 10-24-2004, 08:39 AM   #3
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Original Poster
Rep: Reputation: 15
Thanks for the reply - I think you're right so I'm now using a more basic firewall. Only thing I can't do now is set it up for passive FTP. The ports I need to allow are as below:

Quote:
* INPUT chain:
o tcp
new/established
source port: 1024 - 65535
destination port: 21
o tcp
new/established/related
destination port: pasv_min_port - pasv_max_port

* OUTPUT chain:
o tcp
related/established
source port: 20
destination port: 1024 - 65535
o tcp
established
source port: 21
destination port: 1024 - 65535
o tcp
established
source port: pasv_min_port - pasv_maxport
destination port: 1024 - 65535
I don't understand what this means - could you point me in the right direction?

I also need ip_conntrack_ftp - How can I tell if I have this?

Thanks
 
Old 10-24-2004, 02:58 PM   #4
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
To see if ip_conntrack_ftp is currently running in the kernel do an lsmod and you should see it. If not it may be compiled as a module in that case try doing an insmod modulename
 
Old 10-24-2004, 03:15 PM   #5
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Original Poster
Rep: Reputation: 15
Thanks. It wasn't running so I just added it and everything is now working perfectly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How would I disable the display of any images in a single virtual host ? rioguia Linux - General 2 03-01-2005 11:18 PM
how to configure firewall on single nic RajaRC Linux - Networking 3 10-15-2004 06:16 AM
internet to a single host through route; and samba :) Mux Linux - Networking 3 05-08-2002 12:54 PM
help! mandrake single network firewall 7.2 jude Linux - Security 1 04-29-2002 06:32 AM
Socks in Single Firewall Network Nucklez Linux - Networking 0 11-16-2001 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration