1. 程式人生 > >centos7 防火墻開放對 natapp 端口的訪問

centos7 防火墻開放對 natapp 端口的訪問

14. std pre ogl add tcp sta blank 防火

[root@192 ~]# ps -ef | grep natapp
root      6111     1  0 12:37 ?        00:00:07 ./natapp -authtoken=xxx -log=stdout -loglevel=ERROR
root     10853  9773  0 16:21 pts/0    00:00:00 grep --color=auto natapp
[root@192 ~]# netstat -anp | grep 6111
tcp        0      0 192.168.1.30:35940      natapp服務器地址:4443     ESTABLISHED 6111
/./natapp [root@192 ~]#

[root@localhost ~]# firewall-cmd --zone=public --add-port=35940/tcp --permanent
success
[root@localhost ~]# firewall-cmd --reload
success
[root@localhost ~]# firewall-cmd --zone=public --list-ports
22/tcp 80/tcp 3306/tcp 35940/tcp
[root@localhost ~]# 

參考:

https://www.cnblogs.com/moxiaoan/p/5683743.html

https://www.cnblogs.com/EasonJim/p/8040714.html

centos7 防火墻開放對 natapp 端口的訪問