Get the App
SLTechnology News&Howtos  ›  Servers  › 

Centos 6.x 7.x Firewall how to turn on Port range IP address and configure it

Shulou Source: shulou.com Published: 2022-06-01 03:08:58 09月27日 Update

Centos 6.x 7.x firewall how to open the port range IP address and configure, I believe that many inexperienced people do not know what to do. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

# centos 6.x# Open nfsiptables-L-n # Open port iptables-An INPUT-p tcp-- dport 892-j ACCEPTiptables-An OUTPUT-p tcp-- sport 892-j ACCEPTservice iptables saveservice iptables restart# delete rule iptables-- delete OUTPUT "View the machine's port range cat / proc/sys/net/ipv4/ip_local_port_range# open port range open firewall iptables-An INPUT-s 192.168 .75.132-p tcp-- dport 1000V 60000-j ACCEPTiptables-An INPUT-s 192.168.75.132-p tcp-- dport 1000V 60000-j ACCEPT#centos7.x opens the port range firewall-cmd-- permanent-- add-rich-rule= "rule family='ipv4' source address='192.168.75.128' protocol='tcp' port port='1000-60000' accept" firewall-cmd-- permanent-- add-rich-rule= "rule family='ipv4' source address=' for an ip 192.168.75.129' accept "firewall-cmd-- permanent-- add-rich-rule=" rule family='ipv4' source address='192.168.75.128' accept "firewall-cmd-- permanent-- add-rich-rule=" rule family='ipv4' source address='192.168.75.130' accept "# View the public area open port firewall-cmd-- zone=public-- list-all# reload configuration firewall-cmd-- reload open port range Firewall-cmd-- permanent-- zone=public-- add-port=1000-60000/tcp# delete rule firewall-cmd-- permanent-- remove-rich-rule= "rule family=" ipv4 "source address=" 192.168.75.129 "port protocol='tcp' port='1000-6000' accept" firewall-cmd-- permanent-- remove-rich-rule= "rule family=" ipv4 "source address=" 192.168.75.128 "port protocol='tcp' port='1000-6000' accept" firewall-cmd-permanent-- remove -rich-rule= "rule family=" ipv4 "source address=" 192.168.75.130 "port protocol='tcp' port='1000-6000' accept" read the above Do you know how the centos 6.x 7.x firewall opens the port range IP address and how to configure it? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Port range firewall fire protection configuration address content method more rules problems open helpless for this area reason this situation skill machine Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft Shulou Tech Info Linux NVidia