Hello,
I know there is bunch of themes about comparing iptables and firewalld, but this time I just have one question.
I'm following some guide for installing spamassasion plugin, and there is
Quote:
Add these rules to /etc/sysconfig/iptables in the INPUT chain and reload iptables:
### razor DCC pyzor ###
-A INPUT -p tcp --dport 2703 -j ACCEPT
-A INPUT -p udp --dport 24441 -j ACCEPT
-A INPUT -p udp -m udp --dport 1024:65535 --sport 6277 -j ACCEPT
###End of razor DCC pyzor ###
|
But I have installed Firewalld in Centos 7.
How to add those rules to firewalld?
First two I will add with
Code:
firewall-cmd --permanent --add-port=2703/tcp
firewall-cmd --permanent --add-port=24441/udp
But third I don't know how to "translate" it to firewalld command.
If I understand correctly
-A = append
INPUT is chain
-p is protocol
--dport is destination port
--sport is source port
And this rule is
Allow everyone who is coming from port 6277 to access to every port at range 1024:65535?