OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • Routing vpn users coming in one gateway out a different gateway
« previous next »
  • Print
Pages: [1]

Author Topic: Routing vpn users coming in one gateway out a different gateway  (Read 39788 times)

penley

  • Newbie
  • *
  • Posts: 26
  • Karma: 1
    • View Profile
Routing vpn users coming in one gateway out a different gateway
« on: October 11, 2017, 07:15:15 pm »
If you have an opnsense setup with two gateways (with two different ISP's) is there a way to route traffic coming in one gateway through the other gateway?
For example if vpn came in on gateway one is it possible to route any traffic coming back to that vpn user through gateway two?


Kind regards,
penley
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15118
  • Karma: 1308
    • View Profile
Re: Routing vpn users coming in one gateway out a different gateway
« Reply #1 on: October 12, 2017, 07:32:15 pm »
If you are using Multi-WAN and want to flip flop, that's very hard. If you use VPN incoming in one WAN it's easy to move outgoing (terminated) VPN traffic out the other gateway.

The problem is that if the encrypted tunnel traffic is decrypted there is no way to know where it came from.


Cheers,
Franco
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15118
  • Karma: 1308
    • View Profile
Re: Routing vpn users coming in one gateway out a different gateway
« Reply #2 on: October 12, 2017, 07:32:56 pm »
Well that's not entirely true, but you would have to map VPN subnets or IPs to gateways, you could use aliases for this...
Logged

penley

  • Newbie
  • *
  • Posts: 26
  • Karma: 1
    • View Profile
Re: Routing vpn users coming in one gateway out a different gateway
« Reply #3 on: November 02, 2017, 04:41:27 pm »
Thank you so much @franco! I'll research some more on this as well.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • Routing vpn users coming in one gateway out a different 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