Access to local lan where a client connected from?
Posted: Mon Jul 17, 2017 12:51 am
Hi,
I am sorry if this question has been answered before.
But I cannot find an easy answer to this and I'm currently learning OpenVPN.
I want the clients to be able to connect to their own network while connected to the VPN.
All my clients wants to route all their traffic over the 12.34.56.78 ip, that works fine with the "Should client Internet traffic be routed through the VPN?" option.
1. Server is running on a public ip, lets call it 12.34.56.78 (server is behind a NAT and portforwarded)
2. Server local ip is 192.168.0.150
3. Clients are connected from a network with ip 192.168.10.x
4. An access rule for the 192.168.0.0/24 works as expected (clients reaches units on the 192.168.0.x network)
Usually the clients are android units, so I use the OpenVPN connect app.
But here is the problem; after the connection is made the clients looses connection to the 192.168.10.x network (where they connected from).
I want that to be excluded from the routing, how is that possible?
After searching I found this little piece of solution
But I cannot find a way to enter this into the AS setup, nor any "exclude these networks" option.
If you can guide me in the right direction, I would be glad
I am sorry if this question has been answered before.
But I cannot find an easy answer to this and I'm currently learning OpenVPN.
I want the clients to be able to connect to their own network while connected to the VPN.
All my clients wants to route all their traffic over the 12.34.56.78 ip, that works fine with the "Should client Internet traffic be routed through the VPN?" option.
1. Server is running on a public ip, lets call it 12.34.56.78 (server is behind a NAT and portforwarded)
2. Server local ip is 192.168.0.150
3. Clients are connected from a network with ip 192.168.10.x
4. An access rule for the 192.168.0.0/24 works as expected (clients reaches units on the 192.168.0.x network)
Usually the clients are android units, so I use the OpenVPN connect app.
But here is the problem; after the connection is made the clients looses connection to the 192.168.10.x network (where they connected from).
I want that to be excluded from the routing, how is that possible?
After searching I found this little piece of solution
Code: Select all
route 192.168.10.0 255.255.255.0 net_gateway
redirect-gateway def1
If you can guide me in the right direction, I would be glad