Lightsquid IP2Name



  • I have PFsence 1.2 installed.
    lightsquid config

    Bar color : Green
    Repot schema: Base
    IP REsolve method: SMB
    Refresh Schedule: 30mins
    Squid rotate log schedular : every 1 day

    I want to replace IPs to User or PC name in squid report. most real names has a ? mark while IP 2 and 3 has Sergey Erokhin and Tech Good respectively.
    I found a script for this but I have no idea how to do it. http://lightsquid.sourceforge.net/Ip2Name.html

    Anyone can help with this?
    Thanks…!!

    Manjula



  • If you have local DNS server, you can use 'DNS' or 'Demo' IP resolve method.

    File /usr/local/etc/lightsquid/realname.cfg contains:

    192.168.1.2 Sergey Erokhin
    192.168.1.1 Jon Doe
    192.168.1.3 Tech Good



  • Thanks so much for the quick reply.
    We are not using local DNS we are using ISPs DNS. Can I edit /usr/local/etc/lightsquid/realname.cfg to predefine all real names though it is not really good?

    Manjula



  • @manjula:

    Thanks so much for the quick reply.
    We are not using local DNS we are using ISPs DNS. Can I edit /usr/local/etc/lightsquid/realname.cfg to predefine all real names though it is not really good?

    Manjula

    I not sure, but try it.



  • thanks… It works I had to save the file with this command 'w!' and 'q' since this is a read-only file

    Manjula



  • I have configured Transparent proxy and "Allow users on interface"  is selected on Proxy, and then my OPT1 goes down randomly. It doesn't happen when I remove the tick on "Allow users on interface" but I can get proxy reports when its not selected. 
    Can you tell me Where I have gone wrong?

    sorry use the same topic
    Manjula


Log in to reply