From 55c51af7293cf6ac65d6c1fee15071aef0558482 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 3 Jan 2011 21:29:28 +0000 Subject: Ticket #1152. Call rc.newwanip even on openvpn linkup event to do the correct reloading of gateways and services. Add a safe belt to avoid a recursion in openvpn itself from rc.newwanip. --- usr/local/sbin/ovpn-linkup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/sbin/ovpn-linkup') diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup index 2d5d006..f962ac2 100755 --- a/usr/local/sbin/ovpn-linkup +++ b/usr/local/sbin/ovpn-linkup @@ -7,5 +7,5 @@ /bin/echo $4 > /tmp/$1_router /usr/bin/touch /tmp/$1up # reload filter -/usr/local/sbin/pfSctl -c 'filter reload' +/usr/local/sbin/pfSctl -c "interface newip $1" exit 0 -- cgit v1.1