Posts

Post not yet marked as solved
4 Replies
2.4k Views
Hello !We are developing application, which automatically logins to WiFi captive portal, initiates VPN and then should then send all traffic through VPN tunnel. Traffic sent through VPN is "free of charge" and traffic sent directly to WiFi interfaces if "charged" to end user.Everything works as it should, except some traffic is still sent directly over WiFi interface instead of tunnel, and thus will be "charged". One example is Facebook Messenger STUN traffic. VPN is wiregard using Network Extension framework.#tcpdump -k -X -n -i rvi0 -Q "proc=Messenger" 12:03:26.722675 (en0, proc Messenger:27325, svc BE, out) IP 192.168.99.155.58168 > 157.240.20.6.3478: UDP, length 20 0x0000: fcec da43 1245 044b ed47 841b 0800 4500 ...C.E.K.G....E. 0x0010: 0030 479d 0000 4011 5ce6 c0a8 639b 9df0 .0G...@.\...c... 0x0020: 1406 e338 0d96 001c a266 0001 0000 2112 ...8.....f....!. 0x0030: a442 2b54 6e62 4771 2b34 6b45 594f .B+TnbGq+4kEYO 12:03:26.749385 (en0, proc Messenger:27325, svc BE, in) IP 157.240.20.6.3478 > 192.168.99.155.58168: UDP, length 32 0x0000: 044b ed47 841b fcec da43 1245 0800 4500 .K.G.....C.E..E. 0x0010: 003c d407 4000 5611 7a6f 9df0 1406 c0a8 .<..@.V.zo...... 0x0020: 639b 0d96 e338 0028 f435 0101 000c 2112 c....8.(.5....!. 0x0030: a442 2b54 6e62 4771 2b34 6b45 594f 0001 .B+TnbGq+4kEYO.. 0x0040: 0008 0001 e338 c2cc 06fd .....8....192.168.99.155 here is WiFi interface IP address. Most other traffic correctly travels over VPN tunnel.Probably there is something wrong in setup - any hints?best regards,Taavi Talvik
Posted
by taavi013.
Last updated
.