summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin/ovpn-linkup
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-03-11 23:49:53 -0600
committerChris Buechler <cmb@pfsense.org>2016-03-11 23:49:53 -0600
commite0712c754d676fcbf020dada66041c3d2174e332 (patch)
tree10dd4ef738268cdefe963278bd083cfa2eaaaf85 /src/usr/local/sbin/ovpn-linkup
parent6f838722896279d7531c6a956fbd7cb1c0bb5f3e (diff)
downloadpfsense-e0712c754d676fcbf020dada66041c3d2174e332.zip
pfsense-e0712c754d676fcbf020dada66041c3d2174e332.tar.gz
Use route_vpn_gateway for tap-type OpenVPN instances as well where specified. Remove old and wrongly copy/pasted comments while here. Ticket #5981
Diffstat (limited to 'src/usr/local/sbin/ovpn-linkup')
-rwxr-xr-xsrc/usr/local/sbin/ovpn-linkup7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/local/sbin/ovpn-linkup b/src/usr/local/sbin/ovpn-linkup
index 1164835..500266e 100755
--- a/src/usr/local/sbin/ovpn-linkup
+++ b/src/usr/local/sbin/ovpn-linkup
@@ -1,8 +1,5 @@
#!/bin/sh
-# let the configuration system know that the ip has changed.
-#/usr/local/sbin/pfSctl -c "interface newip $interface"
-
if [ "${dev_type}" = "tun" ]; then
if [ -n "${route_vpn_gateway}" ]; then
/bin/echo ${route_vpn_gateway} > /tmp/${1}_router
@@ -13,6 +10,10 @@ if [ "${dev_type}" = "tun" ]; then
else
/bin/echo ${5} > /tmp/${1}_router
fi
+else
+ if [ -n "${route_vpn_gateway}" ]; then
+ /bin/echo ${route_vpn_gateway} > /tmp/${1}_router
+ fi
fi
/usr/bin/touch /tmp/${1}up
OpenPOWER on IntegriCloud