Hello, I installed a clean version of WireGuard and am using it on my phone, but I've encountered a problem. The handshake works fine when I enable the tunnel through the app. However, traffic doesn't start afterward. If I switch networks (for example, turn on airplane mode for a few seconds and then turn it off), traffic starts working fine. What could be causing this problem?
WirelessGuard? Are you joking?
What is your phone brand/model, OS and version?
And, are you using a personal VPS or a commercial VPN?
Sorry, it's a translator error - English isn't my native language. Yes, the server is my own. Server os - ubuntu 24.04. Telephone - diffrent, tried several, including ios. I've tried mtu, 443 port, preshared keys the settings.
Last modifed conf
[Interface]
PrivateKey = deleted
Address = 10.8.0.1/24
ListenPort = 4500
MTU = 1280
FwMark = 0x51820
PostUp = conntrack -D -p udp --dport 51820 2>/dev/null || true
PostUp = ufw route allow in on wg0 out on ens3
PostDown = ufw route delete allow in on wg0 out on ens3
PostUp = iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
PostUp = iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
PostDown = iptables -D FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
[Peer]
PresharedKey = deleted
PublicKey = deleted
AllowedIPs = 10.8.0.2/32