OpenVPN tunnel drops / reconnects and traffic gets routed through a different network interface
-
I have pfSense on proxmox.
I have two network cards - one is for the OpenVPN tunnel traffic.
While the OpenVPN tunnel is active, all traffic is routed via network card two.However, if the tunnel drops/reconnects, traffic gets momentarily routed through network card one. I do not want this, this is a problem.
Is there a setting to ensure that when the tunnel drops, that the traffic does not get routed through the other network card and instead just drops?
-
@tunnel_12345
I guess, the traffic is policy routed to the VPN gateway.If you want to avoid gateway switching in this case, go to System > Advanced > Miscellaneous and check "Do not create rules when gateway is down" (Skip rules when gateway is down).
-
@viragomann Thanks for the reply! I have checked this box, however when I do reload the tunnel (momentarily dropping it) traffic does route to the other network card, so it must not be blocking it