Mar 14, 2016

2FA options : OpenVPN I setup OpenVPN in a docker container on my server and only my desktop has very slow speeds. The only things I changed in the config file are the `server 192.168.255.0 255.255.255.0` line with `server 10.1.0.0 255.255.255.0` and I set a custom DNS (pihole container). The OpenVPN server can push DHCP options such as DNS and WINS server addresses to clients (some caveats to be aware of). Windows clients can accept pushed DHCP options natively, while non-Windows clients can accept them by using a client-side up script which parses the foreign_option_n environmental variable list. The OpenVPN server can push DHCP options such as DNS and WINS server addresses to clients (some caveats to be aware of). Windows clients can accept pushed DHCP options natively, while non-Windows clients can accept them by using a client-side up script which parses the foreign_option_ n environmental variable list. The following options are legal in a client-specific context: –push, –push-reset, –push-remove, –iroute, –ifconfig-push, and –config. –ccd-exclusive Require, as a condition of authentication, that a connecting client has a –client-config-dir file.

push "dhcp-option DNS [ip-address]" - replace [ip-address] with the address of your DNS server. I needed this to resolve any names on the remote network. push "dhcp-option DOMAIN [domain-name]" - replace [domain-name] with the desired DNS Search Path. This was required unless you want to type in the full address, with domain, in order to access

This is because the DNS of my OpenVPN Service sometimes dies. I tried to add dhcp-option DNS 8.8.8.8, however, I see a message that says: Options error: option 'dhcp-option' cannot be used in this context ([PUSH-OPTIONS]) Is there a way to add a DNS to the OpenVPN client configuration? The server configuration has the ability to "push" certain network configuration options to the clients. These include IP addresses, routing commands, and a few connection options. OpenVPN offers two types of interfaces for networking via the Universal TUN/TAP driver. Open the file “C:\Program Files\OpenVPN\config\server.ovpn” in OpenVPN server and remove comment for below three lines. Copy to Clipboard push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 208.67.222.222" push "dhcp-option DNS 208.67.220.220"

Now with version 2.4.0 of OpenVPN, when you attempt to push a configuration to an OpenVPN client, the openvpn '--push' command only expects one argument. In version 2.3.0 it didn't complain about this, but now it does. The following command (in openvpn) is considered invalid:--push …

routing - OpenVPN: Push a route to client with a different push "route 10.10.10.0 255.255.255.0 10.0.0.2 1" From the OpenVPN man page:--route network/IP [netmask] [gateway] [metric] This tells the server config to "push" to the client, the route command which sets a networking route of the 10.10.10.0/24 subnet via the gateway 10.0.0.2 with a metric of 1. Metrics are used to give "preference" if multiple routes exist (such that the lowest cost wins).