CryptOps
Hello. I'm using OpenVPN on CentOS7 as a server. For VPN clients we're using ccd (static IP and custom routes). The problem is that even though a client is getting push requests, it doesn't apply. However, a route gets added if I specify a network different from the VPN' one. No errors or warnings. What it could be?
Mon Nov 18 17:32:54 2019 /sbin/ip addr add dev tun.vpnserver 10.10.1.3/27 broadcast 10.10.1.31
Mon Nov 18 17:32:54 2019 /sbin/ip route add 10.10.1.0/27 via 127.0.0.1
RTNETLINK answers: File exists
Tue Nov 19 12:02:50 2019 ERROR: Linux route add command failed: external program exited with error status: 2
0.0.0.0 1.1.1.1 0.0.0.0 UG 0 0 0 eno1
10.10.1.0 0.0.0.0 255.255.255.224 U 0 0 0 tun.vpnserver
10.10.1.4 1.1.1.1 255.255.255.255 UGH 0 0 0 eno1
My ccd config:
ifconfig-push 10.10.1.3 255.255.255.224
push "route 10.10.1.0 255.255.255.224 127.0.0.1"
Yes, I've restarted OpenVPN service on both ends, but it didn't help.
CryptOps
As I've figured out, no matter what I'm specifying in ccd as a gateway, the error is always the same. How it's possible if the route I'm trying to add via ccd is doesn't exist in the routing table?