chiark / gitweb /
Working on a proper installation thingy.
authorian <ian>
Mon, 11 Dec 2000 00:22:29 +0000 (00:22 +0000)
committerian <ian>
Mon, 11 Dec 2000 00:22:29 +0000 (00:22 +0000)
ipif/Makefile-udptunnelconf [new file with mode: 0644]
ipif/global.example [new file with mode: 0644]
ipif/sites.example [new file with mode: 0644]
ipif/tunnels.example [new file with mode: 0644]

diff --git a/ipif/Makefile-udptunnelconf b/ipif/Makefile-udptunnelconf
new file mode 100644 (file)
index 0000000..c11d18d
--- /dev/null
@@ -0,0 +1,68 @@
+# 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
diff --git a/ipif/global.example b/ipif/global.example
new file mode 100644 (file)
index 0000000..7e20a60
--- /dev/null
@@ -0,0 +1,22 @@
+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])
diff --git a/ipif/sites.example b/ipif/sites.example
new file mode 100644 (file)
index 0000000..628b09f
--- /dev/null
@@ -0,0 +1,35 @@
+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'])
diff --git a/ipif/tunnels.example b/ipif/tunnels.example
new file mode 100644 (file)
index 0000000..5c0cd64
--- /dev/null
@@ -0,0 +1,20 @@
+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])