Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-23-2010, 05:17 AM
|
#1
|
Member
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120
Rep:
|
Configure NAT
Dear Sir,
I am using RHEL 5 server. all the clients are loaded in windows xp.
In RHEL5 ---> Eth 0 : Puplic IP, Eth 1 : Private (Local) IP
I have configure NAT
iptables - t nat -A POSTROUTING -o eth0 -j SNAT --to "public ip".
echo 1 > /proc/sys/net/ipv4/ip_forward.
Then I set the client pc gateway and dns is linux server ip(eht1).
Its working fine.
-----------------------------------------------------------------------
In another lab
We are using Windowxp machine as a internet server.
In Win XP ---> Eth 0 : Puplic IP, Eth 1 : Private (Local) IP
How to configure nat.
How to browse the client with out proxy.
Please help
|
|
|
11-23-2010, 05:38 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
You're asking how to do NAT routing on an XP Machine? This is nothing at all to do with Linux, right? Is that ICS? I used to use about a decade ago, maybe you want somethign like that if it still exists.
Note that you shouldn't use SNAT a.b.c.d on that redhat example but MASQUERADE as it's the interface address itself you're natting to, not another arbitrary address.
|
|
|
11-23-2010, 10:17 PM
|
#3
|
Member
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120
Original Poster
Rep:
|
Sir,
Thanks for your reply. It is possible to configure nat in xp machine
|
|
|
11-24-2010, 04:56 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Quote:
Originally Posted by ajkannan83
Sir,
Thanks for your reply. It is possible to configure nat in xp machine
|
yes, it is.
|
|
|
11-24-2010, 09:57 PM
|
#5
|
Member
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120
Original Poster
Rep:
|
How to possible sir. Please explain
|
|
|
11-25-2010, 02:49 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
On a Linux help forum? As above, I *think* it's ICS you'd need. I'm sure google has much more more information about this, and can be found much quicker...
|
|
|
11-25-2010, 05:27 AM
|
#7
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
|
|
|
All times are GMT -5. The time now is 10:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|