Reputation: 504
I've been working to implement a monitoring software named "logalyze" for a central rsyslog system. For that purpose, I installed a Centos7 server which runs firewalld.
I need to convert below iptables command into a Centos7 firewalld command.
iptables -t nat -A PREROUTING -p udp --destination-port 514 -j REDIRECT --to-ports 1670
This rule is part of a configuration of the central syslog server monitoring specified here.
Upvotes: 0
Views: 2340
Reputation: 16
There are two options you can try,
One disable firewalld and start using iptables for some still you get familiar with firewalld. To do so,
You can use iptables commands itself.
firewall-cmd --permenent --direct --add-rule ipv4 nat PREROUTING 0 -p udp --dport 514 -j REDIRECT --to-ports 1670
Above firewalld cmd will do you the purpose.
Upvotes: 0