--- /dev/null
+# Makefile for udptunnelconf
+
+# Copyright (C) 2000 Ian Jackson
+#
+# This 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 userv-utils; if not, write to the Free Software
+# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# $Id: Makefile-udptunnelconf,v 1.1.2.1 2000/12/11 00:22:29 ian Exp $
+
+etcdir= /etc
+prefix= /usr/local
+bindir= $(prefix)/bin
+
+sharedir= $(prefix)/share/udptunnelconf
+
+etcuserv= $(etcdir)/userv
+services= $(etcuserv)/services.d
+
+PROGRAM_TARGETS= udptunnel-forwarder
+TARGETS= service blowfishtest $(PROGRAM_TARGETS)
+PROGRAMS= udptunnel $(PROGRAM_TARGETS)
+
+MECHFILES= null pkcs5 timestamp sequence blowfish
+MECHOBJS= $(foreach m, $(MECHFILES), mech-$m.o)
+
+OBJS_FORWARD= forwarder.o $(MECHOBJS) blowfish.o automech.c utils.c
+OBJS_BFTEST= blowfishtest.o blowfish.o hex.o
+
+all: $(TARGETS)
+
+install: all
+ mkdir -p $(libuserv) $(services)
+ cp -b service $(libuserv)/ipif
+ cp ipif $(services)/ipif:new
+ cp -b $(PROGRAMS) $(bindir)/.
+ set -e; cd $(services); test -f ipif || mv ipif:new ipif
+
+udptunnel-forwarder: $(OBJS_FORWARD)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_FORWARD)
+
+blowfishtest: $(OBJS_BFTEST)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_BFTEST)
+
+automech.h: automechgen.sh Makefile
+ ./$< $(MECHFILES)
+
+automech.c: automech.h
+
+clean:
+ rm -f *.o core automech.[ch] *~ ./#*#
+
+realclean: clean
+ rm -f $(TARGETS)
+
+forwarder.o $(MECHOBJS) automech.o utils.o: forwarder.h automech.h
+blowfish.o mech-blowfish.o blowfishtest.o: blowfish.h
+blowfishtest.o hex.o: hex.h
--- /dev/null
+m4_dnl You can edit this file, which is m4 input.
+m4_dnl It defines global settings for your site. Settings here
+m4_dnl override both the defaults shipped with udptunnelconf and
+m4_dnl those which are mentioned in the `sites' file.
+
+SET( lend, [172.31.80.6])
+SET( lnets, [172.18.45.0/24])
+
+SET( lcommand, [authbind udptunnel -m])
+SET( lpublic, [davenant-external])
+SET( lport, [ERROR])
+
+SET( lgroup, tunnel)
+
+SET( invoke_hook,
+[PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+export PATH])
+
+SET( sshverbose, [])
+
+SET( inittab_runlevels, [235])
+SET( inittab_pfx, [/usr/local/sbin/really -u tunnel])
--- /dev/null
+m4_dnl This file is m4 input. It gives a list of the known sites
+m4_dnl participating in the Sinister Greenend Organisation VPN.
+m4_dnl
+m4_dnl It should not usually be edited locally, BUT it should be
+m4_dnl reviewed locally as installing a malicious copy would be
+m4_dnl equivalent to giving it control over your computer !
+m4_dnl
+m4_dnl It defines settings for each site. Settings here
+m4_dnl can be overridden by things in `global', and on a per-
+m4_dnl tunnel basis by entries in `tunnels'.
+
+SITE(relativity)
+SET( rend, [172.31.80.6])
+SET( rnets, [172.18.45.0/24])
+
+SITE(greenend)
+SET( rpublic, [sinister.dynamic.greenend.org.uk])
+SET( rend, [192.168.73.70])
+SET( rnets, [192.168.0.0/23,192.168.73.0/24,172.16.22.0/24])
+SET( rcommandprefix, [PATH=/usr/local/bin:'$PATH'])
+SET( proto, [slip])
+
+SITE(rapun)
+SET( rpublic, [rapun.sel.cam.ac.uk])
+SET( rend, [172.31.80.10])
+
+SITE(chiark)
+SET( rpublic, [login.chiark.greenend.org.uk])
+SET( rend, [172.31.80.8])
+
+SITE(ecstacy)
+SET( rpublic, [ecstacy.dynamic.greenend.org.uk])
+SET( rend, [172.31.80.7])
+SET( rnets, [192.168.76.0/24])
+SET( rcommandprefix, [PATH=/usr/local/bin:'$PATH'])
--- /dev/null
+m4_dnl You can edit this file, which is m4 input.
+m4_dnl It defines settings for each site. Settings here
+m4_dnl can be overridden by things in `global', and they
+m4_dnl override things set in `sites'. You can also define
+m4_dnl entirely new sites here with ACTIVE or PASSIVE -
+m4_dnl there is no need for them to be listed in `sites'.
+
+ACTIVE(greenend)
+SET( lport, [412])
+SET( ruser, [tgroad])
+SET( proto, [slip])
+SET( lnets, V_lnets[,172.18.239.192/28])
+
+ACTIVE(ecstacy)
+SET( lport, [411])
+SET( ruser, davenant)
+
+ACTIVE(rapun)
+SET( lport, [413])
+SET( ruser, [ian])