On my Linux machine, I have a UDP server listening on IP 192.168.1.5 port 44123 and an application that sends UDP packets to other devices on the same network, in particular to devices with IP 192.168.1.x port 44124
I want to create an iptables rule to forward all UDP packets from the application to the UDP Server but having difficulties doing so.
Example:
I wish that the application sends a UDP packet to 192.168.1.10 port 44124 and that it is forwarded to the UDP Server listening on 192.168.1.5 port 44123.
Can someone help please?
Note: I have set net.ipv4.ip_forward=1