2

I am trying to block public ip addresses/ranges of specific organizations in my firewall.

To accomplish the purpose, I need to find out the actual list of netblocks/IP addresses they own.

For facebook, I've used the following command and it worked as expected.

whois -h whois.radb.net -- '-i origin AS32934' | awk '/^route:/ {print $2;}' \
| sort | uniq 

Would you advise me how to write a chain of commands to find public ip addresses/routes using as basis the whois command?

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
Nullpointer
  • 553
  • 4
  • 10
  • 24

0 Answers0