CentOS firewall is configured on port 80
In virtual machine CENTOS installed APACHE not depressed, the solution is as follows
/ Sbin / iptables-I the INPUT-p tcp - dport 80-j ACCEPT
/ Sbin / iptables-I INPUT-p tcp - dport 22-j ACCEPT
And then save:
/ Etc / rc.d / init.d / iptables the save
Restart the computer, the firewall by default is already open ports 80 and 22
Should not restart your computer:
/ Etc / init.d / the iptables restart
Firewall off, shut down its services to:
View the firewall information:
/ Etc / init.d / the iptables status
Turn off the firewall service:
/ Etc / init.d / the iptables stop
Permanently closed? Do not know how a permanent method:
the chkconfig-level 35 the iptables off










































2142 Trackback (s)
You must be logged in to post a comment.