Hi guys!
I would need a little help with the following: I created an OpenVPN server for my company that works well with Windows clients, but I have a little routing problem for Linux and Mac clients.
For Linux and Mac, the client wants to access everything through the tun0 VPN interface and also access subnets that are not allowed in push route rules. For example: I can reach the 192.168.222.0/24 subnet, which is not allowed in the rules. The VPN pool is 192.168.201.0/24 What could be the reason for this?
Thanks in advance!
Push route rules on server config:
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
push "route 192.168.3.0 255.255.255.0"
push "route 192.168.6.0 255.255.255.0"
push "route 192.168.6.64 255.255.255.255"
push "route 192.168.6.132 255.255.255.255"
push "route 192.168.11.0 255.255.255.0"
push "route 192.168.40.0 255.255.248.0"
push "route 192.168.57.0 255.255.255.0"
push "route 192.168.130.2 255.255.255.255"
Routing table on Linux client:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.201.5 0.0.0.0 UG 50 0 0 tun0 <-- That's the problem, tun0 gateway goes everywhere, but only on Linux and Mac!
0.0.0.0 192.168.60.181 0.0.0.0 UG 600 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.1.0 192.168.201.5 255.255.255.0 UG 50 0 0 tun0
192.168.2.0 192.168.201.5 255.255.255.0 UG 50 0 0 tun0
192.168.3.0 192.168.201.5 255.255.255.0 UG 50 0 0 tun0
192.168.6.0 192.168.201.5 255.255.255.0 UG 50 0 0 tun0
192.168.6.64 192.168.201.5 255.255.255.255 UGH 50 0 0 tun0
192.168.6.132 192.168.201.5 255.255.255.255 UGH 50 0 0 tun0
192.168.11.0 192.168.201.5 255.255.255.0 UG 50 0 0 tun0
192.168.40.0 192.168.201.5 255.255.248.0 UG 50 0 0 tun0
192.168.57.0 192.168.201.5 255.255.255.0 UG 50 0 0 tun0
192.168.60.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.60.181 0.0.0.0 255.255.255.255 UH 600 0 0 wlp2s0
192.168.130.2 192.168.201.5 255.255.255.255 UGH 50 0 0 tun0
192.168.201.1 192.168.201.5 255.255.255.255 UGH 50 0 0 tun0
192.168.201.5 0.0.0.0 255.255.255.255 UH 50 0 0 tun0
VPN_SERVER_IP 192.168.60.181 255.255.255.255 UGH 600 0 0 wlp2s0