I just want my MT box to identify packets going to port S and replace the port number, such that w.x.y.z:S --> w.x.y.z:T, where w.x.y.z can be ANY IP address.
I tried to do it with the rule below, but it did not work because it looks like the rule expects to have a "known" IP address.
Code: Select all
;;; Port redirect
chain=dstnat protocol=tcp dst-port=2525 action=dst-nat
to-addresses=0.0.0.0 to-ports=25
Thank you,
juibar