local.m4, local.mk, national.m4: New virtual host `national'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 1 Oct 2015 07:15:06 +0000 (08:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 1 Oct 2015 07:15:06 +0000 (08:15 +0100)
Hosted by Linode in Dallas, TX.

local.m4
local.mk
national.m4 [new file with mode: 0644]

index e456e77..eb28dd7 100644 (file)
--- a/local.m4
+++ b/local.m4
@@ -220,6 +220,7 @@ defhost precision
        iface vpn-mango binswood
        iface vpn-radius housebdry vpn sgo
        iface vpn-chiark sgo
+       iface vpn-national upn
        iface vpn-+ vpn
 defhost telecaster
        iface eth0 jump colo
@@ -262,6 +263,12 @@ defnet default scary
 defnet upn untrusted
        addr 172.29.198.160/27 2001:ba8:1d9:a000::/64
        via colohub
+       host national 1 ::1:1
+
+## Linode hosts.
+defhost national
+       iface eth0 default
+       iface vpn-precision colohub
 
 ## Satellite networks.
 defnet binswood noloop
index 1dc82cc..cb88b6a 100644 (file)
--- a/local.mk
+++ b/local.mk
@@ -22,3 +22,5 @@ HOSTS                 += stratocaster
 HOSTS                  += jazz
 
 HOSTS                  += gibson
+
+HOSTS                  += national
diff --git a/national.m4 b/national.m4
new file mode 100644 (file)
index 0000000..01551af
--- /dev/null
@@ -0,0 +1,37 @@
+### -*-sh-*-
+###
+### Firewall configuration for national
+###
+### (c) 2008 Mark Wooding
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This program 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 this program; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+###--------------------------------------------------------------------------
+### national-specific rules.
+
+m4_divert(86)m4_dnl
+## Externally visible services.
+allowservices inbound tcp \
+       ssh \
+       ident \
+       squid
+allowservices inbound udp \
+       tripe
+
+m4_divert(-1)
+###----- That's all, folks --------------------------------------------------