OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • IPSec trough another link/gateway
« previous next »
  • Print
Pages: [1]

Author Topic: IPSec trough another link/gateway  (Read 2395 times)

gfaria.mello

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
IPSec trough another link/gateway
« 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 !!
Logged

camouflageX

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
    • View Profile
Re: IPSec trough another link/gateway
« Reply #1 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.
Logged

gfaria.mello

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IPSec trough another link/gateway
« Reply #2 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • IPSec trough another link/gateway
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2