I tried server push, and I see in the log that the client got the route, but it doesn't seem to work. I tried adding it to the client side (the android .ovpn file) and that didn't seem to work either. I started an unprivileged adb shell and it didn't look like the route got added. The server is openvpn for openwrt
Client configuration:
Code: Select all
client dev tun
proto udp #only if you use udp protocol
remote frogpond.homeip.net 1194
resolv-retry infinite
nobind
persist-key
persist-tun
pkcs12 client1.p12 #this is the p12 client certificate in the same folder
#auth-user-pass #uncomment this row if you want to use two factor authentication
verb 3
comp-lzo
ns-cert-type server
Code: Select all
ca /etc/config/pki/ca.crt
cert /etc/config/pki/certs_by_serial/DAB053BD637C788343FBCF268991EDBD.pem
comp-lzo yes
dev tun
dh /etc/config/pki/dh.pem
keepalive 10 60
key /etc/config/pki/private/server.key
push "route 192.168.0.0 255.255.255.0 10.232.0.1"
server 10.232.0.0 255.255.255.0
verb 3
This should work, right?