Is it possible to configure IPTables in a way that all outgoing packets to a certain IP and Port are altered with a different port and do the same for incoming packets?
I have to work with a server routinely and the Hoster decided that SSH access will only be possible on port 222 instead of the default 22.
This always causes a headache when ssh, scp or rsyncing. You always have to remember to add the port parameter.
I would like to circumvent this with IPTables.
Any help greatly appreciated.