Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 8

2 bytes added, 13:38, 3 January 2018
Allow access to Apache through the firewall
<source lang="python">
run("iptables -I INPUT -p tcp --dport 80 -j ACCEPT")
run("iptables-save > /etc/sysconfig/iptables")
</source>