Connect vpn client with the same net class

Samples of working configurations.
Post Reply
dinu
OpenVpn Newbie
Posts: 1
Joined: Tue Feb 03, 2015 8:16 pm

Connect vpn client with the same net class

Post by dinu » Tue Feb 03, 2015 8:47 pm

Hello,
I have a openvpn server(also application server) witch runs on a lan 192.168.1.0/24. Various clients connects through Internet using openvpn client. Now I got a new client with a lan having the same 192.168.1.0/24. It is difficult for me to ask either of the organizations to change their net class. I've configured a few openvpn on client's workstations. It connects but lan printing and Internet access stop working. I need to access only the remote server using vpn(192.168.1.100). Openvpn is configured on tcp, it pushes the route 192.168.1.0/255.255.255.0 and no gateway redirect.

Can anybody have any idea ?

User avatar
maikcat
Forum Team
Posts: 4202
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Connect vpn client with the same net class

Post by maikcat » Wed Feb 04, 2015 8:38 am

you can push a 32bit mask route like

Code: Select all

push "route 192.168.1.100 255.255.255.255"
and no other routes,but the client will loose local 1.100 server

other approach is to use openvpn's nat function.

Michael.

Post Reply