OPNsense + expressvpn/nordvpn?

Started by mr.sarge, October 30, 2017, 11:35:40 AM

Previous topic - Next topic
Hello,

is it possible to route the traffic from a single ip address through expressvpn or nordvpn with OPNsense?
At the moment I'm using a Sonicwall TZ210 and it seems there is no possibilty

best regards,

Sarge


October 30, 2017, 11:53:58 AM #2 Last Edit: October 30, 2017, 11:58:45 AM by NilsS
the main problem is that the VPN providers push a default route.
You need to remove it to not route your OPNsense traffic over it.


route 0.0.0.0 192.0.0.0 net_gateway
route 64.0.0.0 192.0.0.0 net_gateway
route 128.0.0.0 192.0.0.0 net_gateway
route 192.0.0.0 192.0.0.0 net_gateway

to Advanced Section of your VPN Config.

use policy routing for the single IP you need over VPN
Assign an Interface for your VPN Client OVPNCx
Enable Interface
Description YOURVPN
IPV4/IPv6 None/None
Firewall -> Rules -> LAN:
Action Pass
Interface LAN
Source YOURIPTHATNEEDSVPN
Gateway YOURVPN


https://community.openvpn.net/openvpn/wiki/IgnoreRedirectGateway

Hello NilsS,

thanks for the information!

best regards,

Sarge