On Mon, May 01, 2006 at 01:30:29PM +1200, Chris wrote:
> I could be out of my leauge here, but i'm trying to get my Mepis box to act
> as
> a gateway for the rest of the house to the net.
>
> Eth0 is configured as the connection to the net using my cable modem fixed
> IP . Eth1 i set up as 192.168.0.1 and cant find any tools to set up a DHCP
> server, or to pass traffic through my machine between the internet and the
> LAN.
>
> Could someone give me a clue what i should be looking for, and/or how to make
> this work?
The short answer:
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# echo 1 > /proc/sys/net/ipv4/ip_forward
Which will work, but if woefully inadequate.
The long answer:
http://www.linwiz.com/ldp/HOWTO/IP-Masquerade-HOWTO/index.html
Most distros have packages available to set this up properly.
Malc