Tunnel ALL traffic through VPN on mobile?

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Tritonono
OpenVpn Newbie
Posts: 1
Joined: Wed Sep 29, 2021 10:39 am

Tunnel ALL traffic through VPN on mobile?

Post by Tritonono » Wed Sep 29, 2021 10:46 am

Hello. I don't fully understand the mechanics behind how OpenVPN works, but I have a dilemma: why is only HTTP and HTTPS traffic routed through the VPN? To be more specific, on my iPhone I am accessing a website which also has websockets connections on a custom port (not 443) and those websockets connections are not tunnelled through the VPN but rather directly exposing my IP address and being susceptible to any network firewall/blocked ports

Possible relevant info:

Code: Select all

2021-06-04 20:34:56 UNUSED OPTIONS
4 [resolv-retry] [infinite] 
5 [nobind] 
6 [user] [nobody] 
7 [group] [nogroup] 
8 [persist-key] 
9 [persist-tun] 
13 [verb] [3] 

2021-06-04 20:34:56 Tunnel Options:V4,dev-type tun,link-mtu 1571,tun-mtu 1500,proto TCPv4_CLIENT,keydir 1,cipher AES-256-CBC,auth SHA256,keysize 256,tls-auth,key-method 2,tls-client

2021-06-04 20:34:56 Peer Info:
IV_VER=3.git::58b92569
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_AUTO_SESS=1
IV_GUI_VER=net.openvpn.connect.ios_3.2.3-3760
IV_SSO=openurl

2021-06-04 20:34:56 SSL Handshake: CN=server, TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA

2021-06-04 20:34:56 OPTIONS:
0 [redirect-gateway] [def1] [bypass-dhcp] 
1 [dhcp-option] [DNS] [94.140.14.14] 
2 [dhcp-option] [DNS] [94.140.15.15] 
3 [route] [10.8.0.1] 
4 [topology] [net30] 
5 [ping] [10] 
6 [ping-restart] [120] 
7 [ifconfig] [10.8.0.6] [10.8.0.5] 
8 [peer-id] [0] 
9 [cipher] [AES-256-GCM] 


2021-06-04 20:34:56 PROTOCOL OPTIONS:
  cipher: AES-256-GCM
  digest: NONE
  compress: NONE
  peer ID: 0

2021-06-04 20:34:56 NIP: preparing TUN network settings

2021-06-04 20:34:56 NIP: adding IPv4 address to network settings 10.8.0.6/255.255.255.252

2021-06-04 20:34:56 NIP: adding (included) IPv4 route 10.8.0.4/30

2021-06-04 20:34:56 NIP: adding (included) IPv4 route 10.8.0.1/32

2021-06-04 20:34:56 NIP: redirecting all IPv4 traffic to TUN interface

2021-06-04 20:34:56 Connected via NetworkExtensionTUN

2021-06-04 20:34:56 EVENT: CONNECTED xxxxxxx via /TCPv4 on NetworkExtensionTUN/10.8.0.6/ gw=[/]

Post Reply