Skip to content

Instantly share code, notes, and snippets.

@klaytonfaria
Created December 11, 2019 14:37
Show Gist options
  • Save klaytonfaria/e9432bac7587d08d54fa68694f54c197 to your computer and use it in GitHub Desktop.
Save klaytonfaria/e9432bac7587d08d54fa68694f54c197 to your computer and use it in GitHub Desktop.
sudo iptables -I INPUT 2 -p tcp --dport 443 -j ACCEPT
sudo iptables -I INPUT 2 -p tcp --dport 80 -j ACCEPT
sudo iptables-save > /etc/iptables/rules.v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment