I am trying to use socat (instead of iptables) for UDP port forwarding. I just need to redirect some traffic from UDP port 162 to 33162.
I am using something like this:
socat udp-listen:162,pktinfo,fork UDP:localhost:33162
The trouble is that in the app that is listening on port 33162 as the source address I see
127.0.0.1, which is not desireable. I would like the traffic to keep its source address.
Is this possible with socat?