Hello Reinhard & Tomasz ,
On Wed, 10 Feb 2010, Reinhard Max wrote:
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
Thank you both for the examples . It will make doing the same (here
shortly) on my system much more sure of being correct .
Twyl , JimL
--
+------------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network&System Engineer | 3237 Holden Road | Give me Linux |
| [email protected] | Fairbanks, AK. 99709 | only on AXP |
+------------------------------------------------------------------+
--
To unsubscribe send a mail to [email protected]