Hey there, I followed this guide to setup my VPN server on my router: https://fahadusman.com/setup-openvpn-server-on-openwrt-router/
I can connect to my router/the VPN server, but I can't connect to my NAS or other devices on the LAN. I tried tweaking some settings but couldn't get it to work.... What do I miss?
Here are my configs:
Firewall:
config rule
option name 'Allow-OpenVPN-Inbound'
option target 'ACCEPT'
option src 'wan'
option proto 'udp'
option dest_port '1194'
config zone
option name 'vpn'
option input 'ACCEPT'
option forward 'ACCEPT'
option output 'ACCEPT'
option network 'vpn0'
config forwarding
option dest 'lan'
option src 'vpn'
Network:
config interface 'vpn0'
option proto 'none'
option ifname 'tun0'
OpenVPN:
config openvpn 'myvpn'
option enabled '1'
option dev 'tun'
option port '1194'
option proto 'udp'
option comp_lzo 'yes'
option status '/var/log/openvpn_status.log'
option log '/tmp/openvpn.log'
option verb '3'
option mute '5'
option keepalive '10 120'
option persist_key '1'
option persist_tun '1'
option user 'nobody'
option group 'nogroup'
option mode 'server'
option tls_server '1'
option topology 'subnet'
option server '192.168.2.0 255.255.255.0'
option route_gateway 'dhcp'
option client_to_client '1'
list push 'persist-key'
list push 'persist-tun'
list push 'user nobody'
list push 'user nogroup'
list push 'topology subnet'
list push 'route-gateway dhcp'
list push 'redirect-gateway def1'
list push 'route 192.168.1.0 255.255.255.0'
list push 'comp-lzo yes'
option ca '/etc/easy-rsa/pki/ca.crt'
option cert '/etc/easy-rsa/pki/issued/server.crt'
option key '/etc/easy-rsa/pki/private/server.key'
option dh '/etc/easy-rsa/pki/dh.pem'
LAN info:
Subnet: 192.168.1.0/24
Gateway: 192.168.1.1
Thank you!