November 23, 2024, 03:07:23 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: How to get hostname or MAC address of sytem in Proxy Access Log  (Read 9656 times)

Offline rkumar

  • New Member
  • Posts: 1

Hi all,

I want to know, how i can get hostname or MAC address of system's in access.log file of squid proxy server.


Regards
Rkumar

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: How to get hostname or MAC address of sytem in Proxy Access Log
« Reply #1 on: April 06, 2009, 09:47:39 PM »
As far as I remember, access.log gives IP address etc., from that IP, you can get hostname and Mac too. From IP, you may get host name using :
dig -x <IP ADDRESS>

But I am not really sure about your network setup hence above may work or may not work.

You should use Wireshark network analyser and shall be very useful for you!

« Last Edit: April 06, 2009, 09:49:25 PM by Ricky »

Offline mirhossain9

  • New Member
  • Posts: 2
Re: How to get hostname or MAC address of sytem in Proxy Access Log
« Reply #2 on: April 11, 2009, 09:23:06 AM »
Dear Sir,
            I have fedora core 7 & Kernel varsion is sunshine. So please help me how to share internet connection. Also I use a broadband connection like as 128/128. I want to share this bandwidth with another pc.

Still wait for nice replay.

Thanks,
Mir Hossain Khandakar
E-mail: mir_deder@yahoo.com