Forums

×

Warning

JUser: :_load: Unable to load user with ID: 337241
JUser: :_load: Unable to load user with ID: 365661
JUser: :_load: Unable to load user with ID: 379571
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 (7)
  • Accepted Answer

    Wednesday, October 25 2023, 01:31 PM - #Permalink
    Resolved
    0 votes
    [quote] wrote:

    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.GB Whatsapp Download


    How can I use it on my device? I just opened an account on it.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 22 2023, 06:14 PM - #Permalink
    Resolved
    0 votes
    Rohan Barb Barian wrote:

    Jino Kaushik wrote:

    The server.conf file you found in "/usr/share/openvpn/sample-config-files/" is indeed a sample configuration file and not the one being used by ClearOS. The actual server.conf file used by ClearOS is located in a different directory.



    You said "The actual server.conf file used by ClearOS is located in a different directory."

    Can you tell me which directory, please!


    checkout : /etc/openvpn/clients.conf
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 22 2023, 05:06 AM - #Permalink
    Resolved
    0 votes
    Jino Kaushik wrote:

    The server.conf file you found in "/usr/share/openvpn/sample-config-files/" is indeed a sample configuration file and not the one being used by ClearOS. The actual server.conf file used by ClearOS is located in a different directory.



    You said "The actual server.conf file used by ClearOS is located in a different directory."

    Can you tell me which directory, please!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 19 2023, 07:48 AM - #Permalink
    Resolved
    1 votes
    The server.conf file you found in "/usr/share/openvpn/sample-config-files/" is indeed a sample configuration file and not the one being used by ClearOS. The actual server.conf file used by ClearOS is located in a different directory.
    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
  • Accepted Answer

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