OPNsense Forum

English Forums => General Discussion => Topic started by: mr.sarge on October 30, 2017, 11:35:40 am

Title: OPNsense + expressvpn/nordvpn?
Post by: mr.sarge on October 30, 2017, 11:35:40 am
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
Title: Re: OPNsense + expressvpn/nordvpn?
Post by: NilsS on October 30, 2017, 11:49:04 am
checkout https://forum.opnsense.org/index.php?topic=4979.msg25066#msg25066
Title: Re: OPNsense + expressvpn/nordvpn?
Post by: NilsS on October 30, 2017, 11:53:58 am
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.

Code: [Select]
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
Title: Re: OPNsense + expressvpn/nordvpn?
Post by: mr.sarge on October 30, 2017, 01:22:54 pm
Hello NilsS,

thanks for the information!

best regards,

Sarge