I have a Linksys WRT1900ACS with LEDE 17.01.2 on it.
I have created an OpenVPN server via TUN following the "OpenVPN setup for beginners tutorial" on OpenWRT and I got it running.
However, I cannot go to internet through the private tunnel (my WAN IP is the same as before connecting to openVPN) and I cannot see the rest of the LAN machines (I can only access to router via the VPN IP (10.8.0.1), not the LAN IP (192.168.13.1)). The openvpn.log seems fine during the connection.
I double cheked I allowed the traffic from VPN to LAN and viceversa and from VPN to WAN.
VPN --> LAN
uci set firewall.vpn_forwarding_lan_in=forwarding
uci set firewall.vpn_forwarding_lan_in.src=vpn
uci set firewall.vpn_forwarding_lan_in.dest=lan
LAN --> VPN
uci set firewall.vpn_forwarding_lan_out=forwarding
uci set firewall.vpn_forwarding_lan_out.src=lan
uci set firewall.vpn_forwarding_lan_out.dest=vpn
VPN --> WAN
uci set firewall.vpn_forwarding_wan=forwarding
uci set firewall.vpn_forwarding_wan.src=vpn
uci set firewall.vpn_forwarding_wan.dest=wan
I got the this output info from the following commands, leaving only the vpn-related lines:
/etc/config/network
config interface 'vpn'
option ifname 'tun'
option proto 'none'
option auto '1'
/etc/config/firewall
config rule 'Allow_OpenVPN_Inbound'
option target 'ACCEPT'
option src '*'
option proto 'udp'
option dest_port '1194'
config zone 'vpn'
option name 'vpn'
option input 'ACCEPT'
option forward 'REJECT'
option output 'ACCEPT'
option masq '1'
option network 'vpn'
config forwarding 'vpn_forwarding_lan_in'
option src 'vpn'
option dest 'lan'
config forwarding 'vpn_forwarding_lan_out'
option src 'lan'
option dest 'vpn'
config forwarding 'vpn_forwarding_wan'
option src 'vpn'
option dest 'wan'
/etc/config/openvpn
config openvpn 'myvpn'
option enabled '1'
option verb '3'
option port '1194'
option proto 'udp'
option dev 'tun'
option server '10.8.0.0 255.255.255.0'
option keepalive '10 120'
option ca '/etc/openvpn/ca.crt'
option cert '/etc/openvpn/olmos13vpnserver.crt'
option key '/etc/openvpn/olmos13vpnserver.key'
option dh '/etc/openvpn/dh2048.pem'
list push 'route 192.168.13.0 255.255.255.0'
list push 'redirect-gateway def1'
option client_to_client '1'
Thanks in advance.