Skip to content

Instantly share code, notes, and snippets.

View magenx's full-sized avatar
👨‍🍳
magento 2 open source web stack

MagenX magenx

👨‍🍳
magento 2 open source web stack
View GitHub Profile
@magenx
magenx / gist:9604286
Created March 17, 2014 17:37
Get firewall messages sorted
grep Firewall messages | sed -r 's/.*SRC=(\S+).*PROTO=(\S+).*DPT=(\S+).*/\1 \2 \3/' | sort | uniq -c | sort -r -n
cat iptocf.txt
27.153.185.20
220.168.125.60
202.101.111.137
.....
#!/bin/bash