I've been learning to configure open vpn for a few months. I've found it pretty difficult, and theres some gaps in my knowledge that are blocking me right now that I'd love some help with.
When I auto login to my access server, my client gets incorrect static routes setup, or theres something I don't understand.
I can ping the the private ip of my access server though, which is this.
10.0.101.91
so the connection is established.
here is an example static route from the client
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 enp0s3
10.0.1.0 172.16.135.129 255.255.255.0 UG 101 0 0 tun0
But its not possible for me to ping 172.16.135.129. the access server has allowed all trafic from 172.16.135.0/24, and my private subnet 192.168.hidden.0/24, and the security groups must be find since I can ping the private ip of the access server.
I would have thought that the static routes on the client should point to the private ip of the access server - 10.0.101.91
in my openvpn.conf file I am using this to push the route-
push "redirect-gateway def1 bypass-dhcp"
I've read the docs here on these parameters, but I don't understand them
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage