I installed ejabberd in a Docker container on my VPS and was able to send messages with Gajim client on Windows, but it does not send files.
When I try to send a file over my local network I get this:
the file transfer hangs up for a while and then times out and there is no reaction on the receiver side.
I created the Firewall rule:
Does it mean that Gajim does not support file transfer on Windows or I misunderstand something?
Can it be NAT-related problem caused by my router? Should I create some NAT rules for incoming connections?
The following ports are allowed (with ufw) on the server:
5280/tcp ALLOW Anywhere
5222/tcp ALLOW Anywhere
5269/tcp ALLOW Anywhere
7777/tcp ALLOW Anywhere
Tried on the server side:
sudo ufw disable
but it did not help.
EDIT1
Something strange is happening:
I added mod_proxy65 and telnet <server IP> 7777 started to work from client machines, but clients app stopped to show user statuses, and all the users become gray like this:
and I was unable to test file transfer, because Gajim disables it for gray (offline) users, but at the same time the messages go (are being sent and received). Tried to rebuild the docker image and delete Jabber data from /var/lib/ejabberd, but it did not help.
But admin panel shows that the users are online:
EDIT2
I re-added the account in Gajim clients and the users become green:
but I still can't send files.
EDIT3
On the server side I did:
sudo tcpdump -i eth0 port 7777
and got this:
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:29:42.915001 IP 90.151.171.109.50578 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 3045943868, win 1024, length 0
23:29:42.915091 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.109.50578: Flags [S.], seq 681180947, ack 3045943869, win 64240, options [mss 1460], length 0
23:29:42.998146 IP 90.151.171.109.50578 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [R], seq 3045943869, win 1200, length 0
23:30:03.667744 IP 90.151.171.108.1801 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 273993614, win 42340, options [mss 1460,nop,nop,TS val 3163563326 ecr 0,nop,wscale 9], length 0
23:30:03.667821 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.1801: Flags [S.], seq 2216802065, ack 273993615, win 65160, options [mss 1460,nop,nop,TS val 3473361284 ecr 3163563326,nop,wscale 7], length 0
23:30:03.743869 IP 90.151.171.108.1801 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [.], ack 1, win 83, options [nop,nop,TS val 3163563402 ecr 3473361284], length 0
23:30:03.900880 IP 90.151.171.108.1801 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [P.], seq 1:251, ack 1, win 83, options [nop,nop,TS val 3163563559 ecr 3473361284], length 250
23:30:03.900941 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.1801: Flags [.], ack 251, win 508, options [nop,nop,TS val 3473361517 ecr 3163563559], length 0
23:30:03.901384 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.1801: Flags [F.], seq 1, ack 251, win 508, options [nop,nop,TS val 3473361518 ecr 3163563559], length 0
23:30:03.980299 IP 90.151.171.108.1801 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [.], ack 2, win 83, options [nop,nop,TS val 3163563639 ecr 3473361518], length 0
23:30:04.131413 IP 90.151.171.108.1801 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [F.], seq 251, ack 2, win 83, options [nop,nop,TS val 3163563789 ecr 3473361518], length 0
23:30:04.131477 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.1801: Flags [.], ack 252, win 508, options [nop,nop,TS val 3473361748 ecr 3163563789], length 0
23:30:08.708463 IP 90.151.171.108.23829 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 4005528934, win 42340, options [mss 1460,nop,nop,TS val 3163568366 ecr 0,nop,wscale 9], length 0
23:30:08.708545 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.23829: Flags [S.], seq 2963225670, ack 4005528935, win 65160, options [mss 1460,nop,nop,TS val 3473366325 ecr 3163568366,nop,wscale 7], length 0
23:30:08.785404 IP 90.151.171.108.23829 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [.], ack 1, win 83, options [nop,nop,TS val 3163568443 ecr 3473366325], length 0
23:30:08.941331 IP 90.151.171.108.23829 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [P.], seq 1:11, ack 1, win 83, options [nop,nop,TS val 3163568599 ecr 3473366325], length 10
23:30:08.941409 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.23829: Flags [.], ack 11, win 509, options [nop,nop,TS val 3473366558 ecr 3163568599], length 0
23:30:08.941679 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.23829: Flags [F.], seq 1, ack 11, win 509, options [nop,nop,TS val 3473366558 ecr 3163568599], length 0
23:30:09.020604 IP 90.151.171.108.23829 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [.], ack 2, win 83, options [nop,nop,TS val 3163568679 ecr 3473366558], length 0
23:30:09.155024 IP 90.151.171.108.23829 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [F.], seq 11, ack 2, win 83, options [nop,nop,TS val 3163568813 ecr 3473366558], length 0
23:30:09.155078 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.23829: Flags [.], ack 12, win 509, options [nop,nop,TS val 3473366772 ecr 3163568813], length 0
23:30:13.754625 IP 90.151.171.108.24921 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 2809616098, win 42340, options [mss 1460,nop,nop,TS val 3163573414 ecr 0,nop,wscale 9], length 0
23:30:13.754675 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.108.24921: Flags [S.], seq 3045378767, ack 2809616099, win 65160, options [mss 1460,nop,nop,TS val 3473371371 ecr 3163573414,nop,wscale 7], length 0
23:30:13.829404 IP 90.151.171.108.24921 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [.], ack 1, win 83, options [nop,nop,TS val 3163573488 ecr 3473371371], length 0
23:30:13.979874 IP 90.151.171.108.24921 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [P.], seq 1:373, ack 1, win 83, options [nop,nop,TS val 3163573639 ecr 3473371371], length 372
and thought that Gajim sends something to 7777, but when I tried next time I got this:
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
so I think that nothing is sent to 7777.
Also I can see this picture at the client side:
EDIT4
When I try to send a file nothing appear in ejabberd logs and the command
sudo docker exec jabber bash -c "tail -f /var/log/ejabberd/ejabberd.log"
does not display new log messages.
EDIT5
Finally I noticed that something periodically appear in port 7777, but I do not know what is it and where does it go from:
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:45:42.615414 IP azpdwg65.stretchoid.com.51773 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 96599316, win 65535, length 0
23:45:42.615466 IP 172-236-29-157.ip.linodeusercontent.com.7777 > azpdwg65.stretchoid.com.51773: Flags [S.], seq 3928702514, ack 96599317, win 64240, options [mss 1460], length 0
23:45:42.762580 IP azpdwg65.stretchoid.com.51773 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [R], seq 96599317, win 0, length 0
23:49:46.232169 IP azpdwg65.stretchoid.com.42108 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 2790185508, win 64240, options [mss 1440,sackOK,TS val 3683076394 ecr 0,nop,wscale 7], length 0
23:49:46.232260 IP 172-236-29-157.ip.linodeusercontent.com.7777 > azpdwg65.stretchoid.com.42108: Flags [S.], seq 1007508776, ack 2790185509, win 65160, options [mss 1460,sackOK,TS val 3341911335 ecr 3683076394,nop,wscale 7], length 0
23:49:46.377360 IP azpdwg65.stretchoid.com.42108 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [.], ack 1, win 502, options [nop,nop,TS val 3683076539 ecr 3341911335], length 0
23:49:46.386369 IP azpdwg65.stretchoid.com.42108 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [P.], seq 1:28, ack 1, win 502, options [nop,nop,TS val 3683076548 ecr 3341911335], length 27
23:49:46.386421 IP 172-236-29-157.ip.linodeusercontent.com.7777 > azpdwg65.stretchoid.com.42108: Flags [.], ack 28, win 509, options [nop,nop,TS val 3341911489 ecr 3683076548], length 0
23:49:46.386669 IP 172-236-29-157.ip.linodeusercontent.com.7777 > azpdwg65.stretchoid.com.42108: Flags [F.], seq 1, ack 28, win 509, options [nop,nop,TS val 3341911489 ecr 3683076548], length 0
23:49:46.531752 IP azpdwg65.stretchoid.com.42108 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [F.], seq 28, ack 2, win 502, options [nop,nop,TS val 3683076694 ecr 3341911489], length 0
23:49:46.531813 IP 172-236-29-157.ip.linodeusercontent.com.7777 > azpdwg65.stretchoid.com.42108: Flags [.], ack 29, win 509, options [nop,nop,TS val 3341911634 ecr 3683076694], length 0
23:51:39.298537 IP 90.151.171.106.51884 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [S], seq 1151770459, win 1024, length 0
23:51:39.298598 IP 172-236-29-157.ip.linodeusercontent.com.7777 > 90.151.171.106.51884: Flags [S.], seq 4192307487, ack 1151770460, win 64240, options [mss 1460], length 0
23:51:39.381495 IP 90.151.171.106.51884 > 172-236-29-157.ip.linodeusercontent.com.7777: Flags [R], seq 1151770460, win 1200, length 0
and I do not know where ip address 90.151.171.106 go from. It is neither server nor client IP address.
EDIT6
What is it?
Why is the transfer direct?







