Pushing OpenVPN Server DNS Settings to Client

Discussion in 'Tomato Firmware' started by Nello, Dec 31, 2013.

  1. Nello

    Nello Reformed Router Member

    I running Shilbby's Tomato Firmware 1.28.0000 MIPSR2-102 K26 USB AIO on an Asus RT-N16. (My apologies if this forum is for Linksys routers only.)

    From my OSX and iOS OpenVPN clients at Wi-Fi hotspots I'm able to make connections to OpenVPN on my router and access the internet without any problem ... except that I appear to be using the hotspot's DHCP for DNS instead of the DNS on the OpenVPN server, which is configured (Basic -> Network -> Static LAN) to use OpenDNS with DNSCrypt.

    I'd push OpenDNS with DNSCrypt to my OpenVPN clients.

    My server and client configuration files are below.

    Can any help me figure out how to: get my clients to either:

    1. Push the server's DNS settings to the clients, or

    2. Configure the clients to use OpenDNS with DNSCrypt.

    Thank you in advanced.

    - nello

    Tomato v1.28.0000 MIPSR2-102 K26 USB AIO

    # Automatically generated configuration
    proto udp
    port 443
    dev tun22
    comp-lzo adaptive
    keepalive 15 60
    verb 3
    push “route″
    push “dhcp-option DOMAIN OctoberGroup.local”
    push “dhcp-option DNS″
    push “redirect-gateway def1″
    tls-auth static.key 0
    ca ca.crt
    dh dh.pem
    cert server.crt
    key server.key
    status-version 2
    status status
    # Custom Configuration
    push “route″
    user nobody
    group nobody
    verb 3

    # Client Configuration
    proto udp
    remote 443
    dev tun
    ca ca.crt
    cert nello.crt
    key nello.key
    ns-cert-type server
    tls-remote October-Group-VPN
    tls-auth ta.key 1
    user nobody
    group nobody
    verb 6
    mute 10
  2. gfunkdave

    gfunkdave LI Guru Member

    You probably just need to refresh your client's network settings so that it picks up the pushed settings. Try adding this line to your client's config file (if it's a Windows machine):


    Or just remember to do an ipconfig /all after connecting.
    Nello likes this.
  3. PetervdM

    PetervdM Network Guru Member

  4. Nello

    Nello Reformed Router Member

    Thank you for your suggestion.

    Here's what the man page says about register-dns:
    My clients are (Apple) OSX and iOS devices.

    Does register-dns have any effect on non-Windows clients?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice