TAP device metric problem

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
xenoside
OpenVpn Newbie
Posts: 2
Joined: Wed May 04, 2022 2:01 pm

TAP device metric problem

Post by xenoside » Wed May 04, 2022 2:26 pm

Image

This is a problem when connecting to the ASUS router's OpenVPN server.
The purpose is to allocate only the desired IPs without allocating all traffic to the VPN.
Set the server not to allocate internet traffic.
"Direct clients to redirect Internet traffic - NO"
The red item in the attached picture is erased.
(0.0.0.0/1, 128.0.0.0/1)

https://openvpn.net/community-downloads/
In the case of OpenVPN 2.5.6, the metrics of ETH and TAP are the same,
It's not through a VPN, but it's connected to the internet.
push "route 123.123.123.123 255.255.255.255 vpn_gateway"
With this setting, only 123.123.123.123 can go through the VPN.

https://openvpn.net/vpn-client/
In the case of OpenVPN Connect 3.3.6, the metric of TAP is smaller than that of ETH,
No internet and no VPN.
push "route 123.123.123.123 255.255.255.255 vpn_gateway"
With this setting, 123.123.123.123 will be connected, but other Internet connections will be cut off.

I think the metric of OpenVPN 2.5.6 is normal.
Please correct the metric of OpenVPN Connect 3.3.6.

thank you.

xenoside
OpenVpn Newbie
Posts: 2
Joined: Wed May 04, 2022 2:01 pm

It doesn't seem to be a metric issue.

Post by xenoside » Thu May 05, 2022 4:10 pm

It seems that the setting is more wrong while testing.
"Direct clients to redirect Internet traffic - YES"
Internet is not available in OpenVPN Connect 3.3.6 even though it is set to .
I found that the internet was not working because dnsserver did not work.
I checked that the external IP is connected well with ping.

Comparing OpenVPN 2.5.6 and ipconfig, I found a difference in dhcp and default gateway.

Code: Select all

OpenVPN Connect 3.3.6
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9 for OpenVPN Connect
   Physical Address. . . . . . . . . : 00-**-**-**-**-**
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::f093:2c48:3cb3:50f2%79(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.8.0.6(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Default Gateway . . . . . . . . . : 10.8.0.5
   DHCPv6 IAID . . . . . . . . . . . : 1325465353
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-28-FA-E5-DF-D8-BB-C1-45-A6-0E
   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

OpenVPN 2.5.6
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-**-**-**-**-**
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::25ac:ecd3:9661:9fb0%87(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.8.0.6(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Lease Obtained. . . . . . . . . . : 2022년 5월 5일 목요일 오후 11:21:42
   Lease Expires . . . . . . . . . . : 2023년 5월 5일 금요일 오후 11:21:41
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . : 10.8.0.5
   DHCPv6 IAID . . . . . . . . . . . : 1459683245
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-28-FA-E5-DF-D8-BB-C1-45-A6-0E
   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

"Advertise DNS to clients - NO"
to remove dns 192.168.0.1
push "dhcp-option DNS 10.8.0.1"
Internet is connected.

OpenVPN 2.5.6 - dns 192.168.0.1 - O
OpenVPN 2.5.6 - dns 10.8.0.1 - O
OpenVPN Connect 3.3.6 - dns 192.168.0.1 - X
OpenVPN Connect 3.3.6 - dns 10.8.0.1 - O

sorry, It doesn't seem to be a metric issue.

I tested it on mac and iphone,
"Advertise DNS to clients - YES"
condition is also good.

The problem only occurs on Windows 10, I don't know what the problem is.

ps. Is there any keyword that means 10.8.0.1 like vpn_gateway?

Post Reply