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
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