LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 11-23-2010, 05:17 AM   #1
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Rep: Reputation: 15
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
 
Old 11-23-2010, 05:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-23-2010, 10:17 PM   #3
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
Sir,

Thanks for your reply. It is possible to configure nat in xp machine
 
Old 11-24-2010, 04:56 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by ajkannan83 View Post
Sir,

Thanks for your reply. It is possible to configure nat in xp machine
yes, it is.
 
Old 11-24-2010, 09:57 PM   #5
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
How to possible sir. Please explain
 
Old 11-25-2010, 02:49 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 11-25-2010, 05:27 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Short and sweet: http://tinyurl.com/3xx2nu9
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hw to configure nat server on rhel5 rajan.koushal Linux - Newbie 3 01-31-2011 02:01 PM
How to configure Iptables to access VPN behind NAT abinf Linux - Networking 1 10-02-2009 08:28 PM
How to configure OPENSWAN behind NAT ThanhDuongCong Linux - Networking 0 11-10-2008 12:26 AM
How to configure DNS and NAT swandi Linux - Networking 1 05-08-2007 08:48 AM
I configure NAT and use "services ..." to save it but when I reboot there is no nat bruack Linux - Software 4 09-01-2004 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:31 PM.

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
Open Source Consulting | Domain Registration