daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. set -x
  4. export LAN=eth0
  5. export WAN=ppp0
  6.  
  7. iptables -L -v
  8. iptables -F
  9.  
  10. iptables -N LOGDROP
  11. iptables -A LOGDROP -j LOG
  12. iptables -A LOGDROP -j DROP
  13.  
  14. iptables -I INPUT -i eth0 -j ACCEPT
  15. iptables -I INPUT -i lo -j ACCEPT
  16. iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  17. iptables -P INPUT LOGDROP
  18.  
  19. iptables -L -v
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top