i migrate a ejabberd server to a vm with only private ip. is work fine but not connect to anothers xmmp servers.
log: s2s connection: xxxx -> gmail.com (remote server not found)
telnet test: telnet xmpp-server.l.google.com 5269 Connection time out
in the host add iptables nat port 5269 to internal ip. iptables -t nat -A PREROUTING -p tcp -m tcp --dport 5269 -j DNAT --to-destination x.x.x.x:5269
the host have a masquerade for all out to eth with public ipv4.
if i remove this nat the telnet test is ok, but i cant connect to port 5269 on internal ip.
Any ideas?
Thank...