NAT UDP traffic

Latest response

Hello,

I would like to NAT all the INCOMING UDP traffic only with destination ip address of 10.110.0.230 to my firewall IP address.

I used the following commands:

# echo "1"  > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -p udp -o eth0 -j SNAT --to 10.110.1.3

Then I sent udp traffic via iperf3 but could see the NAT to my FW IP on tcpdump.

  • Server IP address on eth0 = 10.110.0.230
  • FireWall IP address (NAT to) = 10.110.1.3

Can you advice please?

BR,
Yaron

Responses