OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Road Warrior OpenVPN link- possible Routing and DNS issue
« previous next »
  • Print
Pages: [1]

Author Topic: Road Warrior OpenVPN link- possible Routing and DNS issue  (Read 3266 times)

Wombat

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Road Warrior OpenVPN link- possible Routing and DNS issue
« on: September 05, 2018, 03:55:19 am »
I have established a OpenVPN server on the OPNSense Router and successfully connected a client (OpenVPN on Android and Viscosity on W10) remotely through to the Router as evident by the client getting a VPN IP address (10.0.2.x).
But I cannot use that connection to connect to any of servers inside my Routers domain (10.0.0.x) for HTML traffic.
Is there something I am missing in the client, or the Router that allows a request from the VPN client be directed through to the servers on the routers Domain (10.0.0.x).

Once I have that basic connectivity working, is there some smart configuration I can set up to direct IP traffic depending on how I am connected to the internet, ie
If connected to my Domain (computer WiFi or Ethernet IP is 10.0.0.x) then requests to 10.0.0.x stay in the Domain, otherwise they are routed out through the gateway to the internet.  {this already works, using unbounded DNS), but
If connected to the internet (computer WiFi or Ethernet IP is not 10.0.0.x), all IP traffic is routed over internet connection except to 10.0.0.x which is routed over VPN connection (with IP of 10.0.2.*) into my Domain.
Thanks in advance
Logged
OPNSense 18.7, Core i7-2500, 8Gb RAM, 128Gb SSD, 8 x Intel NIC.
Ian

Deku

  • Newbie
  • *
  • Posts: 31
  • Karma: 4
    • View Profile
Re: Road Warrior OpenVPN link- possible Routing and DNS issue
« Reply #1 on: October 12, 2018, 11:24:25 pm »
I had this problem as well.  I fixed it by disabling Unbound DNS and instead using Dnsmasq DNS.  I then specified the IP of the internal network gateway (Opnsense LAN) as the DNS server in the OpenVPN server settings.
« Last Edit: October 12, 2018, 11:27:43 pm by Deku »
Logged

Baliste

  • Newbie
  • *
  • Posts: 47
  • Karma: 7
    • View Profile
Re: Road Warrior OpenVPN link- possible Routing and DNS issue
« Reply #2 on: February 04, 2019, 12:45:33 pm »
Hello,

I faced the same kind of problem and I added the OpenVPN tunnel network to the unbound ACL, and it is working now.

Frédéric
Logged

Wombat

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: Road Warrior OpenVPN link- possible Routing and DNS issue
« Reply #3 on: April 11, 2019, 08:51:17 am »
Thanks for your suggestions, tried both but the problem still exist.
I have started another topic on this.
Logged
OPNSense 18.7, Core i7-2500, 8Gb RAM, 128Gb SSD, 8 x Intel NIC.
Ian

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Road Warrior OpenVPN link- possible Routing and DNS issue
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2