What are TAP-Windows adapters. TAP-Windows provides virtual TAP device functionality on the Windows OS. It is installed in the C: Program Files TAP-Windows folder and is required by your VPN software to function. TAP devices are virtual network kernel devices supported entirely in software – and not backed up by hardware network adapters.
I'michael connecting to an OpenVPN machine from Ubuntu 16.04, with OpenVPN 2.3.10 from the command line making use of
sudo openvpn -config customer.conf
, or as a program usingsudo provider openvpn@client start
.I wish the producing connection to be utilized as least expensive priority, therefore I'm attempting to set the metric of the default route it generates to 1000, nevertheless I'm not really sure how to achieve this. The OpenVPN manual areas:
-route-metric meters
Specify a default metric meters for make use of with
-path
.I'd expected that including
route-metric 1000
to my config file would affect the default path that OpenVPN creates automatically, nevertheless I possess to suppose that it'h only utilized with the-route
option, and the path in issue still offers a metric of 0:I can observe three ways rounded this issue. How can I go about attaining one of them?
Option 1:Tell OpenVPN to use a different metric when developing the default route
Choice 2:Prevent the route from getting produced in the very first place, and make use of the
-route
option to make my personal using thevpngateway
variable provided by this choice (I think)Option 3:Modify the default path making use of the
-path
option. This will require knowing all the parameters of the route, so some scripting may end up being needed.Jonathan Holvey
Jonathan HolveyJonathan Holvey
1 Reply
It appears likeChoice 2; avoiding the default path from becoming created, can end up being achieved making use of the
route-nopull
choice.-route-nopull
- When utilized with
-customer
or-draw
, accept choices sent by machine EXCEPT for ways, block-outside-dns and dhcp choices like DNS machines. - When used on the client, this choice effectively discos the machine from incorporating ways to the customer's routing desk, however notice that this option still allows the server to set the TCP/IP attributes of the customer's TUN/TAP user interface.
Jonathan HolveyJonathan Holvey