Geek Pop Quiz.
May. 8th, 2008 08:34 amI have a Ubuntu 6.06 server.
I want all tcp connections to port *X* on the server to automatically be seamlessly and quietly redirected to port *Y* on that very same server. And, obviously, the responses need to go back to the original host on that port. However, normal connections directly to port *Y* should not be affected.
I also want this change to be server-side only. No router changes, no nothing.
How can I do it?
EDIT:
zastrazzi came through with the correct wording of iptables I needed, and now I see my error. Yay!
I want all tcp connections to port *X* on the server to automatically be seamlessly and quietly redirected to port *Y* on that very same server. And, obviously, the responses need to go back to the original host on that port. However, normal connections directly to port *Y* should not be affected.
I also want this change to be server-side only. No router changes, no nothing.
EDIT:







