Advertisement
Guest User

Untitled

a guest
May 4th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. sudo iptables -L
  2. Chain INPUT (policy DROP)
  3. target prot opt source destination
  4. ACCEPT all -- anywhere anywhere
  5. ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
  6. ACCEPT tcp -- anywhere anywhere tcp dpt:http
  7.  
  8. Chain FORWARD (policy ACCEPT)
  9. target prot opt source destination
  10.  
  11. Chain OUTPUT (policy ACCEPT)
  12. target prot opt source destination
  13.  
  14.  
  15.  
  16.  
  17. nano /etc/iptables/rules.v4
  18. # Generated by iptables-save v1.4.21 on Wed May 4 23:53:23 2016
  19. *filter
  20. :INPUT DROP [469:58510]
  21. :FORWARD ACCEPT [0:0]
  22. :OUTPUT ACCEPT [1788:276430]
  23. -A INPUT -i lo -j ACCEPT
  24. -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  25. -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
  26. COMMIT
  27. # Completed on Wed May 4 23:53:23 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement