Networking Forums

Networking Forums > Computer Networking > Linux Networking > firewall for small local network

Reply
Thread Tools Display Modes

firewall for small local network

 
 
john connolly
Guest
Posts: n/a

 
      08-12-2003, 04:51 PM
Hi,
So far my local network consists of just one pc connected to the
'server' (another linux pc) which has a broadband connection to the
internet. I am planning to add a second pc to the local network and I
would like to have both of them masqueraded. I'm using the rc
firewall-2.4-stronger script (FQVER=0.73s) that came with the
slackware 9.0 distribution. It has a bunch of statements referring to
$INTIF, which is the nic on the server connected to the single local
network pc. My plan is to add a second variable $INTIF_1, which would
be the new nic on the server to the script and mimic all the lines such
as
$IPTABLES -A INPUT -i $INTIF -s $INTNET -d $UNIVERSE -j ACCEPT
with
$IPTABLES -A INPUT -i $INTIF_1 -s $INTNET -d $UNIVERSE -j ACCEPT.

My questions are: will this work ok and is there a better way, other
than buying additional hardware, to accomplish my goal?
Thanks, JWC
 
Reply With Quote
 
 
 
 
/dev/rob0
Guest
Posts: n/a

 
      08-13-2003, 04:12 AM
In article <bW8_a.86796$(E-Mail Removed)>,
john connolly wrote:
> internet. I am planning to add a second pc to the local network and I
> would like to have both of them masqueraded. I'm using the rc


And you're adding a third NIC to the server? You could just use a hub or
switch and keep the LAN on a single physical segment.

> firewall-2.4-stronger script (FQVER=0.73s) that came with the
> slackware 9.0 distribution. It has a bunch of statements referring to


I think you got that somewhere else. I don't have that.

> $INTIF, which is the nic on the server connected to the single local
> network pc. My plan is to add a second variable $INTIF_1, which would
> be the new nic on the server to the script and mimic all the lines such


That should work, but be very careful with the "!" (negation) operator.
Perhaps somewhere it has a DROP rule for "--state NEW -i ! $INTIF". That
would block $INTIF_1 unless a prior ACCEPT rule lets it in/through.

> My questions are: will this work ok and is there a better way, other
> than buying additional hardware, to accomplish my goal?


Ah, so disregard the switch suggestion.

This is probably as good as any solution. You could make a bridge (a
single virtual interface comprising the 2 internal NIC's, which joins
the separate segments into a single logical network.) That would be more
work, but better if you need broadcast among the client machines.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which distro for a small laptop firewall? Captain Dondo Linux Networking 6 01-25-2005 10:59 AM
Re: Best small office firewall? KW Windows Networking 1 08-29-2004 11:53 PM
Best small office firewall? dg Windows Networking 0 08-25-2004 10:03 PM
Small Business Router/Firewall Recomendations jaime Broadband 6 06-11-2004 11:14 PM
Firewall on small network Jaime Broadband 15 10-04-2003 10:33 AM



1 2 3 4 5 6 7 8 9 10 11