chiark / gitweb /
hosts.lisp, distorted.lisp: Set up `safe' subnet.
[zones] / distorted.lisp
CommitLineData
e80b4c2d
MW
1;;; Zone file for distorted.org.uk
2
b4d4c18b 3(load "hosts.lisp" :verbose nil)
e80b4c2d 4
b1d5c6c2 5;;;--------------------------------------------------------------------------
b1d5c6c2 6;;; Other definitions.
e80b4c2d
MW
7
8(setf *default-zone-admin* "hostmaster@distorted.org.uk")
2bc217e8 9
ff6c53ad 10(setf *default-zone-source* 'radius.distorted.org.uk.)
e80b4c2d 11
b1d5c6c2
MW
12;;;--------------------------------------------------------------------------
13;;; Main zone definition.
14
e80b4c2d 15(defzone distorted.org.uk
ec4898f9 16
6ef39f28 17 ;; Nameservers.
ff6c53ad
MW
18 :ns #+view/inside ((radius.ns :ip radius)
19 (vampire.ns :ip vampire))
20 #-view/inside ((radius.ns :ip radius)
21 (vampire.ns :ip vampire)
22 (mythic-beasts-1.ns :ip mythic-ns1)
4a487d58 23 (mythic-beasts-2.ns :ip mythic-ns2)
ff6c53ad 24 (chiark.ns :ip chiark.greenend.org.uk))
ec4898f9 25
6ef39f28 26 ;; Mail servers.
96c2a692
MW
27 ((@ mail lists bugs cryptomail)
28 :mx mail
29 :srv ((:smtp mail)))
ec4898f9 30
01961e83
MW
31 ;; Kerberos.
32 (_kerberos :txt "DISTORTED.ORG.UK")
33 :srv (((:kerberos :protocol :udp) krb)
34 ((:kerberos-master :protocol :udp :port 88) krb)
35 (:kerberos-adm krb)
36 ((:kpasswd :protocol :udp) krb))
37
6ef39f28 38 ;; Other services.
96c2a692
MW
39 :srv ((:http www)
40 (:ftp ftp))
ec4898f9 41
92e99247 42 ;; Entry is via little router box.
ff6c53ad
MW
43 (dmz :net dmz)
44 (guvnor (inside :svc gate.dmz) (dmz :a guvnor.dmz))
04db9729 45 (anon (dmz :a anon.dmz))
ff6c53ad
MW
46 (gate (dmz :a gate.dmz))
47 (nat (dmz :a nat.dmz))
ec4898f9 48
6ef39f28 49 ;; Wireless gateway.
ff6c53ad 50 (wireless :net wireless)
d8536712 51 (evolution (safe :a evolution.safe))
ec4898f9 52
6ef39f28 53 ;; Local services.
ff6c53ad 54 :svc vampire
04db9729 55 ((www krb ftp rsync wiki git bugs mail db i2p rawk vox www-cache)
ff6c53ad 56 :svc vampire)
ec4898f9 57
6ef39f28 58 ;; Internal services.
ff6c53ad 59 #+view/inside ((ntp) :svc ibanez.unsafe)
5a6aff8e 60 #+view/inside ((wpad ntp1 news lpr) :svc vampire.unsafe)
ec4898f9 61
04db9729
MW
62 ;; Anonymity services.
63 (tor :svc #+view/inside vampire.unsafe
64 #-view/inside anon.dmz)
65
38c2de7c
MW
66 ;; Colocated hosts.
67 (colo :net colo)
68 (jump :net jump)
5d4e9b34 69 (fender ;(colo :a fender.colo)
38c2de7c 70 (jump :a fender.jump))
5d4e9b34 71 (precision ;(colo :a precision.colo)
38c2de7c 72 (jump :a precision.jump))
5d4e9b34 73 (telecaster ;(colo :a telecaster.colo)
38c2de7c
MW
74 (jump :a telecaster.jump))
75 (telecaster :alias tele)
5d4e9b34 76 (stratocaster ;(colo :a stratocaster.colo)
38c2de7c
MW
77 (jump :a stratocaster.jump))
78 (stratocaster :alias strat)
5d4e9b34 79 (jazz ;(colo :a jazz.colo)
38c2de7c
MW
80 (jump :a jazz.jump))
81
6ef39f28 82 ;; Wired ethernet.
04d65182
MW
83 (unsafe :net unsafe)
84 (safe :net safe)
85 (untrusted :net untrusted)
ff6c53ad
MW
86 (vampire (unsafe :a vampire.unsafe)
87 (dmz :a vampire.dmz)
d8536712 88 (safe :a vampire.safe)
fc0ce2ed
MW
89 (untrusted :a vampire.untrusted)
90 (iodine :a vampire.iodine))
ff6c53ad
MW
91 (obsidian (safe :a obsidian.safe))
92 (ibanez (unsafe :a ibanez.unsafe)
93 (dmz :a ibanez.dmz))
94 (radius (unsafe :a radius.unsafe)
95 (dmz :a radius.dmz)
d8536712 96 (safe :a radius.safe)
938f6c79 97 (untrusted :a radius.untrusted))
ff6c53ad
MW
98 (roadstar (unsafe :a roadstar.unsafe)
99 (dmz :a roadstar.dmz))
100 (jem (unsafe :a jem.unsafe)
101 (dmz :a jem.dmz))
102 (artist (unsafe :a artist.unsafe)
103 (dmz :a artist.dmz))
ec4898f9 104
ff6c53ad 105 ;; DHCP hosts.
4b5e05ad
MW
106 (gibson :cname gibson.dhcp)
107 (lespaul :cname lespaul.dhcp)
108 (firebird :cname firebird.dhcp)
aa4d55b1
MW
109 (marauder :cname marauder.dhcp)
110 (invader :cname invader.dhcp)
ec4898f9 111
6ef39f28 112 ;; Virtual network.
b1d5c6c2 113 (virtual :net virtual)
ff6c53ad
MW
114 (crybaby (virtual :a crybaby.virtual))
115 (terror (virtual :a terror.virtual))
fc0ce2ed 116 (iodine :net iodine)
ec4898f9 117
6ef39f28 118 ;; ITS.
b1d5c6c2 119 (its :net its)
ff6c53ad
MW
120 (gw (its :a gw.its))
121 (mz (its :a mz.its))
ec4898f9 122
6ef39f28 123 ;; Delegations.
ff6c53ad
MW
124 #+view/inside (dhcp :ns (radius.ns vampire.ns))
125 (io :ns ((ns.io :ip vampire))))
b1d5c6c2
MW
126
127;;;--------------------------------------------------------------------------
128;;; Other subsidiary zones.
e80b4c2d
MW
129
130(defrevzone trusted
ff6c53ad
MW
131 :ns ((radius.ns :ip radius)
132 (vampire.ns :ip vampire))
b3f75214 133 :reverse trusted
ff6c53ad 134 (dhcp :ns (radius.ns vampire.ns))
04d65182
MW
135 :cidr-delegation
136 (trusted ((dhcp safe) 199.29.172.dhcp.199.29.172.in-addr.arpa)))
b3f75214 137
ff6c53ad
MW
138(defrevzone dmz
139 :ns ((radius.ns :ip radius)
140 (vampire.ns :ip vampire))
141 :reverse dmz)
92e99247 142
38c2de7c
MW
143(defrevzone jump
144 :ns ((radius.ns :ip radius)
145 (vampire.ns :ip vampire))
146 :reverse jump)
147
995d75b4 148(defzone io.distorted.org.uk
ff6c53ad 149 :ns ((ns :ip vampire))
995d75b4
MW
150 (about :txt "Fake zone used for IP-over-DNS tunnelling."))
151
b1d5c6c2 152;;;----- That's all, folks --------------------------------------------------