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 !