On Tue, Apr 30, 2002 at 05:02:59PM -0800, Carlos Horacio Silva Elizondo wrote:
> Hello, Everybody I'm new on this list, I'm looking for a sample o some > script to route 2 ethernet cards > eth0 static IP for internet > eth1 DHCP server 192.168.1.1 > does any one have a sample or what lines i have to write to make > my server works. > do I have to change my route.conf too? Do this: # ip ro add default dev eth0 # echo 1 > /proc/sys/net/ipv4/ip_forward You should be good to go with lots of wholes and besides the 192.168 netblock would never see any responses back. Then you do: # iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to <your static ip> This makes sure that your private LAN can get out meaningfully. Then go and read alot on iptables to _harden_ your box ;-) Ramin > thanks a lot! > Carlos Silva
