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