Data is not routed through VPN
Posted: Mon Feb 01, 2021 11:47 pm
Hello,
I am using Viscosity(version 1.9) on M1 MacBook Pro, OS "11.1", but I found that Data is not routed through VPN.
I originally wanted to use VS Code to remotely ssh to my server through openVPN, but the connection timed out.
I used a Tap VPN, and here is the information when I use ifconfig en6:
--------------------------------------------------------------------------------------------------------------------------
en6: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=400<CHANNEL_IO>
ether a6:10:d1:6340
inet6 fe80:b4f5:65ca:8e7e%en6 prefixlen 64 secured scopeid 0x19
inet 172.20.51.27 netmask 0xfffff800 broadcast 172.20.55.255
inet6 2001:250719:c70:783c:a059:6a8 prefixlen 64 autoconf secured
inet6 2001:250719:f953:855:d38e:8003 prefixlen 64 autoconf temporary
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
Actually, if the data routed through VPN, next hop would be 172.20.*.* etc. Then I use traceroute to track, I found the data is not routed through VPN:
---------------------------------------------------------------------------------------------
traceroute to 10.10.1.87 (10.10.1.87), 64 hops max, 52 byte packets
1 192.168.0.1 (192.168.0.1) 3.393 ms 1.735 ms 1.660 ms
2 10.76.64.1 (10.76.64.1) 7.902 ms 4.278 ms 4.376 ms
3 218.202.12.53 (218.202.12.53) 4.994 ms 9.720 ms 4.952 ms
......
if everything goes right, I should get the result:
-------------------------------------------------------------------------
traceroute to 10.10.1.87 (10.10.1.87), 64 hops max, 52 byte packets
1 172.20.48.2 (172.20.48.2) 109.300 ms 101.385 ms 111.155 ms
2 10.250.1.1 (10.250.1.1) 102.849 ms 100.998 ms 104.760 ms
3 10.10.1.87 (10.10.1.87) 100.866 ms 157.957 ms 101.041 ms
I tried all the options like send all traffic over VPN connection, send all IPV4 traffic over VPN connection, but still doesn't work.
And here is the log:
-----------------------------------------------------------------------------------
2021-02-01 20:17:51: Viscosity Mac 1.9 (1556)
2021-02-01 20:17:51: Viscosity OpenVPN Engine Started
2021-02-01 20:17:51: Running on macOS 11.1.0
2021-02-01 20:17:51: ---------
2021-02-01 20:17:51: State changed to Connecting
2021-02-01 20:17:51: Checking reachability status of connection...
2021-02-01 20:17:51: Connection is reachable. Starting connection attempt.
2021-02-01 20:17:51: WARNING: --keysize is DEPRECATED and will be removed in OpenVPN 2.6
2021-02-01 20:17:51: OpenVPN 2.4.9 arm-apple-darwin20.0.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on Nov 10 2020
2021-02-01 20:17:51: library versions: OpenSSL 1.1.1h 22 Sep 2020, LZO 2.10
2021-02-01 20:17:51: Valid endpoint found: 210.75.252.18:8443:udp
2021-02-01 20:17:51: TCP/UDP: Preserving recently used remote address: [AF_INET]210.75.252.18:8443
2021-02-01 20:17:51: UDP link local: (not bound)
2021-02-01 20:17:51: UDP link remote: [AF_INET]210.75.252.18:8443
2021-02-01 20:17:51: State changed to Authenticating
2021-02-01 20:17:52: [siat-server] Peer Connection Initiated with [AF_INET]210.75.252.18:8443
2021-02-01 20:17:53: DHCP enabled on tap interface en6
2021-02-01 20:17:53: IPv6 enabled on tap interface en6
2021-02-01 20:17:54: TUN/TAP device en6 opened
2021-02-01 20:17:54: NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
2021-02-01 20:17:54: Initialization Sequence Completed
2021-02-01 20:17:54: DNS mode set to Split
2021-02-01 20:17:54: WARNING: Split DNS is being used however no DNS domains are present. The DNS server/s for this connection may not be used. For more information please see: https://www.sparklabs.com/support/kb/ar ... e-present/
2021-02-01 20:17:54: State changed to Connected
2021-02-01 20:17:57: DNS change detected, ignoring as it is likely RDNSS
2021-02-01 20:17:57: DNS change detected, ignoring as it is likely RDNSS
2021-02-01 20:17:57: DNS change detected, ignoring as it is likely RDNSS
I am using Viscosity(version 1.9) on M1 MacBook Pro, OS "11.1", but I found that Data is not routed through VPN.
I originally wanted to use VS Code to remotely ssh to my server through openVPN, but the connection timed out.
I used a Tap VPN, and here is the information when I use ifconfig en6:
--------------------------------------------------------------------------------------------------------------------------
en6: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=400<CHANNEL_IO>
ether a6:10:d1:6340
inet6 fe80:b4f5:65ca:8e7e%en6 prefixlen 64 secured scopeid 0x19
inet 172.20.51.27 netmask 0xfffff800 broadcast 172.20.55.255
inet6 2001:250719:c70:783c:a059:6a8 prefixlen 64 autoconf secured
inet6 2001:250719:f953:855:d38e:8003 prefixlen 64 autoconf temporary
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
Actually, if the data routed through VPN, next hop would be 172.20.*.* etc. Then I use traceroute to track, I found the data is not routed through VPN:
---------------------------------------------------------------------------------------------
traceroute to 10.10.1.87 (10.10.1.87), 64 hops max, 52 byte packets
1 192.168.0.1 (192.168.0.1) 3.393 ms 1.735 ms 1.660 ms
2 10.76.64.1 (10.76.64.1) 7.902 ms 4.278 ms 4.376 ms
3 218.202.12.53 (218.202.12.53) 4.994 ms 9.720 ms 4.952 ms
......
if everything goes right, I should get the result:
-------------------------------------------------------------------------
traceroute to 10.10.1.87 (10.10.1.87), 64 hops max, 52 byte packets
1 172.20.48.2 (172.20.48.2) 109.300 ms 101.385 ms 111.155 ms
2 10.250.1.1 (10.250.1.1) 102.849 ms 100.998 ms 104.760 ms
3 10.10.1.87 (10.10.1.87) 100.866 ms 157.957 ms 101.041 ms
I tried all the options like send all traffic over VPN connection, send all IPV4 traffic over VPN connection, but still doesn't work.
And here is the log:
-----------------------------------------------------------------------------------
2021-02-01 20:17:51: Viscosity Mac 1.9 (1556)
2021-02-01 20:17:51: Viscosity OpenVPN Engine Started
2021-02-01 20:17:51: Running on macOS 11.1.0
2021-02-01 20:17:51: ---------
2021-02-01 20:17:51: State changed to Connecting
2021-02-01 20:17:51: Checking reachability status of connection...
2021-02-01 20:17:51: Connection is reachable. Starting connection attempt.
2021-02-01 20:17:51: WARNING: --keysize is DEPRECATED and will be removed in OpenVPN 2.6
2021-02-01 20:17:51: OpenVPN 2.4.9 arm-apple-darwin20.0.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on Nov 10 2020
2021-02-01 20:17:51: library versions: OpenSSL 1.1.1h 22 Sep 2020, LZO 2.10
2021-02-01 20:17:51: Valid endpoint found: 210.75.252.18:8443:udp
2021-02-01 20:17:51: TCP/UDP: Preserving recently used remote address: [AF_INET]210.75.252.18:8443
2021-02-01 20:17:51: UDP link local: (not bound)
2021-02-01 20:17:51: UDP link remote: [AF_INET]210.75.252.18:8443
2021-02-01 20:17:51: State changed to Authenticating
2021-02-01 20:17:52: [siat-server] Peer Connection Initiated with [AF_INET]210.75.252.18:8443
2021-02-01 20:17:53: DHCP enabled on tap interface en6
2021-02-01 20:17:53: IPv6 enabled on tap interface en6
2021-02-01 20:17:54: TUN/TAP device en6 opened
2021-02-01 20:17:54: NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
2021-02-01 20:17:54: Initialization Sequence Completed
2021-02-01 20:17:54: DNS mode set to Split
2021-02-01 20:17:54: WARNING: Split DNS is being used however no DNS domains are present. The DNS server/s for this connection may not be used. For more information please see: https://www.sparklabs.com/support/kb/ar ... e-present/
2021-02-01 20:17:54: State changed to Connected
2021-02-01 20:17:57: DNS change detected, ignoring as it is likely RDNSS
2021-02-01 20:17:57: DNS change detected, ignoring as it is likely RDNSS
2021-02-01 20:17:57: DNS change detected, ignoring as it is likely RDNSS