Hi,
I'm trying to configure routed VPN and I got stuck on first step even on simple stripped configuration.
port 1194
proto udp
dev tun
server 172.16.0.0 255.255.255.0
ca /etc/openvpn/openvpn_certs/ovpn-ca.pem
cert /etc/openvpn/openvpn_certs/ovpn-cert.pem
key /etc/openvpn/openvpn_certs/ovpn-key.pem
dh /etc/openvpn/openvpn_certs/dh2048.pem
client
dev tun
remote x.x.x.x (public IP)
proto udp
port 1194
ca ca.pem
cert client.crt
key client.pem
server:
inet 172.16.0.1 peer 172.16.0.2/32 scope global tun0
client:
inet 172.16.0.6 peer 172.16.0.5/32 scope global tun0
server can ping client (172.16.0.6) and client can ping server tun (172.16.0.1) and lan (192.168.13.7)
... in next step, I'd like to route to another subnet so I have to use peer 172.16.0.5 (I can't use 172.16.0.1 as a gw it won't let me use it because "SIOCADDRT: Network is unreachable") as a client's gw, right? As far as I see in routing table while testing [oconf]push "route 192.168.13.0 255.255.255.0"[/oconf] option.
But. but I can't reach peer IP or other subnet (I can see client's requests on server's tcpdump).
I don't know why the route pushing is not working for me but while using NM OVPN profile, I'm getting default gw 172.16.0.5 and at this moment I have to remove default gw because it cuts off all connection.
From the LAN gw (different from OVPN server) or any other machine I can reach client on 172.16.0.6 but not vice versa.
What am I missing please?