We help IT Professionals succeed at work.

OpenVPN and Local Network Prinitng

We have a network in the 192.168.1.x subnet.  We have three clients on it, including a networked printer.

We have an OpenVPN with a subnet of 3.x.x.x.

We have included a PUSH command in the client config (push 192.168.1.100 255.255.255.0) to send traffic in the VPN tunnel to the printer (which has a static IP of 192.168.1.100).  

Everything works fine when the clients are not connected to the network.

However, when they are it does not print, even though I have used the PUSH command in the config file.

How can I get the local clients to the local networked printer while on the VPN?
Comment
Watch Question

Qlemo"Batchelor", Developer and EE Topic Advisor
CERTIFIED EXPERT
Top Expert 2015

Commented:
I do not get your configuration. The three clients are local, so how is that related to the OpenVPN connection? Or are those clients connected via OpenVPN only?

PUSH in client config does not make sense. You either put the ROUTE commands (without PUSH) into the client config, or prepended with PUSH in the server config file.

It's confusing, so please try to describe in more depth.
Commented:
We reviewed the settings and script and it turns out both the remote and client were both on the same subnet.  Both were 192.168.1.x and we changed one to 172.16.0.x and it fixed the problem.

Author

Commented:
No answers worked so we just worked on it by ourselves until we got it to work.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.