Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2014
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. iptables -P OUTPUT ACCEPT
  2. iptables -P INPUT DROP
  3. iptables -P FORWARD DROP
  4.  
  5. ## rules standard to allow related and established connections
  6. iptables -A INPUT -i lo ACCEPT
  7. iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  8.  
  9. ## example: ALLOW HTTP FOR given Range 192.168.0.1-255
  10. iptables -A INPUT -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  11. iptables -A INPUT -p tcp -m conntrack --ctstate NEW -s 192.168.0.0/24 --dport 80 -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement