Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Destination Dependent Routing?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Destination Dependent Routing? (Read 1798 times)
wpzed
Newbie
Posts: 5
Karma: 0
Destination Dependent Routing?
«
on:
June 22, 2023, 10:36:08 am »
I have multiple gateways and multiple vLANs.
I would like to route the outgoing traffic through "gateway1" if the destination IP is "A.B.C.D" independently from the source of the traffic.
The source of the traffic could be any vLAN network or the router itself.
What is the best way to implement a rule like this?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Destination Dependent Routing?
«
Reply #1 on:
June 22, 2023, 10:46:14 am »
Floating rule? Or per interface. It's pretty standard..
Note that traffic from router itself is not able to be managed by a gateway rule.
Cheers,
Franco
Logged
wpzed
Newbie
Posts: 5
Karma: 0
Re: Destination Dependent Routing?
«
Reply #2 on:
June 22, 2023, 11:06:55 am »
A "floating rule" works fine for vLANs but as you wrote it does not work for the router itself.
What is the suggested way to create the same rule for the router itself?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Destination Dependent Routing?
«
Reply #3 on:
June 22, 2023, 11:42:28 am »
You cannot at this point. It has been known for ages.
Cheers,
Franco
Logged
Patrick M. Hausen
Hero Member
Posts: 6812
Karma: 572
Re: Destination Dependent Routing?
«
Reply #4 on:
June 22, 2023, 04:03:47 pm »
What's keeping you from setting a static route for A.B.C.D/32 with gateway1? All routing is per destination by default. It's source based routing that is more complex.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Destination Dependent Routing?