OpenVPN installed on 2019 server, clients connect but cant reach remote network?

This is the forum to post your config. Include diagrams, usage graphs, and all the other goodies to show off your network.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Wed Sep 07, 2022 4:16 pm

I've installed the openvpn software and ran through tutorials on getting it set up, the remote client can connect.. gets an ip like 10.8.0.x

The 2019 server is on a LAN network with an address in the 172.16.0.x subnet (255.255.248.0) of 172.16.1.60
The router at the building is 172.16.0.1 (sonicwall).
The LAN network already has a dhcp server and dns server (windows 2022 servers) which give out  172.16.2.x addresses

The home network is something like 192.168.0.x (so the remote machine might be 192.168.0.7)


I've tried adding push "route 172.16.0.0 255.255.248.0" in the server file, but the client still cant ping or reach servers on the 172 subnet.
I added the registry key on the server to allow ip routing.

What am i missing here? I believe it has to do with the router not knowing anything about 10.8.0.x and needing a route somehow. Or i need to tap into the existing DHCP and use 172.x addresses somehow.

Thanks in advance
Last edited by markm75 on Wed Sep 07, 2022 7:39 pm, edited 5 times in total.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach network?

Post by TinCanTech » Wed Sep 07, 2022 4:19 pm


markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach network?

Post by markm75 » Wed Sep 07, 2022 4:22 pm

TinCanTech wrote:
Wed Sep 07, 2022 4:19 pm
Is it not obvious ?

https://community.openvpn.net/openvpn/wiki/GettingHelp
Well not entirely, no.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by TinCanTech » Wed Sep 07, 2022 5:38 pm

So, this is for The Office and you are the Network administrator ?

markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Wed Sep 07, 2022 5:54 pm

TinCanTech wrote:
Wed Sep 07, 2022 5:38 pm
So, this is for The Office and you are the Network administrator ?
This is installed on a virtual machine on the office side, 2019 server. Remote side is just a client.
Also, more ideally i dont want to have to deal with setting routes manually on the clients, unless there is no other way.

markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Thu Sep 08, 2022 2:52 pm

I believe the only thing i need is a proper route set on the sonicwall gateway, but its choices in the dialogue are confusing as to what i should be setting for things like destination, interface etc.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by TinCanTech » Thu Sep 08, 2022 3:14 pm

Being as the word sonic is an adjective relating to audible sound,
I would like-wise expect a firewall named sonicwall to be dangerously confused.

markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Fri Sep 09, 2022 4:17 pm

I was able to get the route configured on the sonicwall..
I can now ping machine ip addresses on the remote network, however, resolving them by name/dns doesnt work (i'm using dev tun mode with udp as of now).

markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Fri Sep 09, 2022 6:46 pm

i believe adding 
 dhcp-option DNS 172.16.1.71 to the client config has cured dns woes (this is our dns server), however ping ability is lost, but thats not a huge deal.


However, its necessary to add machinename.dns.local to the end to resolve, cant just do by machine name, perhaps another setting

markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Sat Sep 10, 2022 1:17 am

adding this line cured the dns:
dhcp-option DOMAIN-SEARCH domain.local

I guess this is a self help forum lol, nonetheless, everything so far on my test is working... took a ton of digging to figure out but it is.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by TinCanTech » Sat Sep 10, 2022 1:25 am

You are being paid to do your job.

\we are not being paid to teach you DNS.

markm75
OpenVpn Newbie
Posts: 8
Joined: Wed Sep 07, 2022 4:12 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by markm75 » Mon Sep 12, 2022 7:07 pm

TinCanTech wrote:
Sat Sep 10, 2022 1:25 am
You are being paid to do your job.

\we are not being paid to teach you DNS.
This is supposed to be a forum for assistance, not snarky/uninformative replies, but its all good.

Thanks for the help.

User avatar
Pippin
Forum Team
Posts: 1200
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by Pippin » Mon Sep 12, 2022 8:52 pm

TS was able to solve the issue, closing.

PS
There is a Special-Use Domain 'home.arpa.':
https://www.rfc-editor.org/rfc/rfc8375.html
instead of .local
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN installed on 2019 server, clients connect but cant reach remote network?

Post by TinCanTech » Mon Sep 12, 2022 10:44 pm

markm75 wrote:
Mon Sep 12, 2022 7:07 pm
This is supposed to be a forum for assistance
That is not true.

This forum is for the support of OpenVPN Community Edition.
markm75 wrote:
Mon Sep 12, 2022 7:07 pm
not snarky/uninformative replies
The reply was informative. If you found it to be snarky then that is because you came here with preconceived ideas about how we teach you how to do your job, for free,

I find it to be particularly infuriating when people who are being payed to do a job, expect other people to tell them how to do their job for free.

This is a basic naivety: In the REAL World, you hire a professional to teach you how to do your job.

There is no other reality, only the make-believe of naivety.

Post Reply