Skip to content

Instantly share code, notes, and snippets.

@Pliner
Created October 1, 2018 04:04
Show Gist options
  • Save Pliner/28c54fd1367f87a7a4b0a9502c53a534 to your computer and use it in GitHub Desktop.
Save Pliner/28c54fd1367f87a7a4b0a9502c53a534 to your computer and use it in GitHub Desktop.
Combine list of networks with merge.pl and copy to tftpd
#!/bin/bash
cd /root/blacklist
wget -N https://antifilter.download/list/ipsum.lst https://antifilter.download/list/subnet.lst;
./merge.pl total.lst ipsum.lst subnet.lst;
cat total.lst | sed 's/\(^\)/\/ip firewall address-list add list=rkn address=/g' > total.rsc;
cp total.rsc /var/lib/tftpboot/;
logger "total.rsc was updated";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment