Hi,

I got jabberd2 running on my Gentoo server. Everything works fine,
except that I can't seem to add new contacts.

Right now, I have 2 registered users on my jabberd2-server. Myself and a
test-user. When I try to add 'test' to my buddylist, test will not
recieve any request for authorization. The logs show this:

Oct 12 10:51:50 mail jabberd/s2s[14821]: dns lookup for mydomain.nl
returned 1 result (ttl 86400)
Oct 12 10:51:50 mail jabberd/s2s[14821]: [8] [213.206.112.80, port=5269]
outgoing connection for 'mydomain.nl'
Oct 12 10:51:50 mail jabberd/s2s[14821]: [8] [213.206.112.80, port=5269]
write error: Connection refused (111)
Oct 12 10:51:50 mail jabberd/s2s[14821]: [8] [213.206.112.80, port=5269]
disconnect, packets: 0

Something seems to be going wrong with resolving. 213.206.112.80 is NOT
the IP of my jabberd2-server. It is the default IP of mydomain.nl, that
points to the server where our website is hosted.

I added this line to my firewall (iptables) that seems to fix things:

-A PREROUTING -p tcp -m tcp -d 213.206.112.80 --dport 5269 -j DNAT
--to-destination 192.168.1.3

192.168.1.3 is the internal IP of the jabberd2-server. This line will
force all traffic, directed to the wrong IP, back to the
jabberd2-server. This hack does make things work, but it is a dirty fix.
I have no idea how to fix it properly. Hopefully someone here can help
me out.


Kind regards,
Mario




-- 
To unsubscribe send a mail to [email protected]

Reply via email to