LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2008, 04:13 AM   #1
rajan.koushal
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
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
 
Old 12-24-2008, 05:28 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 01-31-2011, 02:55 PM   #3
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 162

Rep: Reputation: 25
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.
 
Old 01-31-2011, 03:01 PM   #4
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 162

Rep: Reputation: 25
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure DHCP server in ipv6 on RHEL5 mailme.prio Linux - Newbie 4 12-05-2008 05:49 PM
RHEL5, configure telnet and FTP on server? forudal Linux - Enterprise 2 11-29-2008 08:59 AM
how to configure the dns server in rhel5? priyank123 Linux - Server 2 10-02-2008 11:35 AM
Configure RHEL5 as a complete Server how to........ asadrony Linux - Newbie 3 07-13-2008 12:38 AM
How to configure mail server on RHEL5 Paras_mukeshmenaria Red Hat 3 08-15-2007 03:31 PM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration