OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: gfaria.mello on June 15, 2018, 04:45:51 pm

Title: IPSec trough another link/gateway
Post by: gfaria.mello on June 15, 2018, 04:45:51 pm
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 !!
Title: Re: IPSec trough another link/gateway
Post by: camouflageX on June 20, 2018, 01:34:56 pm
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.
Title: Re: IPSec trough another link/gateway
Post by: gfaria.mello on August 09, 2018, 04:19:35 pm
I solved the problem by prioritizing the firewall rule for the vpn. Not a problem, my mistake.  ;D