Advertisement
thiagofaioli

protecteyourreto.sh

Oct 23rd, 2018 (edited)
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. #!/bin/sh
  2. ###############################################################
  3. ##  Faioli a.k.a: 0xttfx.
  4. ## An implementation of a firewall to protect your butt! was an
  5. ## idea by my friend Abu a.k.a: Abu_C_Taí , at the H2HC 2018
  6. ## conference! I ended up implementing in an IPFW :)
  7. ###############################################################
  8.  
  9. #global variables
  10. cu=Orificio Rugoso
  11. cmd=/sbin/ipfw -q add
  12. deny="deny log logamount 1000"
  13.  
  14. # protect your reto
  15. ${cmd} ${deny} all from any to me dst-port ${cu}
  16. ${cmd} ${deny} all from any to any
  17.  
  18. ## ipfw built-in default, don't uncomment
  19. ## ${cmd} deny ip from any to any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement