It’s possible to enforce redirection of connections on the particular port of connection manager with force-redirect-to
set to Integer with the following general setting option:
<connection_manager>/connections/<listening_port>/force-redirect-to[I]=<destination_port>
for example, enable additional port 5322
for c2s
connection manager and enforce all connections to be redirected to port 5222
(it will utilize hostname retrieved from SeeOtherHost
implementation and will be only used when such value is returned):
c2s/connections/ports[i]=5222,5322 c2s/connections/5322/type[S]=accept c2s/connections/5322/socket[S]=plain c2s/connections/5322/force-redirect-to[I]=5222