port enable or not
[root@proxy ]# firewall-cmd --zone=public --query-port=80/tcp
remove rules:
firewall-cmd --permanent --zone=public --remove-forward-port port=80:proto=tcp:toport=3128:toaddr=192.168.1.179
success
list active zone
firewall-cmd --get-active-zone
[root@proxy ]# firewall-cmd --zone=public --query-port=80/tcp
remove rules:
firewall-cmd --permanent --zone=public --remove-forward-port port=80:proto=tcp:toport=3128:toaddr=192.168.1.179
success
firewall-cmd --reload
remove port nmuber:
[root@proxy ~]# firewall-cmd --permanent --zone=public --remove-port=80/tcp success [root@proxy ~]# firewall-cmd --reload success
list firewall rules:
firewall-cmd --list-all
list active zone
firewall-cmd --get-active-zone
No comments:
Post a Comment