chiark / gitweb /
distorted.lisp: Expose a name for vampire.
[zones] / distorted.lisp
CommitLineData
e80b4c2d
MW
1;;; Zone file for distorted.org.uk
2
b4d4c18b 3(load "hosts.lisp" :verbose nil)
e80b4c2d 4
b1d5c6c2
MW
5;;;--------------------------------------------------------------------------
6;;; Network allocations
7;;; (RFC1918 addresses are allocated from Cambridge G-RIN.)
8
e80b4c2d 9(defnet distorted.org.uk 172.29.198.0/23
fc0ce2ed
MW
10 (untrusted 256
11 (wireless 128)
12 (iodine 16))
e80b4c2d
MW
13 (trusted 256
14 (fretwank 128
15 (unsafe 32)
16 (dhcp 32)
17 (safe 32))
b1d5c6c2
MW
18 (virtual 32)
19 (its 4)))
20
21;;;--------------------------------------------------------------------------
22;;; Host allocations
e80b4c2d 23
b1d5c6c2 24;; External addresses.
4acd4890 25(defhost guvnor.demon 80.177.3.76)
2bc217e8 26
b1d5c6c2 27;; Unsafe network.
2bc217e8
MW
28(defhost guvnor (unsafe 1))
29(defhost metalzone (unsafe 2))
4b5e05ad 30(defhost radius (unsafe 3))
2bc217e8 31(defhost vampire (unsafe 4))
4b5e05ad
MW
32(defhost roadstar (unsafe 5))
33(defhost jem (unsafe 6))
34(defhost artist (unsafe 7))
2bc217e8 35
b1d5c6c2 36;; Safe network.
2bc217e8
MW
37(defhost tubescreamer (safe 1))
38(defhost obsidian (safe 2))
4b5e05ad 39(defhost ibanez (safe 3))
2bc217e8 40
b1d5c6c2 41;; Wireless network.
e07781f9
MW
42(defhost vampire.untrusted (untrusted 1))
43(defhost evolution (untrusted 2))
2bc217e8 44
b1d5c6c2 45;; Virtual private network.
8ca446b5 46(defhost crybaby (virtual 1))
9afe85bf 47(defhost terror (virtual 2))
b1d5c6c2 48
fc0ce2ed
MW
49;; Iodine network.
50(defhost vampire.iodine (iodine 1))
51
b1d5c6c2
MW
52;; Special network for ITS.
53;; It doesn't understand point-to-point links, so we need a little net.
54(defhost gw (its 1))
55(defhost mz (its 2))
56
57;;;--------------------------------------------------------------------------
58;;; Other definitions.
e80b4c2d
MW
59
60(setf *default-zone-admin* "hostmaster@distorted.org.uk")
2bc217e8
MW
61
62(preferred-subnet-case
63 (fretwank
e07781f9 64 (setf *default-zone-source* 'vampire.distorted.org.uk.)
995d75b4
MW
65 (defhost www-frontend metalzone)
66 (defhost dns-frontend vampire))
2bc217e8
MW
67 (t
68 (setf *default-zone-source* 'guvnor.distorted.org.uk.)
995d75b4
MW
69 (defhost www-frontend guvnor.demon)
70 (defhost dns-frontend guvnor.demon)))
e80b4c2d 71
b1d5c6c2
MW
72;;;--------------------------------------------------------------------------
73;;; Main zone definition.
74
e80b4c2d
MW
75(defzone distorted.org.uk
76 ;;
6ef39f28 77 ;; Nameservers.
cddf1fa1
MW
78 :ns #+subnet/fretwank ((metalzone.ns :ip metalzone)
79 (vampire.ns :ip vampire))
80 #-subnet/fretwank ((boyle.ns :ip boyle.nsict.org)
81 (chiark.ns :ip chiark.greenend.org.uk)
82 (guvnor.ns :ip guvnor.demon))
e80b4c2d 83 ;;
6ef39f28 84 ;; Mail servers.
96c2a692
MW
85 ((@ mail lists bugs cryptomail)
86 :mx mail
87 :srv ((:smtp mail)))
88 ;;
6ef39f28 89 ;; Other services.
96c2a692
MW
90 :srv ((:http www)
91 (:ftp ftp))
e80b4c2d 92 ;;
6ef39f28 93 ;; Colocated services.
a060fed3 94 ;;((www ftp git) (inet :svc boyle.nsict.org) (fretwank :svc metalzone))
e80b4c2d 95 ;;
6ef39f28 96 ;; Entry is via little port-forwarding box.
a060fed3 97 (guvnor (inet :a guvnor.demon) (fretwank :a guvnor))
985aff77 98 ;;
6ef39f28 99 ;; Wireless gateway.
8ca446b5 100 (untrusted :net untrusted)
8ef3dea5 101 (evolution (untrusted :a evolution))
e80b4c2d 102 ;;
6ef39f28 103 ;; Local services.
a060fed3 104 (@ :svc www-frontend)
fc0ce2ed 105 ((www ftp wiki git bugs mail)
a060fed3
MW
106 (inet :svc guvnor.demon)
107 (fretwank :svc metalzone))
49c5959a 108 ((db tor i2p rawk vox www-cache)
0ac996f4
MW
109 (inet :svc guvnor.demon)
110 (fretwank :svc vampire))
a060fed3 111 ;;
6ef39f28 112 ;; Internal services.
ca779f0a 113 ((ntp1) (fretwank :svc metalzone))
49c5959a 114 ((wpad ntp news) (fretwank :svc vampire))
e80b4c2d 115 ;;
6ef39f28 116 ;; Wired ethernet.
b1d5c6c2 117 (fretwank :net fretwank)
fc0ce2ed
MW
118 (metalzone (inet :a guvnor.demon)
119 (fretwank :a metalzone))
120 (vampire (fretwank :a vampire)
7e0deea4 121 (inet :a guvnor.demon)
fc0ce2ed
MW
122 (untrusted :a vampire.untrusted)
123 (iodine :a vampire.iodine))
4acd4890 124 (obsidian (fretwank :a obsidian))
4b5e05ad
MW
125 (ibanez (fretwank :a ibanez))
126 (radius (fretwank :a radius))
127 (roadstar (fretwank :a roadstar))
128 (jem (fretwank :a jem))
129 (artist (fretwank :a artist))
130 (gibson :cname gibson.dhcp)
131 (lespaul :cname lespaul.dhcp)
132 (firebird :cname firebird.dhcp)
b1d5c6c2 133 ;;
6ef39f28 134 ;; Virtual network.
b1d5c6c2 135 (virtual :net virtual)
8ca446b5 136 (crybaby (virtual :a crybaby))
9afe85bf 137 (terror (virtual :a terror))
fc0ce2ed 138 (iodine :net iodine)
e80b4c2d 139 ;;
6ef39f28 140 ;; ITS.
b1d5c6c2
MW
141 (its :net its)
142 (gw (its :a gw))
143 (mz (its :a mz))
b3f75214 144 ;;
6ef39f28 145 ;; Delegations.
fc0ce2ed 146 #+subnet/fretwank (dhcp :ns (metalzone.ns vampire.ns))
995d75b4 147 (io :ns ((ns.io :ip dns-frontend))))
b1d5c6c2
MW
148
149;;;--------------------------------------------------------------------------
150;;; Other subsidiary zones.
e80b4c2d
MW
151
152(defrevzone trusted
2bc217e8 153 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire))
b3f75214
MW
154 :reverse trusted
155 #+subnet/fretwank (dhcp :ns (metalzone.ns vampire.ns))
156 #+subnet/fretwank (@ :cidr-delegation
157 (dhcp
158 (dhcp 199.29.172.dhcp.199.29.172.in-addr.arpa))))
159
e80b4c2d 160(defrevzone untrusted
2bc217e8 161 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire))
8ca446b5 162 :reverse untrusted)
b3f75214
MW
163
164(defzone dhcp.distorted.org.uk
340f4f62 165 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire))
b3f75214
MW
166 :net dhcp)
167
995d75b4
MW
168(defzone io.distorted.org.uk
169 :ns ((ns :ip dns-frontend))
170 (about :txt "Fake zone used for IP-over-DNS tunnelling."))
171
b3f75214 172(defzone dhcp.199.29.172.in-addr.arpa
340f4f62 173 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire)))
5094e793 174
b1d5c6c2 175;;;----- That's all, folks --------------------------------------------------