small question, but the vast topics, do you want to make your linux box just as a router for internet surf, for lan. if so you have to enable the packet forwarding capability in linux just vi /etc/sysctl.conf
# Controls IP packet forwarding net.ipv4.ip_forward = 1 (here originally 0) then you have to run NAT(Network Address Translation). (I have already sent you the link http://netfilter.org) briefly, for eg. your public IP address:203.79.37.100/24 and your LAN is 192.168.0.0/24 Just note that there are two types of NAT SNAT (source Nat) DNAT(destination Nat) for your scenario you have to use SNAT. just run as root the following commands. iptables -t nat -A POSTROUTING -p tcp -s 192.168.0.0/24 -o eth0 -j SNAT --to 203.79.37.100 (note that eth0 is your outgoing interface connected to the internet) then you can visit the internet through the LAN, provided DNS, gateway etc are properly set. you may also use Linux as a proxy or transparent proxy through squid.(see squid.org) -- regards, Daya Madan Puraskar Pustakalaya On 1/28/07, Bishwo <[EMAIL PROTECTED]> wrote: > > > i have used windows 2003 server inorder to route the internet to the > LAN. Now we are migrating to RED HAT 9.So how can i route the internet > conntection to my LAN from red hat linux 9.I will br thankful to the > suggestion. > > > > > --~--~---------~--~----~------------~-------~--~----~ FOSS Nepal mailing list [email protected] http://groups.google.com/group/foss-nepal Community website: http://www.fossnepal.org/ -~----------~----~----~----~------~----~------~--~---
