"Joseph S. Gardner" wrote:
>
> Jean-Louis Debert wrote:
>
> > "Joseph S. Gardner" wrote:
> > >
> > > OK, just for grins. Firewalling aside, I have a DSL connection to one
> > > machine with 2 NIC's. One (eth0) goes to the DSL modem the other (eth1
> > > aka 192.168.100.1) goes to a hub. A second machine with single NIC
> > > (eth0 aka 192.168.100.2) goes to same hub. Can I simply assign the
> > > gateway on machine #2 to the second NIC on machine #1 (eth1 -
> > > 192.168.100.2)?
> >
> > Yes you can (and should) but the gateway is 192.168.100.1
> > if you assign 192.168.100.2, you are just gatewaying your
> > second machine onto itself ...
> > OTOH it may be a typo in your post, in that case forget it ...
> >
> >
> > --
> > Jean-Louis Debert [EMAIL PROTECTED]
> > 74 Annemasse France
> > old Linux fan
>
> Yep sorry it was a typo, assigning gateway on mach #2 as 192.168.100.1 Gads
> what a long week - is it Friday yet?
> Do I need anything else enabled?? ipchains? ipmasq? don't know, like I said
> this is driving me crazy.
>
> --
> Joseph S. Gardner
> Senior Designer / Technical Support
> Kirby Co., Cleveland, OH
> [EMAIL PROTECTED]
>
> Linux is like a wigwam...
> No windows, no gates.
> Apache inside
>
> Registered linux user #1696600
> ICQ #63389227
Box # 1 gateway device is eth1
Box # 2 gateway is 192.168.100.1
on box 1
in /etc/rc.local at the end of the file
ipchains -P forward DENY
ipchains -A forward -i eth1 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
Then either do the horrid reboot or type those commands in a
terminal as root on box 1
Now go surf on netscape from box 2 in relative safety.
You can get firewall scripts that lock down box 1 from several
sources--others on the list know where they are, but this will
get you started.
Civileme