1,575
edits
Changes
no edit summary
#Run the ''openvpn'' command with ''--script-security 2'' flag to allow ''update-resolv-conf'' to be run as in the following example <pre>sudo openvpn --script-security 2 --config /path/to/client.ovpn</pre>
=More Detailed Explanation===Router Setup==
My [https://wikidevi.com/wiki/TP-LINK_TL-WDR3600 TP-Link TL-WDR3600] router is setup as a [https://www.startpage.com/do/search DNS] Server and [https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol DHCP] Server.
*My router is loaded with [https://dd-wrt.com/ DD-WRT] Firmware v24-sp2 (03/25/13) std
*Static IP addresses for LAN resources (computers) are assigned at '''Services''' -> '''Services''' -> '''DHCP Server''' -> '''Static Leases'''
==OpenVPN Server Setup==
*My OpenVPN is running on an LXC Container hosted on a [https://www.proxmox.com/en/ Proxmox] server.
*I setup my OpenVPN server using a script from https://raw.githubusercontent.com/davejm/OpenVPN-install/tcp/openvpn-install.sh
**The line ''push dhcp-option DOMAIN mylocaldomain.lan'' tells the server to send your local domain to the client as a place for it to search for hostnames that are used by not [https://en.wikipedia.org/wiki/Fully_qualified_domain_name fully qualified].
==OpenVPN Client Setup==
As mentioned above, the crux of the problem is that the client's ''resolve.conf'' files doesn't contain everything it needs. We've already modified the ''server.conf'' file to tell the server to send the necessary options to the client, but we have to make some changes on the client to ensure these options actually get put where they need to go (in the ''resolve.conf'' file)