HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

configure redirect rules in iptables for SuSE 11.4

 
alkamm
Occasional Visitor

configure redirect rules in iptables for SuSE 11.4

Activity Attachments


I have two syslog devices that can only be configured with a syslog port 514 and I need to send a data stream from these sources to an app on a unix box that can only accept the connection to port 1516. I have other separate syslog devices configured the same way (port 514) where the app can only accept the connection to port 1515. The rules I have been trying to implement are as follows.
 
DNAT udp -- 10.67.5.49 0.0.0.0/0 udp dpt:514 to:10.67.8.42:1516
DNAT udp -- 10.67.5.60 0.0.0.0/0 udp dpt:514 to:10.67.8.42:1516
REDIRECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:514 redir ports 1515

Basically I want the 2 devices to always go use port 1516 and all other device configured for port 514 will use 1515

The OS is SuSE 11 sp4. I am adding these lines to the /etc/sysconfig/susefirewall2 files and restarting the firewall. However after the restart the lines are not saving to the file.

My questions are as follows:

are these lines correct for what I want to do?

Is yes, how do I properly implement the rules so it saved?