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