Port redirect
Posted: Wed Nov 08, 2006 1:21 am
Sorry if this has been asked before, but at least I could not find in the forums.
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.
Any ideas?
Thank you,
juibar
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