Hi guys,
I have installed OpenVPN on ClearOS 5.2. Clients connecting no problem. I can ping any IP on the LAN while connected on VPN. The issue I have is being able to use the LAN DNS server (in the office). My setup is as follows:
ClearOS is in gateway mode and running OpenVPN. Clients getting issued IPs in the range of 10.8.0.0/30
I have a DNS server (windows box) inside the LAN on 192.168.0.201 that I'd like to have pushed out to clients so that they can use this server for name resolution when browsing the LAN over VPN. I have checked on ClearOS and in the /etc/openvpn/clients.conf file I have the line
push "dhcp-option DNS 192.168.0.201"
but when I do an ipconfig /all while connected to VPN my TAP-Win32 (VPN adapter) lists the DNS server as 192.168.1.1
I have seen the same thing happening with a colleague of mine, no problem using IPs to get to resources but name resolution isn't working cause the DNS server is not getting correctly pushed out to the clients. I've seen that we need to edit the server.conf file but when I look for this file on ClearOS I only see it under
/usr/share/openvpn/sample-config-files/server.conf
Is this file in use?
Any assistance is appreciated, thanks.
I have installed OpenVPN on ClearOS 5.2. Clients connecting no problem. I can ping any IP on the LAN while connected on VPN. The issue I have is being able to use the LAN DNS server (in the office). My setup is as follows:
ClearOS is in gateway mode and running OpenVPN. Clients getting issued IPs in the range of 10.8.0.0/30
I have a DNS server (windows box) inside the LAN on 192.168.0.201 that I'd like to have pushed out to clients so that they can use this server for name resolution when browsing the LAN over VPN. I have checked on ClearOS and in the /etc/openvpn/clients.conf file I have the line
push "dhcp-option DNS 192.168.0.201"
but when I do an ipconfig /all while connected to VPN my TAP-Win32 (VPN adapter) lists the DNS server as 192.168.1.1
I have seen the same thing happening with a colleague of mine, no problem using IPs to get to resources but name resolution isn't working cause the DNS server is not getting correctly pushed out to the clients. I've seen that we need to edit the server.conf file but when I look for this file on ClearOS I only see it under
/usr/share/openvpn/sample-config-files/server.conf
Is this file in use?
Any assistance is appreciated, thanks.
In VPN
Share this post:
Responses (3)
-
Accepted Answer
It contains settings used to create a VPN connection with a remote computer. The sample server configuration file is an ideal starting point for an OpenVPN server configuration. It will create a VPN using a virtual TUN network interface (for routing), will listen for client connections on UDP port 1194 (OpenVPN's official port number), and distribute virtual addresses to connecting clients from the 10.8.0.0/24 subnet. If you want to use a virtual IP address range other than 10.8.0.0/24, you should modify the server directive. Remember that this virtual IP address range should be a private range which is currently unused on your network.Null’s Clash -
Accepted Answer
It seems like the DHCP option for the DNS server is not being properly pushed out to clients.
Editing the server.conf file may be necessary, but it's unclear if the file is in use. Further investigation is needed.

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »