On March 1, 2003 04:46 pm, khalifa ally wrote: > Dear all > I have my computer running on linux 8.0 > I have 2 network cards. > One is having a public IP from my ISP and one I want to configure it as a > NAT and router to my internal LAN so that other machines can access the > internet. MY IP hasbeen statically configrured. > can any one give me step by step procedure to configure NAT and that this > computer works as gw for other computers. I if to type commands where > should I type them in / or /sbin or any where. Please help me I going crazy > on studying lot of staffs on NAT but I dont get the way.
the short answer? enable forwarding: echo 1 > /proc/sys/net/ipv4/ip_forward turn on snat: iptables -t nat -A POSTROUTING \ -o $EXT_INTERFACE \ -j SNAT --to-source $IPADDR the long answer? pick up a book. i reccomend "linux firewalls second edition (new riders)" have fun ;-) -- it could probably be shown by facts and figures that there is no distinctly native american criminal class except congress. - mark twain -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list