Forums

×

Warning

JUser: :_load: Unable to load user with ID: 337241
JUser: :_load: Unable to load user with ID: 365661
Murray
Murray
Offline
Resolved
0 votes
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.
In VPN
Thursday, March 01 2012, 05:59 PM
Share this post:
Responses (3)
  • Accepted Answer

    Thursday, August 25 2022, 11:02 AM - #Permalink
    Resolved
    2 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, March 22 2023, 01:28 PM - #Permalink
    Resolved
    0 votes
    Hi
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, March 22 2023, 01:44 PM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
Your Reply