Skip to content

Instantly share code, notes, and snippets.

@ottomata
Created July 12, 2012 21:37
Show Gist options
  • Save ottomata/3101200 to your computer and use it in GitHub Desktop.
Save ottomata/3101200 to your computer and use it in GitHub Desktop.
cidr filtering
cat /a/log/short.log | ./udp-filter -i 71.190.22.0/24,197.30.159.0/22,fe80::e6ce:8fff:fe37:/16,2607:f0d0:1002:51::/64
wmvm.localdomain 47 2012-04-28T22:42:50.827 0 71.190.22.42 TCP_MISS/200 464 GET http://wmvm.wikimedia.org/ FIRST_UP_PARENT/wmvm text/html - - curl/7.21.4%20(universal-apple-darwin11.0)%20libcurl/7.21.4%20OpenSSL/0.9.8r%20zlib/1.2.5 en-US
wmvm.localdomain 48 2012-04-28T22:42:50.835 0 197.30.159.35 TCP_MISS/200 464 GET http://wmvm.wikimedia.org/ FIRST_UP_PARENT/wmvm text/html - - curl/7.21.4%20(universal-apple-darwin11.0)%20libcurl/7.21.4%20OpenSSL/0.9.8r%20zlib/1.2.5 en-US
wmvm.localdomain 49 2012-04-28T22:42:50.843 0 fe80::e6ce:8fff:fe37 TCP_MISS/200 464 GET http://wmvm.wikimedia.org/ FIRST_UP_PARENT/wmvm text/html - - curl/7.21.4%20(universal-apple-darwin11.0)%20libcurl/7.21.4%20OpenSSL/0.9.8r%20zlib/1.2.5 en-US
wmvm.localdomain 50 2012-04-28T22:42:50.851 0 2607:f0d0:1002:51::4 TCP_MISS/200 464 GET http://wmvm.wikimedia.org/ FIRST_UP_PARENT/wmvm text/html - - curl/7.21.4%20(universal-apple-darwin11.0)%20libcurl/7.21.4%20OpenSSL/0.9.8r%20zlib/1.2.5 en-US
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment