On Sat, 13 Dec 2003, Amir Yalon wrote:

> Hello haifuxers,
>
> I'm currently migrating my windows machine to dual boot with gentoo (the
> final goal is to abandon windows). The machine has two network cards:
> one for local network (eth0 in linux) and one for Internet (eth1).
> Currently the machine in question is set up as firewall, NAT and DNS
> forwarder using commercial software (Winroute Firewall) and the other
> machine on the network is surfing the WWW through the gateway machine.
>
> Can anyone share experience with setting up a similar thing with linux
> at the gateway?
>
> so far:
> I compiled the kernel with netfilter/iptables as modules and set up a
> configuration helper and a DNS forwarder (namely FireHOL and dnsmasq).
> The firewall is working, the DNS forwarder is working, but the other
> machine is able to connect only to the gateway machine.
> I don't mind starting all over from scratch, just want to get it working
> alredy.

seems to me you need to set up IP masqurade for internet conection
sharing, try adding the rule:

iptables -t NAT -A POSTROUTING -o eth1 -j MASQURADE

relevent reading material:
Hafiux lecture on iptables etc. (by Eli B)
IP Masqurade HOWTO
man iptables


  Meir Maor



--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]


Reply via email to