Hi all, cross post between lede forum and openvpn form, I'm having a likely routing issue with openvpn/openwrt
Server is openvpn 2.4.5 on OpenWrt 18.06-SNAPSHOT r6984-fa0275bd90 on a netgear r7800.
Clients are android 7.1.2 and android 8, openvpn connect 3.0.5(1816) though both clients have the same config file (except the keys) and exact same errors and problem.
Config files below
config zone
option name 'vpnserver'
option network 'vpnserver'
option input 'ACCEPT'
option output 'ACCEPT'
option masq '1'
option forward 'ACCEPT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
option forward 'ACCEPT'
config redirect
option target 'DNAT'
option src 'wan'
option src_dport '443'
option dest_ip '192.168.1.1'
option dest_port '443'
option name 'vpn'
option proto 'udp'
option dest 'lan'
config forwarding
option dest 'lan'
option src 'vpnserver'
config forwarding
option dest 'wan'
option src 'vpnserver'
config fowarding
option dest 'vpnserver'
option src 'lan'
config interface 'vpnserver'
option proto 'none'
option auto '1'
option ifname 'tun0'
port 443
proto udp4
dev tun0
server 192.168.5.0 255.255.255.0
push "redirect-gateway def1"
client-to-client
push "dhcp-option DNS 192.168.1.1"
compress
keepalive 10 60
log /tmp/log/openvpn.log
verb 7 # for now...
user nobody
group nogroup
persist-key
persist-tun
# crypto settings
cipher AES-256-GCM
auth SHA512
tls-version-min 1.2
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
<inlined certs & keys>
remote 192.168.1.1 443
client
remote-cert-tls server
dev tun0
resolv-retry infinite
nobind
persist-key
persist-tun
float
compress
tls-version-min 1.2
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
cipher AES-256-GCM
auth SHA512
<inlined certs & keys>
The clients can connect to the VPN server/router but can't ping anything or surf the web. I've enabled ip forwarding, tweaked the /etc/config/firewall and interfaces, but the devices still can't connect or reachout once on the VPN, though when they're not on they are fine. I've read through several tutorials, and specfically
https://openwrt.org/docs/guide-user/services/vpn/openvpn/server.setup.
Any suggestions - thanks!