I tried changing the list address to 192.168.123.1/24
but got the same result.
Here is a tcpdump from when my cell phone is connected to the vpn
root@OpenWrt:~# tcpdump -nnvvi any port 5222 -c 10
tcpdump: data link type LINUX_SLL2
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
19:07:52.503701 wg0 In IP (tos 0x0, ttl 64, id 12290, offset 0, flags [DF], proto TCP (6), length 60)
192.168.123.7.42208 > $OPENWRT_WAN.5222: Flags [S], cksum 0x3495 (correct), seq 2526558015, win 65535, options [mss 1240,sackOK,TS val 2948165102 ecr 0,nop,wscale 9], length 0
19:07:52.503756 wg0 Out IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)
$OPENWRT_WAN.5222 > 192.168.123.7.42208: Flags [R.], cksum 0xb932 (correct), seq 0, ack 2526558016, win 0, length 0
19:08:32.152621 wg0 In IP (tos 0x0, ttl 64, id 52924, offset 0, flags [DF], proto TCP (6), length 60)
192.168.123.7.50456 > $OPENWRT_WAN.5222: Flags [S], cksum 0x6d6d (correct), seq 2861707085, win 65535, options [mss 1240,sackOK,TS val 2948204757 ecr 0,nop,wscale 9], length 0
19:08:32.152681 wg0 Out IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)
$OPENWRT_WAN.5222 > 192.168.123.7.50456: Flags [R.], cksum 0x8cf2 (correct), seq 0, ack 2861707086, win 0, length 0
It looks like a response is sent but then the trail goes cold. Just for good measure I ran tcp dump on the cell phone to see if it got the response which it did but nothing happens after.
:/data/data/com.termux/files/home # tcpdump -nnvvi any port 5222 -c 10
tcpdump: data link type LINUX_SLL2
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
^[[C19:14:13.251480 tun0 Out IP (tos 0x0, ttl 64, id 25447, offset 0, flags [DF], proto TCP (6), length 60)
192.168.123.7.48742 > $OPENWRT_WAN.5222: Flags [S], cksum 0xd62d (correct), seq 1393226723, win 65535, options [mss 1240,sackOK,TS val 2948544947 ecr 0,nop,wscale 9], length 0
19:14:13.289059 tun0 In IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)
$OPENWRT_WAN.5222 > 192.168.123.7.48742: Flags [R.], cksum 0x2696 (correct), seq 0, ack 1393226724, win 0, length 0
When I try connecting from 5G it seems to be more lively:
root@OpenWrt:~# tcpdump -nnvvi any port 5222 -c 10
tcpdump: data link type LINUX_SLL2
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
19:08:52.268652 eth1 In IP (tos 0x0, ttl 42, id 0, offset 0, flags [none], proto TCP (6), length 60)
$5G_DATA.18085 > $OPENWRT_WAN.5222: Flags [S], cksum 0xbece (correct), seq 3160391759, win 65535, options [mss 1348,sackOK,TS val 2389564212 ecr 0,nop,wscale 9], length 0
19:08:52.268715 br-lan Out IP (tos 0x0, ttl 41, id 0, offset 0, flags [none], proto TCP (6), length 60)
$5G_DATA.18085 > 192.168.2.99.5222: Flags [S], cksum 0x2f92 (correct), seq 3160391759, win 65535, options [mss 1348,sackOK,TS val 2389564212 ecr 0,nop,wscale 9], length 0
19:08:52.268717 lan2 Out IP (tos 0x0, ttl 41, id 0, offset 0, flags [none], proto TCP (6), length 60)
$5G_DATA.18085 > 192.168.2.99.5222: Flags [S], cksum 0x2f92 (correct), seq 3160391759, win 65535, options [mss 1348,sackOK,TS val 2389564212 ecr 0,nop,wscale 9], length 0
19:08:52.268719 eth0 Out IP (tos 0x0, ttl 41, id 0, offset 0, flags [none], proto TCP (6), length 60)
$5G_DATA.18085 > 192.168.2.99.5222: Flags [S], cksum 0x2f92 (correct), seq 3160391759, win 65535, options [mss 1348,sackOK,TS val 2389564212 ecr 0,nop,wscale 9], length 0
19:08:52.269271 lan2 In IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)
192.168.2.99.5222 > $5G_DATA.18085: Flags [S.], cksum 0x5e8b (correct), seq 2252464905, ack 3160391760, win 65160, options [mss 1460,sackOK,TS val 586171843 ecr 2389564212,nop,wscale 7], length 0
19:08:52.269271 br-lan In IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)
192.168.2.99.5222 > $5G_DATA.18085: Flags [S.], cksum 0x5e8b (correct), seq 2252464905, ack 3160391760, win 65160, options [mss 1460,sackOK,TS val 586171843 ecr 2389564212,nop,wscale 7], length 0
19:08:52.269305 eth1 Out IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 60)
$OPENWRT_WAN.5222 > $5G_DATA.18085: Flags [S.], cksum 0xedc7 (correct), seq 2252464905, ack 3160391760, win 65160, options [mss 1460,sackOK,TS val 586171843 ecr 2389564212,nop,wscale 7], length 0
19:08:52.298751 eth1 In IP (tos 0x0, ttl 42, id 0, offset 0, flags [none], proto TCP (6), length 52)
$5G_DATA.18085 > $OPENWRT_WAN.5222: Flags [.], cksum 0x1a7f (correct), seq 1, ack 1, win 128, options [nop,nop,TS val 2389564242 ecr 586171843], length 0
19:08:52.298773 br-lan Out IP (tos 0x0, ttl 41, id 0, offset 0, flags [none], proto TCP (6), length 52)
$5G_DATA.18085 > 192.168.2.99.5222: Flags [.], cksum 0x8b42 (correct), seq 1, ack 1, win 128, options [nop,nop,TS val 2389564242 ecr 586171843], length 0
19:08:52.298776 lan2 Out IP (tos 0x0, ttl 41, id 0, offset 0, flags [none], proto TCP (6), length 52)
$5G_DATA.18085 > 192.168.2.99.5222: Flags [.], cksum 0x8b42 (correct), seq 1, ack 1, win 128, options [nop,nop,TS val 2389564242 ecr 586171843], length 0
This doesn't appear to be limited to XMPP. If I just try a dig @192.168.123.1 google.com
from the cell phone's Termux terminal, it times out. However, I can ping 192.168.123.1. From the VPN I can reach the lan. The paste for the cell phone's TCP dump was created by sshing into my desktop, opening nano and pasting the result. From the VPN I can also go in the internet as long as I use an external DNS.