You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



DNS and OpenVPN Access Server

Author (Read 6032 times)

0 Members and 1 Guest are viewing this topic.

Re: DNS and OpenVPN Access Server
« Reply #2 on: July 28, 2015, 05:31:38 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

For a different issue I had some notes.
/etc/resolv.conf file get's re-written after various events, hence why it goes back to: 127.0.0.1

Look at this to se if it helps:
https://help.ubuntu.com/12.04/serverguide/network-configuration.html#name-resolution
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

DNS and OpenVPN Access Server
« Reply #1 on: July 28, 2015, 03:19:29 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
I have my own OpenVPN Access Server.  To install my OpenVPN client and connect to my Access Server, I follow the instructions at https://openvpn.net/index.php/access-server/docs/admin-guides/182-how-to-connect-to-access-server-with-linux-clients.html.  When I have the server redirect internet browsing, so that the network my Access Server is connected to handles the browsing, I can ping IP addresses, but I cannot ping domain names or browse the internet.  For example, I can ping the Google public DNS server 8.8.8.8, but I cannot ping or browse to www.google.com.

I put in a ticket with the folks at OpenVPN.  They led me to my /etc/resolv.conf file, which shows my nameserver as 127.0.0.1.  When I changed the nameserver to 8.8.8.8, I could ping ip addresses and domain names and browse the internet.  Using www.ipchicken.com, my internet browsing appeared to be coming from the same public IP address as my OpenVPN Access Server.  This was the result I was looking for.  But after rebooting, the nameserver returned to 127.0.0.1. 

As a workaround for this, I added 8.8.8.8 as an Additional DNS Server in my Network Connections.  I have been able to use another Ubuntu Linux based distro without this workaround.  And the folks at OpenVPN suggested there might be something special going on with the distro I'm using (Linux Lite 2.4 64 bit) that could be causing the /etc/resolv.conf file to use the local loopback address as my nameserver.

For the record, I have LL 2.4 64bit running on my laptop and my desktop, and the behavior connecting to my OpenVPN Access Server is the same.  I have to add 8.8.8.8 to my Network Connections settings, as a workaround, in order to get the expected behavior.
Want to thank me?  Click my [Thank] link.
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section