mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-02 16:22:55 +02:00
The counter was pending between 0 and 1 and not going up to 9. If ipsec whack is returning and empty page we do not need to check if the remoteip has changed because the tunnel is not up. If ipsec is restarted the counter can be reset. All these facts causes that on low powered system the tunnels are intable if you have a lot of them. But we need to check if the convergation timer is okay because with these bugs the tunnels were minutly restarted and with correct handling after 10.
60 lines
2.3 KiB
Bash
60 lines
2.3 KiB
Bash
#!/bin/bash
|
|
############################################################################
|
|
# #
|
|
# This file is part of the IPFire Firewall. #
|
|
# #
|
|
# IPFire is free software; you can redistribute it and/or modify #
|
|
# it under the terms of the GNU General Public License as published by #
|
|
# the Free Software Foundation; either version 3 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# IPFire is distributed in the hope that it will be useful, #
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
# GNU General Public License for more details. #
|
|
# #
|
|
# You should have received a copy of the GNU General Public License #
|
|
# along with IPFire; if not, write to the Free Software #
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
|
# #
|
|
# Copyright (C) 2010 IPFire-Team <info@ipfire.org>. #
|
|
# #
|
|
############################################################################
|
|
#
|
|
. /opt/pakfire/lib/functions.sh
|
|
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
|
|
|
|
#
|
|
#Stop services
|
|
echo Stopping Proxy
|
|
/etc/init.d/squid stop 2>/dev/null
|
|
echo Stopping vpn-watch
|
|
killall vpn-watch
|
|
|
|
#
|
|
#Extract files
|
|
extract_files
|
|
|
|
#
|
|
#Start services
|
|
echo Starting Proxy
|
|
/etc/init.d/squid start 2>/dev/null
|
|
echo Rewriting Outgoing FW Rules
|
|
/var/ipfire/outgoing/bin/outgoingfw.pl
|
|
echo Starting vpn-watch
|
|
/usr/local/bin/vpn-watch &
|
|
|
|
#
|
|
#Update Language cache
|
|
#perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
|
|
|
#Rebuild module dep's
|
|
#depmod 2.6.32.28-ipfire
|
|
#depmod 2.6.32.28-ipfire-pae
|
|
#depmod 2.6.32.28-ipfire-xen
|
|
|
|
#
|
|
#Finish
|
|
#Don't report the exitcode last command
|
|
exit 0
|