Hi,
On Wed, 10 Feb 2010 at 07:18, Tomasz Sterna wrote:
iptables -t nat -A PREROUTING \
-p tcp --dport 80 -j REDIRECT --to-ports 5222
this works if jabberd listens on the wildcard address or on the
primary IP address of the incoming interface.
If it explicitly binds to a secondary address ($XMPPADDR), the DNAT
target is needed, because it allows to specify the destination IP
address for the redirection:
iptables -t nat -A PREROUTING \
-d $XMPPADDR -p tcp -m tcp --dport 80 \
-j DNAT --to-destination $XMPPADDR:5222
cu
Reinhard
--
To unsubscribe send a mail to [email protected]