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