Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-17-2005, 09:02 AM
|
#1
|
LQ Newbie
Registered: Dec 2004
Distribution: arch, ubuntu(headless), redhat
Posts: 14
Rep:
|
help with iptables
Im trying to configure a firewall with a linux box and two windows box on a network behind a linksys router. I want the linux box to control the packet flow in and out....is this possible? the linux box has only one eth card so i cant use masq and im a newbie to iptables. can someone help or at least point me in the right direction?

|
|
|
01-17-2005, 09:08 AM
|
#2
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi there
use shorewall
iptables based firewall
shorewall.net
quite simple working
regards
|
|
|
01-17-2005, 09:23 AM
|
#3
|
LQ Newbie
Registered: Dec 2004
Distribution: arch, ubuntu(headless), redhat
Posts: 14
Original Poster
Rep:
|
so you dont edit the files directly?? i thought there was just a configuration file that u edit.
is there a way to edit these files directly? I kinna wanted to learn how to script the iptables myself.
|
|
|
01-17-2005, 09:54 AM
|
#4
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
no i do not edit the iptables script directly
that will take altogether take some good time
instead shorewall generates
u can also edit that directly
for that have a look at the HOWTo's available for iptables firewall at tldp.org
regards
|
|
|
01-18-2005, 07:25 AM
|
#5
|
Member
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
|
I'm not exactly sure how you can have the Linux box do the firewall for your whole network without using it as the router. You could use it as an IDS box and then at least you would know and there are some controls. For that I would reference http://www.internetsecurityguru.com/. It is specific to FC2 but you would get the idea. If you want some documentation on iptables, try http://www.netfilter.org. That should give you some places to start. If you want to take a leap of faith, you might try replacing the Linksys with a Linux box, using it as a router and running IDS. Then you would be able to play with the firewall, get alerts when someone is trying to get in and learn a whole bunch in the process. You would not need a big fancy box to do this with . Even an old 486 or equal would work. If you are using the Linksys to do PPPoe to connect to your ISP the nix box would do that just fine. Good luck and repost when you get a chance.
|
|
|
01-18-2005, 08:23 AM
|
#6
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
I too agree that ur linux box can be the FW of ur network if it is the router/interface to the internet for ur network
regards
|
|
|
All times are GMT -5. The time now is 12:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|