Created
October 1, 2018 04:04
-
-
Save Pliner/28c54fd1367f87a7a4b0a9502c53a534 to your computer and use it in GitHub Desktop.
Combine list of networks with merge.pl and copy to tftpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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