distorted.lisp: Service name for published `i2p' service.
[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
44 ;; Iodine network.
45 (defhost vampire.iodine (iodine 1))
46
47 ;; Special network for ITS.
48 ;; It doesn't understand point-to-point links, so we need a little net.
49 (defhost gw (its 1))
50 (defhost mz (its 2))
51
52 ;;;--------------------------------------------------------------------------
53 ;;; Other definitions.
54
55 (setf *default-zone-admin* "hostmaster@distorted.org.uk")
56
57 (preferred-subnet-case
58 (fretwank
59 (setf *default-zone-source* 'vampire.distorted.org.uk.)
60 (defhost www-frontend metalzone)
61 (defhost dns-frontend vampire))
62 (t
63 (setf *default-zone-source* 'guvnor.distorted.org.uk.)
64 (defhost www-frontend guvnor.demon)
65 (defhost dns-frontend guvnor.demon)))
66
67 ;;;--------------------------------------------------------------------------
68 ;;; Main zone definition.
69
70 (defzone distorted.org.uk
71 ;;
72 ;; Nameservers
73 :ns #+subnet/fretwank ((metalzone.ns :ip metalzone)
74 (vampire.ns :ip vampire))
75 #-subnet/fretwank ((boyle.ns :ip boyle.nsict.org)
76 (chiark.ns :ip chiark.greenend.org.uk)
77 (guvnor.ns :ip guvnor.demon))
78 ;;
79 ;; Mail servers
80 ((@ mail lists bugs cryptomail)
81 :mx mail
82 :srv ((:smtp mail)))
83 ;;
84 ;; Other services
85 :srv ((:http www)
86 (:ftp ftp))
87 ;;
88 ;; Colocated services
89 ;;((www ftp git) (inet :svc boyle.nsict.org) (fretwank :svc metalzone))
90 ;;
91 ;; Entry is via little port-forwarding box
92 (guvnor (inet :a guvnor.demon) (fretwank :a guvnor))
93 ;;
94 ;; Wireless gateway
95 (untrusted :net untrusted)
96 (evolution (untrusted :a evolution))
97 ;;
98 ;; Local services
99 (@ :svc www-frontend)
100 ((www ftp wiki git bugs mail)
101 (inet :svc guvnor.demon)
102 (fretwank :svc metalzone))
103 ((db tor i2p rawk)
104 (inet :svc guvnor.demon)
105 (fretwank :svc vampire))
106 (vox (inet :svc guvnor.demon) (fretwank :svc vampire))
107 ;;
108 ;; Internal services
109 ((ntp1) (fretwank :svc metalzone))
110 ((www-cache 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 (iodine :net iodine)
125 ;;
126 ;; ITS
127 (its :net its)
128 (gw (its :a gw))
129 (mz (its :a mz))
130 ;;
131 ;; Delegations
132 #+subnet/fretwank (dhcp :ns (metalzone.ns vampire.ns))
133 (io :ns ((ns.io :ip dns-frontend))))
134
135 ;;;--------------------------------------------------------------------------
136 ;;; Other subsidiary zones.
137
138 (defrevzone trusted
139 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire))
140 :reverse trusted
141 #+subnet/fretwank (dhcp :ns (metalzone.ns vampire.ns))
142 #+subnet/fretwank (@ :cidr-delegation
143 (dhcp
144 (dhcp 199.29.172.dhcp.199.29.172.in-addr.arpa))))
145
146 (defrevzone untrusted
147 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire))
148 :reverse untrusted)
149
150 (defzone dhcp.distorted.org.uk
151 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire))
152 :net dhcp)
153
154 (defzone io.distorted.org.uk
155 :ns ((ns :ip dns-frontend))
156 (about :txt "Fake zone used for IP-over-DNS tunnelling."))
157
158 (defzone dhcp.199.29.172.in-addr.arpa
159 :ns ((metalzone.ns :ip metalzone) (vampire.ns :ip vampire)))
160
161 ;;;----- That's all, folks --------------------------------------------------