DrayTek UK Users' Community Forum
Help, Advice and Solutions from DrayTek Users
Conditional VPN via Route Policy - Anybody done this?
- DaveB
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank yous received: 1
03 Feb 2025 16:48 #104532
by DaveB
Conditional VPN via Route Policy - Anybody done this? was created by DaveB
I'm trying to configure my 2927 so that some IP's go out via the VPN and others don't.
I have 2 routes set-up:
Route 1 is directed at the VPN (NordVPN OpenVPN) and has conditional IPs added.
Route 2 is non-VPN (but going through the same WAN).
I've gone through the diagnostic checks with various IP's, and it seems to do what I want (i.e. it selects the correct route), accept that Route 2 still uses the VPN. Even if I completely remove Route 1, it still uses the VPN. I have to disable the VPN to stop it.
So I'm thinking I'm missing a setting somewhere.... but I can't find it. Should the Route be able to determine using or not using the VPN without disabling the VPN???
I have 2 routes set-up:
Route 1 is directed at the VPN (NordVPN OpenVPN) and has conditional IPs added.
Route 2 is non-VPN (but going through the same WAN).
I've gone through the diagnostic checks with various IP's, and it seems to do what I want (i.e. it selects the correct route), accept that Route 2 still uses the VPN. Even if I completely remove Route 1, it still uses the VPN. I have to disable the VPN to stop it.
So I'm thinking I'm missing a setting somewhere.... but I can't find it. Should the Route be able to determine using or not using the VPN without disabling the VPN???
Please Log in or Create an account to join the conversation.
- HodgesanDY
- Offline
- Member
-
Less
More
- Posts: 242
- Thank yous received: 23
05 Feb 2025 13:01 #104540
by HodgesanDY
Replied by HodgesanDY on topic Conditional VPN via Route Policy - Anybody done this?
Hi
DaveB
,
You shouldn't need two route policies, only the one that diverts your pre-defined IPs (or range(s)/subnet(s)) via the VPN tunnel profile.
Make sure the route policy 'Priority' value is set correctly, but also that the "Change default route to this VPN tunnel" setting in the 'Lan-2-Lan Profile' isn't enabled.
All of your normal traffic should flow via your main WAN(s) connection(s) unless otherwise valid to be routed via the VPN connection as stipulated in your route policy.
FYI, the diagnostics tools aren't 100% reliable, as I have seen them report conditions I know not to be true, and that I can clearly control the traffic of, even though the diagnostic tool reports otherwise, so I use them sparingly.
Yes, I have this setup in loads of locations, especially for devices like 'FireSticks', that need to be routed via a particular public IP (at a remote site) for their Netflix subscriptions to work.Conditional VPN via Route Policy - Anybody done this?
You shouldn't need two route policies, only the one that diverts your pre-defined IPs (or range(s)/subnet(s)) via the VPN tunnel profile.
Make sure the route policy 'Priority' value is set correctly, but also that the "Change default route to this VPN tunnel" setting in the 'Lan-2-Lan Profile' isn't enabled.
All of your normal traffic should flow via your main WAN(s) connection(s) unless otherwise valid to be routed via the VPN connection as stipulated in your route policy.
FYI, the diagnostics tools aren't 100% reliable, as I have seen them report conditions I know not to be true, and that I can clearly control the traffic of, even though the diagnostic tool reports otherwise, so I use them sparingly.
Please Log in or Create an account to join the conversation.
- DaveB
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank yous received: 1
07 Feb 2025 16:14 #104567
by DaveB
Replied by DaveB on topic Conditional VPN via Route Policy - Anybody done this?
Thank you. The priorities were my main issue. Now working fine.
The following user(s) said Thank You: HodgesanDY
Please Log in or Create an account to join the conversation.
Moderators: Chris
Copyright © 2025 DrayTek