Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 345 Bytes

iptables.md

File metadata and controls

14 lines (12 loc) · 345 Bytes

This might or might not be required. I forgot

apt-get install iptables-persistent

Open port 80

sudo iptables -I INPUT -i eth0 -p tcp --dport 80 -m comment --comment "# http  #" -j ACCEPT

Open port 443

sudo iptables -I INPUT -i eth0 -p tcp --dport 443 -m comment --comment "# https  #" -j ACCEPT