DragonHawk

autobogon

Jun 29th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # automatically fetches latest version of bogon network list
  4.  
  5. URL=http://www.team-cymru.org/Services/Bogons/bogon-bn-agg.txt
  6. FILE=/etc/firewall/bogon-list
  7.  
  8. curl -s -S -f -o "$FILE" "$URL"
  9. # -s = silent
  10. # -S = but show errors, if there are any
  11. # -f = fail safely on HTTP errors, instead of clobbering local file
  12. # -o = output to this local file
Advertisement
Add Comment
Please, Sign In to add comment