Artificial intelligent assistant

Firewalld: block outgoing connections on specific port I want to add a rule to `firewalld` in order to block any outgoing connections/traffic on port 9000 and leave the rest unchanged. How to to that with `firewall-cmd` command? Thanks.

From this post Block outgoing connections on RHEL7/CentOS7 with firewalld? :


firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -p tcp -m tcp --dport=9000 -j DROP
firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 1 -j ACCEPT


It should work after a running rules reload :


firewall-cmd --reload


Before this command this will not be applied.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 1e74ccd4fe15d3d20152b673134cbfc6