Skip to content

Instantly share code, notes, and snippets.

@theraw
Created January 28, 2019 21:24
Show Gist options
  • Save theraw/67c3c3bc76f3c0116b55db77847f125a to your computer and use it in GitHub Desktop.
Save theraw/67c3c3bc76f3c0116b55db77847f125a to your computer and use it in GitHub Desktop.
test
iptables -A INPUT -p tcp -m tcp -m multiport --dports 80,443 -j ACCEPT
iptables -A INPUT -m conntrack -j ACCEPT --ctstate RELATED,ESTABLISHED
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -j DROP
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment