Source From Here
Question
I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for httpd service, but something wrong with my iptables service:
How-To
With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments. It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:
Then, install the iptables-services package:
Enable the service at boot-time:
Managing the service:
Saving your firewall rules can be done as follows:
Question
I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for httpd service, but something wrong with my iptables service:
How-To
With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments. It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:
Then, install the iptables-services package:
Enable the service at boot-time:
Managing the service:
Saving your firewall rules can be done as follows:
沒有留言:
張貼留言