What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Voxel VPN bypassing

Lord_Vader

Regular Contributor
I've read Voxels tutorial and what to do if I want som specific clients to bypass VPN. But...

My knowledge in Linux is about Zero, so how the heck do I change/edit " /etc/openvpn/ovpnclient-up.sh " like this:

Bypassing OpenVPN client tunnel (Thank you, kinakuta)

You can bypass the OpenVPN client tunnel of the outgoing traffic for specific IP's in two simple steps:

1. Reserve DHCP addresses in the WEBGUI (Advanced -> Configuration -> LAN Configuration)

2. Change the /etc/openvpn/ovpnclient-up.sh file to:

#!/bin/sh

# Don't forget to reserve the list of IPs for exclusion devices on the DHCP server

# Edit the following IP list to bypass the VPN. Seperate individual IP's using a single space between them.

NO_VPN_LST="192.168.1.7 192.168.1.3"

WAN_GWAY=`nvram get wan_gateway`

for excludeip in $NO_VPN_LST; do

/usr/sbin/ip rule add from $excludeip table 200

done

/usr/sbin/ip route add table 200 default via $WAN_GWAY dev brwan

/usr/sbin/ip route flush cache

exit 0
 
I will add this functinality to my next add-on release, when Im back home.
Then you can simply do this through the web gui.

I've read Voxels tutorial and what to do if I want som specific clients to bypass VPN. But...

My knowledge in Linux is about Zero, so how the heck do I change/edit " /etc/openvpn/ovpnclient-up.sh " like this:

Bypassing OpenVPN client tunnel (Thank you, kinakuta)

You can bypass the OpenVPN client tunnel of the outgoing traffic for specific IP's in two simple steps:

1. Reserve DHCP addresses in the WEBGUI (Advanced -> Configuration -> LAN Configuration)

2. Change the /etc/openvpn/ovpnclient-up.sh file to:

#!/bin/sh

# Don't forget to reserve the list of IPs for exclusion devices on the DHCP server

# Edit the following IP list to bypass the VPN. Seperate individual IP's using a single space between them.

NO_VPN_LST="192.168.1.7 192.168.1.3"

WAN_GWAY=`nvram get wan_gateway`

for excludeip in $NO_VPN_LST; do

/usr/sbin/ip rule add from $excludeip table 200

done

/usr/sbin/ip route add table 200 default via $WAN_GWAY dev brwan

/usr/sbin/ip route flush cache

exit 0
 
Wow! That would be really nice!

Do you have a link to where to download your add-ons?

Best regards!
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top