Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > I want know what IP address via to NAT server
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-05-2004   #1 (permalink)
Just Joined!
 
Join Date: Nov 2004
Posts: 3
I want know what IP address via to NAT server

I have Red Hat 9.0 computer act as NAT and DHCP server . It have two network cards. NIC A connect to ADSL that provide Internet function .NIC B connect to Internal HUB and provide other client via NAT server connect to Internet .

I want to know what the ip address is of the client to connected my nat server. The client connect to Internet by NAT server but I can not monitor who IP address connected to Internet . I want to know this client and use traffic control tools to limit bandwidth . so I want know what command can get simple log file of IP address (connect to Internet).


Configuration as below:

Internet -> ADSL modem with Router -> RH 9.0 (act as NAT server, it has two NIC cards , one (140.138.x.x) connect to ADSL modem ,another NIC (192.168.0.1) connect to Client HUB )

Client HUB -> connect to client computer (Client get IP address as 192.168.0.X)

I want to know what IP address via NAT server to Internet .for example:

Computer A (192.168.0.10) connect to http://www.redhat.com
I want on some log files get 192.168.0.10 connect to www.redhat.com,
As soon as computer (192.168.0.10) disconnect this website , the ip address will disappeard on the log file.

thanks a lot !
jerrytw is offline  

Reply With Quote
Old 11-05-2004   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
I don't really understand what you are asking... What IP Address are you trying to find?
-lakerdonald
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 11-05-2004   #3 (permalink)
Just Joined!
 
Join Date: Nov 2004
Posts: 3
Quote:
Originally Posted by lakerdonald
I don't really understand what you are asking... What IP Address are you trying to find?
-lakerdonald

I want to know what the ip address is of the client to connected my nat server. The client connect to Internet by NAT server but I can not monitor
who IP address connected to Internet . I want to know this client and use traffic control tools to limit bandwidth . so I want know what command can get simple log file of IP address (connect to Internet).
jerrytw is offline   Reply With Quote
Old 01-03-2005   #4 (permalink)
Just Joined!
 
Join Date: Nov 2004
Posts: 5
Although you might find the IP addresses in some of the router's log files I recommend you rather use a proxy server like squid. It will provide you with detailed log files and you can also control the bandwidth used by clients. Make sure your current router is not setup as a gateway to the internet after setting up squid otherwise clients will continue to use that passage.
Devian is offline   Reply With Quote
Old 01-04-2005   #5 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,052
I am still a little confused about what you are looking for but if you want to know the ip of the clients of your router in a term type

su -
<password>

ifconfig

this will give the Ip of the computer you are on.
if you want to know the IP of your router you need to log into your router and click on the status button that will give you the ip of your router.

I hope this helps
Mike
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 12:34 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2