IPSec trough another link/gateway

Started by Guilherme Mello, June 15, 2018, 04:45:51 PM

Previous topic - Next topic
Hello,
I have to configure one IPSec VPN Site-to-site but I don't know if the OPNSense do that with the following configuration:

NetworkA - There are two links configured in OPNSense:

Link1 - PPPoE - Use for common internet access;
Link2 - Static IP - Use only for a IPSec VPN between NetworkA and NetworkB.

NetworkB - Has only one internet link.

------
I tried some settings, but I didn't succeed because network traffic insists to going through "Link1".

Can someone help me with that?

Thank you !!

Hello,

I guess you could add a static route to the WAN ip address of Network B and use the gateway of link 2. Then all outgoing traffic with destination address of Network B uses the internet connection with the static ip address.

I solved the problem by prioritizing the firewall rule for the vpn. Not a problem, my mistake.  ;D