Re: Firestarter on Fedora
- From: ChrisW <c.c.wood@xxxxxxxxx>
- Date: Mon, 26 Nov 2007 05:49:29 -0800 (PST)
You've not indicated any network masks, so I'm assuming they're /24. Is
there any specific reason you chose eth0 and eth1 of your Fedora box to be
of same network.
Would it be correct then to have eth0 as 192.168.0.3 and eth1 as
192.168.1.100, and the Windows computers as 192.168.1.101-110?
If you put your 'eth1' and your Windows boxen in different network
than 'eth0', you can setup internet connection sharing very easily.
Edit '/etc/sysctl.conf' and set 'net.ipv4.ip_forward' equals to '1'. This
will enable IPv4 packet forwarding between your interfaces. Now you need to
enable masquerading, to do this simply execute:
root# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Now try accessing internet from your other Windows box, if it works, you
need to save this firewall configuration, execute:
root# iptables-save >/etc/sysconfig/iptables
Above command will also overwrite your existing firewall rules. So it is
better to first create a desired firewall, using 'iptables' command, and
then save all rules at once using 'iptables-save'.
Thanks, I'll have a go (presumably this should "just work" if my
assumption about different networks (see above) is correct...?)
Chris
.
- Follow-Ups:
- Re: Firestarter on Fedora
- From: Ashish Shukla आशीष शुक्ल
- Re: Firestarter on Fedora
- References:
- Firestarter on Fedora
- From: ChrisW
- Re: Firestarter on Fedora
- From: Ashish Shukla आशीष शुक्ल
- Firestarter on Fedora
- Prev by Date: Re: Fundamentals: what packets are dropped by the kernel?
- Next by Date: Linux VPN server and client
- Previous by thread: Re: Firestarter on Fedora
- Next by thread: Re: Firestarter on Fedora
- Index(es):
Relevant Pages
|