For the pure version of CentOS 7, you must install the firewall manually. But if you install a firewall or you can't run it right away, you need to do something else to make it work. Follow these steps to set up your firewall in CentOS 7First step, install System-config-firewall
The CentOS 7 default utility uses FIREWALLD as the firewall, discarding the original iptables. But the kernel still uses iptable as the managementReference documentsHttps://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.htmlHttp://www.myhome.net.tw/2015_02/p10.htm650) this.width=650; "src=" Http://s3.51cto
Common firewall commands in CentOS 7
Common firewall commands
Enable services in the region
Firewall-cmd -- permanent [-- zone = This will permanently enable services in the region. If no region is specified, the default region is used. A service in the disabled Area
Firewall
Turn on the Redis port and modify the firewall configuration file Vi/etc/sysconfig/iptablesJoin Port Configuration-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379-j ACCEPT-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379:7000-j ACCEPT//Open ports between 6379 and 7000Service Iptables SaveService Iptables RestartCentOS 7.0 defaults
Turn on the Redis port and modify the firewall configuration file Vi/etc/sysconfig/iptablesJoin Port Configuration-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379-j ACCEPT-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379:7000-j ACCEPT//Open ports between 6379 and 7000Service Iptables SaveService Iptables RestartCentOS 7.0 defaults
Turn on the Redis port and modify the firewall configuration file Vi/etc/sysconfig/iptablesJoin Port Configuration-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379-j ACCEPT-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379:7000-j ACCEPT//Open ports between 6379 and 7000Service Iptables SaveService Iptables RestartCentOS 7.0 defaults
Turn on the Redis port and modify the firewall configuration file Vi/etc/sysconfig/iptablesJoin Port Configuration-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379-j ACCEPT-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 6379:7000-j ACCEPT//Open ports between 6379 and 7000Service Iptables SaveService Iptables RestartCentOS 7.0 defaults
Solution to firewall restrictions on QQ login:1. Open the qq logon page and click the area circled in red in the upper right corner;2. Select "use browser settings" in network type settings ";3. You can freely select the server type in the type of the login server;4. Click Start> Control Panel;5. Click "system and security ";6. Click "windows Firewall ";
Win 7 sets the firewall's exceptional port number so that the domain network can access the background, publish a website under tomcat, and send LAN access. In this case, you can disable the firewall or enable the firewall and set an inbound rule for the firewall to allow co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.