Hi, I currently have setup as descibed in attached files. OPenVPN connection works, but I can only have access to interfaces (192.168.3.2 and 192.168.3.3) of OpenWRT device. Other devices in LAN (for example 192.136.3.4) are not accessible from client connected through OpenPVN . Server config is:
/etc/config/openvpn
config openvpn 'vpnserver'
option enabled '1'
option dev_type 'tun'
option dev 'ovpns0'
option port '1194'
option proto 'udp'
option comp_lzo 'yes'
option keepalive '10 120'
option persist_key '1'
option persist_tun '1'
option ca '/etc/openvpn/ca.crt'
option cert '/etc/openvpn/my-server.crt'
option key '/etc/openvpn/my-server.key'
option dh '/etc/openvpn/dh2048.pem'
option tls_auth '/etc/openvpn/tls-auth.key 0'
option mode 'server'
option tls_server '1'
option server '192.168.200.0 255.255.255.0'
option topology 'subnet'
option route_gateway 'dhcp'
option client_to_client '1'
list push 'comp-lzo yes'
list push 'persist-key'
list push 'persist-tun'
list push 'topology subnet'
list push 'route-gateway dhcp'
list push 'redirect-gateway def1'
list push 'route 192.168.200.0 255.255.255.0'
list push 'dhcp-option DNS 192.168.3.2'
Client config is:
client
dev tun
proto udp
fast-io
remote <XXX.XXX.XXX.XXX> 1194
remote-cert-tls server
nobind
persist-key
persist-tun
comp-lzo no
verb 3
key-direction 1
Frankly - I am not sure if it is network configuration on OpenWRT issue, or something should be fixed in OpenVPN config.