LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hw to configure nat server on rhel5 (https://www.linuxquestions.org/questions/linux-newbie-8/hw-to-configure-nat-server-on-rhel5-692686/)

rajan.koushal 12-24-2008 03:13 AM

hw to configure nat server on rhel5
 
i wnt to know how to configure nat server in rhel 5
i have net on eth0 so hw can i share net on my lan through nat server

linuxlover.chaitanya 12-24-2008 04:28 AM

If you could tell what kind of internet you have, it would help. If you have a dial up connection through modem,you will need
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE.

If it is dial up broadband through cable just change ppp0 to the name of ethernet card connected to internet.

vwtech 01-31-2011 01:55 PM

This is my setup right now.
eth0 -ISP (IP,NETMASK,DNS, is static)
eth1 -LAN (192.168.1.1/24, is static) -> going to a laptop (192.168.1.12/24, GW:192.168.1.1, Network:192.168.1.0, DNS:192.168.1.1, is static)
I'd like to patch a small four port switch to eth1 and provide static IP info for those 4 systems.
Every thing I've tried by way of how-to's doesn't work or I'm messing something up.
Once I get a working example I'm can learn and work from there.

vwtech 01-31-2011 02:01 PM

This is my setup right now.
eth0 -ISP (IP,NETMASK,DNS, is static)
eth1 -LAN (192.168.1.1/24, is static) -> going to a laptop (192.168.1.12/24, GW:192.168.1.1, Network:192.168.1.0, DNS:192.168.1.1, is static)
I'd like to patch a small four port switch to eth1 and provide static IP info for those 4 systems.
Every thing I've tried by way of how-to's doesn't work or I'm messing something up.
Once I get a working example I'm can learn and work from there.


All times are GMT -5. The time now is 08:33 PM.