Jabberd Virtual Server:

jabberd:/# netstat -ta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 jabberd.unitecnolo:5347 *:*                     LISTEN
tcp        0      0 jabberd.uni:xmpp-client *:*                     LISTEN
tcp        0      0 jabberd.unitecnol:mysql *:*                     LISTEN
tcp        0      0 jabberd.uni:xmpp-server *:*                     LISTEN
tcp        0      0 jabberd.unitecnolo:5347 localhost:36402         ESTABLISHED
tcp        0      0 jabberd.unitecnolo:5347 localhost:36403         ESTABLISHED
tcp        0      0 jabberd.unitecnolo:5347 localhost:36400         ESTABLISHED
tcp        0      0 jabberd.unitecnolo:5347 localhost:36401         ESTABLISHED
tcp        0      0 localhost:36400         jabberd.unitecnolo:5347 ESTABLISHED
tcp        0      0 localhost:36401         jabberd.unitecnolo:5347 ESTABLISHED
tcp        0      0 localhost:36402         jabberd.unitecnolo :5347 ESTABLISHED
tcp        0      0 localhost:36403         jabberd.unitecnolo:5347 ESTABLISHED


Main Server:
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:xmpp-client

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED

 # iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             savio               tcp dpt:ftp to:192.168.1.3:21
DNAT       tcp  --  anywhere             savio               tcp dpt:ftp-data to: 192.168.1.3:20
DNAT       tcp  --  anywhere             savio               tcp dpts:5000:x11 to:192.168.1.3:5000-6000
DNAT       tcp  --  anywhere             savio               tcp dpt:10000 to: 192.168.1.3:10000
DNAT       tcp  --  anywhere             anywhere            tcp dpt:xmpp-client to:192.168.1.10:5222

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  jabberd              anywhere            to:172.16.3.106

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


# telnet 192.168.1.10 5222
Trying 192.168.1.10.. .
Connected to 192.168.1.10.
Escape character is '^]'.
bad
<stream:stream xmlns:stream='http://etherx.jabber.org/streams' version=' 1.0'><stream:error xmlns:stream='http://etherx.jabber.org/streams'><xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>syntax error</text></stream:error></stream:stream>Connection closed by foreign host.

any network pc:
jsubuntu:~$ telnet savio.unitecnologica.edu.co 5222
Trying 200.106.130.230...
telnet: Unable to connect to remote host: Connection refused

 

--
Jairo Enrique Serrano Castañeda
Ingeniero de Sistemas UTB
T - http://www.jsnat.com - http://savio.unitecnologica.edu.co
C - http://www.drupal.org.es - http://www.champetux.org
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to