Topic: openvpn client

in a configuration with a openvpn client on a router, how to reach the devices connected to the router?

To explain:
lan 1: 192.168.1.x
lan 2: 192.168.0.x

vpn server on pc connected to lan1
vpn client  on router openwrt on lan2
ipcamera connected to lan2

from pc i can connect to the router but i cant reach the ipcamera

Re: openvpn client

A picture if the network is always helpful.

3 (edited by gamba47 2017-08-12 03:27:02)

Re: openvpn client

Take a look at this

OpenVPN need to know how to send you to the other network

In the Router on Lan1 you need to see a route sending to tun0.
You can check router doing this:

route -n

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         x.x.x.x             UG    20     0        0 eth0.2         UG    30     0        0 eth0.3   UG    0      0        0 tun0   U     0      0        0 tun0   U     0      0        0 br-lan   U     30     0        0 eth0.3 UH    30     0        0 eth0.3   UG    0      0        0 tun0       <---- this line is the important! U     20     0        0 eth0.2

In this case. 192.168.11.x is going to tun0 (the vpn interface)

Best regards