Open VPN problem
There's two servers connected to the same VPN which is hosted in an OFF-SITE pfsense
This is the problem:
If I ping server2 the packets go through the local router and I get the proper response from the server2 lan address.
If I ping Server1 the packet goes through the VPN and since the VPN server is offsite the packet never reaches the LAN address.
I alrady checked the off-site pfsense openvpn server and it's "IPv4 Local network(s)" is empty so it shouldn't be doing this. This setting was incorrectly configured to the LAN network but it was later removed, which fixed the problem on the other server but not on server2.
Config on the problematic server:
remote <EXTERNALIP> 1194 udp4
verify-x509-name "<CERTNAME>" name
tls-auth pfSense-UDP4-1194-etfs2-tls.key 1
how can I fix this?
Presumeably server2 has its default route poining to the VPN gateway.
So check its routing table when the VPN is up and again when the VPN is down and also check the VPN logs to see if the routes are added by OpenVPN.
You were right, an entry on the routing table was off, for some reason, after deleting the ovpn client, user and custom client configs and re-doing them all, it worked fine. Thanks.