Firewall-cmd

From UVOO Tech Wiki
Jump to navigation Jump to search

Firewalld is not well done but

firewall-cmd --zone=public --add-port=22/tcp --permanent
firewall-cmd --zone=public --remove-port=22/tcp --permanent

firewall-cmd --add-rich-rule 'rule family="ipv4" source address="10.10.0.0/16" port port=22 protocol=tcp accept' --permanent
firewall-cmd --reload
iptables -L -n