Whois command.

  • Hi all,
    I try to manage some lists of IPs to block access to Facebook / Youtube …
    I've find a method with PFBlocker and cron script ...
    I installed the whois command on pfsense.

    I want to use this two command line :
    mwhois -h whois.radb.net -- '-i origin AS32934' | awk '/^route:/ {print $2;}' | sort | uniq > facebook.txt
    mwhois -h whois.radb.net -- '-i origin AS15169' | awk '/^route:/ {print $2;}' | sort | uniq > youtube.txt

    I installed the whois with :

    pkg install whois
    Ok, no pbs -> the pkg command link the internet ...

    But whois return :
    $ mwhois -d google.com
    connect: No route to host

    [2.2.4-RELEASE][root@XXXXXXX]/root: ping www.google.com
    PING www.google.com ( 56 data bytes
    64 bytes from icmp_seq=0 ttl=42 time=24.893 ms
    64 bytes from icmp_seq=1 ttl=42 time=24.913 ms
    64 bytes from icmp_seq=2 ttl=42 time=25.240 ms
    64 bytes from icmp_seq=3 ttl=42 time=25.517 ms
    64 bytes from icmp_seq=4 ttl=42 time=24.901 ms

    In the system/route log :
    radvd[23813]: sendmsg: Operation not permitted

    I changed the firewall rule to any protocole to any address are allowed on the LAN port …

    I seen this topic too : https://forum.pfsense.org/index.php?topic=74774.0
    No change ... only no log radvd[xxxxx]: sendmsg: Operation not permitted are visble in the logs interface.

    Have you an idea to help me ?

    Thank's all.

  • up …  ;)

Log in to reply