This file is indexed.

/usr/sbin/secvpnmon is in secvpn 2.23.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh
#  ================================================== DATEIUEBERSICHT ===  
#
#  THEMA	      : secvpnmon - Monitor for secvpn
#
#  WARNUNGEN!	      :
#  
#  ANWENDUNGSBEISPIEL :
#
#  ABHAENGIGKEITEN    :	
#
#  DATEIEN	      : 
#
#  SIEHE AUCH         : 
#
#  AUTOR              :	
#  Bernd Schumacher, HP Consulting, HEWLETT-PACKARD GmbH, Bad Homburg, 1999
#
#  GESCHICHTE         :
#  03.08.2000 BS - Added this Header
#  18.08.2004 SR - Added option '-once'
#
#  =====================================================================
 
# --------------------------------------------------------- SYNOPSIS ---
#  KURZBESCHREIBUNG      : secvpnmon - Monitor the Secure VPN built by secvpn
#                          and restart it if neccessary            
#
#  AUFRUF                : /usr/sbin/secvpnmon [-once]
#  
#  RUECKGABEWERT         : 
#  
#  GLOBALE VARIABLE	 :
#
# --------------------------------------------------------- REFERENZ ---
#  FUNKTIONSBESCHREIBUNG : 
#  
#  ABLAUFBESCHREIBUNG    : 
#  			
#  BEMERKUNGEN           : 
#
# ---------------------------------------------------------------------
#
#set -x
#
# secvpnmon
#
. /etc/network/secvpn.conf
. /usr/share/secvpn/secvpn.lib

while : 
do
  for i in `secvpn -s test`; do
    # secvpn will only try to contact remote node if reachable by ping
    # CAUTION: ICMP pakets mustn't be blocked by a firewall
    if [ "${DO_PING}" = "true" ]; then
      ping -c 1 $i >/dev/null     && continue
    fi
    timeout 90 secvpn stop $i     || continue
    timeout 90 secvpn start $i    || continue

    # routedel will return errors if there are no routes left
    # but if there are routes we have to delete them
    secvpn routedel $i >/dev/null 2>&1

    timeout 90 secvpn routeadd $i || (secvpn routedel $i; secvpn stop $i)
  done
  if [ "$1" = "-once" ]; then
    exit 0
  fi
  sleep 30
done