firewalld - cannot state a rule with port range
I want to block all incoming and outgoing traffic on internet-facing nic to deal with some malware on a local LAN.
The firewall/router is a CentOS7 box. I cannot seem to express a rule correctly defining a port range: Code:
[root@bbb]# firewall-cmd --zone=external --remove-port=50000-65536/tcp Thanks for your help. |
Human Error, Ooops.
There are only 65535 tcp ports, NOT 65536. Code:
[root@bbb]# firewall-cmd --zone=external --add-rich-rule='rule family=ipv4 port port=50000-65000 protocol=tcp drop' |
All times are GMT -5. The time now is 08:29 AM. |