magnetico
magnetico copied to clipboard
attempts to connect to invalid IP ranges
for example:
Sun Jan 14 12:58:55 2018 UDP [snip] 61616 => 192.168.10.101 6889 Sun Jan 14 12:57:23 2018 UDP [snip] 61616 => 172.17.0.1 57071 Sun Jan 14 12:57:26 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 12:58:14 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 12:58:15 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 12:59:26 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 12:59:36 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 12:59:46 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 13:00:08 2018 UDP [snip] 61616 => 192.168.58.1 23699 Sun Jan 14 12:57:48 2018 UDP [snip] 61616 => 14.103.3.221 18792 Sun Jan 14 13:00:04 2018 UDP [snip] 61616 => 14.103.3.221 18792
http://bgpfilterguide.nlnog.net/guides/bogon_prefixes/
https://docs.python.org/3/library/ipaddress.html https://pypi.org/project/ipaddress/
>>> ipaddress.ip_address("10.0.0.1").is_global
False
>>> ipaddress.ip_address("192.168.10.101").is_global
False
>>> ipaddress.ip_address("172.17.0.1").is_global
False
>>> ipaddress.ip_address("14.103.3.221").is_global
True
It might not be desirable to filter them out however, as some of the nodes just might be local to you.