Hi
I am trying to redirect traffic coming to 514 port to 517 only for source 10.0.0.198
I am adding following line to file /opt/qradar/conf/iptables.pre
-A PREROUTING -s 10.0.0.198/32 -p udp -m udp --dport 514 -j REDIRECT --to-ports 517
I also tried to add line as;
-t nat -A PREROUTING -s 10.0.0.198/32 -p udp -m udp --dport 514 -j REDIRECT --to-ports 517
-A PREROUTING -t nat -s 10.0.0.198/32 -p udp -m udp --dport 514 -j REDIRECT --to-ports 517
-A PREROUTING -s 10.0.0.198/32 -d 0/0 -p udp -m udp --dport 514 -j REDIRECT --to-ports 517
When I tried to run /opt/qradar/bin/iptables_update.pl for all alternatives, the iptables service not starting with an error. When I remove the line from the iptables.pre file iptables service restarting as expected.
QRadar: How to edit iptables rules in QRadar? In this document "Another use of iptables in QRadar" section explain that we can redirect port but I can not made it.
Could you please help me to solve the issue.
The qradar-iptables.log file show the line.
------------------------------------------------
iptables: Applying firewall rules: iptables-restore v1.4.21: The -t option (seen in line 23) cannot be used in iptables-restore.
iptables.init[11336]: Error occurred at line: 23
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables.init[11336]: [FAILED]
iptables.service: main process exited, code=exited, status=1/FAILURE
Failed to start IPv4 firewall with iptables.
------------------------------
Hasan Erhan AYDINOĞLU
------------------------------