Skip to content

Instantly share code, notes, and snippets.

@KM8Oz
Last active February 8, 2022 02:41
Show Gist options
  • Save KM8Oz/5459451e84447e98f6226eec5b47b132 to your computer and use it in GitHub Desktop.
Save KM8Oz/5459451e84447e98f6226eec5b47b132 to your computer and use it in GitHub Desktop.
for i in `curl https://gist.githubusercontent.com/KM8Oz/.........../morocco.row | tail +1`; do iptables -A INPUT -i eth1 -m iprange --src-range $i -j ACCEPT; done
41.87.128.0-41.87.159.255
41.92.0.0-41.92.127.255
41.137.0.0-41.137.255.255
41.140.0.0-41.143.255.255
41.205.192.0-41.205.223.255
41.214.128.0-41.214.255.255
41.248.0.0-41.251.255.255
45.216.0.0-45.219.255.255
62.251.128.0-62.251.255.255
80.250.32.0-80.250.47.255
81.192.0.0-81.192.255.255
102.48.0.0-102.55.255.255
102.72.0.0-102.79.255.255
102.96.0.0-102.103.255.255
105.64.0.0-105.79.255.255
105.128.0.0-105.159.255.255
105.188.0.0-105.191.255.255
154.144.0.0-154.151.255.255
160.77.0.0-160.77.255.255
160.89.0.0-160.89.255.255
160.90.0.0-160.90.255.255
160.105.0.0-160.105.255.255
160.160.0.0-160.175.255.255
160.176.0.0-160.179.255.255
193.194.32.0-193.194.63.255
194.204.192.0-194.204.255.255
196.2.80.0-196.2.95.255
196.12.192.0-196.12.255.255
196.64.0.0-196.95.255.255
196.112.0.0-196.127.255.255
196.200.128.0-196.200.191.255
196.200.240.0-196.200.255.255
196.206.0.0-196.206.255.255
196.217.0.0-196.217.255.255
196.223.176.0-196.223.191.255
197.128.0.0-197.131.255.255
197.144.0.0-197.147.255.255
197.153.0.0-197.153.255.255
197.230.0.0-197.230.255.255
197.247.0.0-197.247.255.255
197.253.128.0-197.253.255.255
212.217.0.0-212.217.127.255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment