Modify iptables to access apache on virtual centos5.6.
On a virtual box(IP: 192.168.195.130), I can access http://192.168.195.130/, but from any other computer, I can't.
After add following to /etc/sysconfig/iptables as below:
And restart iptables, I can access the virtual apache successfully.
For fedora14, modify iptables as below:
After add following to /etc/sysconfig/iptables as below:
Code:
-I RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
For fedora14, modify iptables as below:
Code:
-I INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
Total Comments 0