Blocking non-icelandic traffic

Since IOS 12.4(20)T the object-group network command has been introduced outside of the ASA family.

And since rix.is holds out a list of icelandic subnets i got the idea to open access to various services only to icelanders :)

The idea isn't new but i hope the scripts i created with the help of my dear friend Jón Rúnar will help someone out there.

What we have is very basic stuff, we have a shell script run by cron on a CentOS box that executes wget to grab the list from RIX, a python script to edit the text file so that an ASA/Cisco IOS can use the list, and then an expect script to update the list on the device.

bash script

here we have two branches depending on your platform:

edit the subnet list from RIX for ASA input
expect script for ASA

edit the subnet list from RIX for Cisco IOS input
expect script for Cisco IOS

I'll explain the scripts and such better in a later edit :)

Comments

Popular posts from this blog

Lægra ping innlendrar umferðar á OpenVPN.is tengingu!

Umbraco Dictionary Key Performance

New links, new version and additions