LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-15-2012, 03:31 AM   #1
puneetbrar
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Rep: Reputation: 0
Natting In linux


Dear All

I am a Linux newbie and i have a server to be installed and also svn Now i have installed Centos 5.7,Lamp,webmin and also Svn now i have two lancards /ethernetcards on board and almost the system is working fine as it seems to me

I want to nat it as i have users accessing the server from inside my ips are 192.168.1.xxxas well as i have a live ip 202.101.134.xxx

So how can i nat it so that both the users can access it

Can somebody help with this
 
Old 04-15-2012, 04:46 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,604

Rep: Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242
so you have 2 network cards, and it means you have two networks, inside (192.168.1.xxx) and let we say outside (202.101.134.xxx).
Which user has problem, what is unreachable from where? Why do you think nat will help you?
 
Old 04-15-2012, 04:48 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You don't need NAT. The 202.101.134.xxx interface will communicate with users on the Internet. The 192.168.1.xxx interface will communicate with users on your LAN. Make sure that the Webserver listens on both interfaces.

You will want to make sure you have your firewall configured properly so only the services you offer are unblocked. Also don't enable forwarding. You don't want to become the gateway between the LAN and Internet.
 
  


Reply

Tags
centos5


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
Natting on linux sunlinux Linux - Networking 1 07-04-2007 04:10 AM
natting twice zsoltrenyi Linux - Networking 9 01-26-2005 04:39 AM
natting in Linux suvajit Linux - General 2 05-15-2003 02:19 PM
Linux Natting / Routing suvajit Linux - Networking 1 05-15-2003 10:47 AM
Natting suvajit Linux - Software 1 05-15-2003 05:50 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration