1
0
Fork
You've already forked vpncwatch
0
vpnc keepalive daemon for Linux systems
  • C 72.1%
  • Python 21.4%
  • Makefile 6.5%
Find a file
2020年05月28日 16:16:43 -04:00
openwrt dcantrell@redhat.com -> david.l.cantrell@gmail.com 2012年10月07日 16:49:16 -04:00
.gitignore Ignore some files in git. 2012年10月05日 15:23:17 -04:00
AUTHORS Add Ben Brew to AUTHORS file. 2014年10月03日 13:17:56 -04:00
COPYING Initial import to code.google.com. Hooray for free project hosting that's not overly complex like certain places (*cough* Sourceforge *cough*). 2008年03月19日 19:34:25 +00:00
Makefile dcantrell@redhat.com -> david.l.cantrell@gmail.com 2012年10月07日 16:49:16 -04:00
net.c rewrite is_network_up in terms of getaddrinfo 2014年09月23日 22:17:37 -07:00
proc.c Fix bug: SIGTERM(15) is larger than SIGKILL(9) 2014年09月23日 22:15:16 -07:00
README Change the example watch host in README. 2012年10月07日 16:49:57 -04:00
TODO Start a TODO list. 2012年10月07日 16:52:21 -04:00
vpnc-watch.py Initial import to code.google.com. Hooray for free project hosting that's not overly complex like certain places (*cough* Sourceforge *cough*). 2008年03月19日 19:34:25 +00:00
vpncwatch.c patch from https://github.com/dcantrell/vpncwatch/issues/7 2020年05月28日 16:16:43 -04:00
vpncwatch.h Increment version to 1.9 2014年10月03日 13:18:05 -04:00

vpncwatch is a keepalive daemon for vpnc(8) on Linux systems.
It is a rewrite of vpnc-watch.py by Greg Benson <gbenson@redhat.com>
vpncwatch is written by David Cantrell <david.l.cantrell@gmail.com>
IDEA
 The original vpnc-watch.py is included with this source distribution. If
 you want your keepalive daemon running in Python, here's your chance. The
 main motivation for rewriting it in C is so it can be compiled for mipsel
 and put on a very limited storage space OpenWRT system.
 The idea behind the program is simple. Wrap execution of vpnc and handle
 it receiving SIGHUP and SIGKILL. SIGHUP will cause a restart, which is
 handy for an external network checking script. If you find you cannot hit
 any VPN-connected hosts, you can send SIGHUP to vpncwatch and it'll
 restart vpnc. vpncwatch can do the network checking for you with the
 right options. See the -? screen for more information.
LICENSE
 GPL 2.0 or later. Enjoy.
BUILD
 Check the Makefile and modify for your needs. Then run 'make'.
INSTALL
 All you need is the vpncwatch binary, and you can copy that to any
 location. There is no 'make install'.
USAGE
 Run 'vpncwatch -?' for examples. It's really very simple.
EXAMPLE
 For the impatient, let's say you run this vpnc command typically:
 /usr/sbin/vpnc /etc/vpnc/vpnc.conf
 With vpncwatch, your new command is:
 vpncwatch /usr/sbin/vpnc /etc/vpnc/vpnc.conf
 If you want to enable VPN network testing, you need to pass a hostname
 (or IP address) of a host on the VPN as well as a valid TCP port that
 would be open on that host. For example:
 vpncwatch \
 -c vpn-only-host.example.net -p 80 \
 /usr/sbin/vpnc /etc/vpnc/vpnc.conf
 You can modify the interval that the host checking occurs with the -i
 option. All the host checking does is make sure a running vpnc process
 is still actually offering an open link. If vpncwatch can open a socket
 to that host and it not fail, vpncwatch assumes the link is still open.
 Easy. If you pass options to vpnc usually, vpncwatch can do that
 too. See the -? screen for more information.
-- 
David Cantrell <david.l.cantrell@gmail.com>