May. 8th, 2008

theweaselking: (Default)
I 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: [livejournal.com profile] zastrazzi came through with the correct wording of iptables I needed, and now I see my error. Yay!

Profile

theweaselking: (Default)theweaselking
Page generated Mar. 31st, 2026 09:16 pm