chiark / gitweb /
distorted.lisp: Better processing of anycast addresses.
[zones] / hosts.lisp
CommitLineData
ff6c53ad
MW
1;;; -*-lisp-*-
2;;;
3;;; distorted.org.uk hosts and networks, and other useful addresses.
4
5;;;--------------------------------------------------------------------------
6;;; External hosts.
e80b4c2d 7
e80b4c2d 8(defhost boyle.nsict.org 85.158.42.162)
7605ad5e 9(defhost chiark.greenend.org.uk 212.13.197.229)
e80b4c2d 10(defhost mccoy.flatline.org.uk 80.74.241.31)
3dfd711e
MW
11(defhost mythic-ns1 69.56.173.190)
12(defhost mythic-ns2 93.93.128.67)
0885bc47 13(defhost gandi-ns6 217.70.177.40)
ff6c53ad
MW
14
15;;;--------------------------------------------------------------------------
16;;; Internal addresses.
17
18;; Externally routable DMZ.
19(defnet dmz 62.49.204.144/28)
20
38c2de7c
MW
21;; Externally routed colo range.
22(defnet jump 212.13.198.66/28)
23
ff6c53ad
MW
24;; (RFC1918 addresses are allocated from Cambridge G-RIN.)
25(defnet distorted.org.uk 172.29.198.0/23
26 (untrusted 256
27 (wireless 128)
28 (iodine 16))
29 (trusted 256
30 (wired 128
31 (unsafe 32)
9dc37b96 32 (dhcp 32))
374be896 33 (vpn 32)
9dc37b96 34 (nil 16
38c2de7c 35 (its 4))
9dc37b96 36 (colo 16)
72976fde
MW
37 (safe 32)
38 (any 32)))
ff6c53ad
MW
39
40;;;--------------------------------------------------------------------------
41;;; Host allocations
42
43;; External addresses.
44(defhost guvnor.dmz (dmz 1))
45(defhost radius.dmz (dmz 2))
46(defhost roadstar.dmz (dmz 3))
47(defhost jem.dmz (dmz 4))
48(defhost artist.dmz (dmz 5))
49(defhost vampire.dmz (dmz 6))
50(defhost ibanez.dmz (dmz 9))
04db9729 51(defhost anon.dmz (dmz 12))
ff6c53ad
MW
52(defhost gate.dmz (dmz 13))
53(defhost nat.dmz (dmz 14))
54
38c2de7c
MW
55;; Colocated addresses.
56(defhost fender.jump (jump 5))
57(defhost precision.jump (jump 6))
58(defhost telecaster.jump (jump 7))
59(defhost stratocaster.jump (jump 8))
60(defhost jazz.jump (jump 9))
4a372d1b 61(defhost jaguar.jump (jump 11))
a20ec58c 62(defhost richmond.jump (jump 12))
0865ffd5 63(defhost anon.jump (jump 13))
c2118713 64(defhost blackhole.jump (jump 14))
38c2de7c 65
ff6c53ad
MW
66;; Unsafe network.
67(defhost radius.unsafe (unsafe 1))
68(defhost roadstar.unsafe (unsafe 2))
69(defhost jem.unsafe (unsafe 3))
70(defhost artist.unsafe (unsafe 4))
71(defhost vampire.unsafe (unsafe 5))
72(defhost ibanez.unsafe (unsafe 14))
73
74;; Safe network.
d8536712
MW
75(defhost radius.safe (safe 1))
76(defhost vampire.safe (safe 2))
77(defhost evolution.safe (safe 3))
ff6c53ad
MW
78
79;; Wireless network.
80(defhost radius.untrusted (untrusted 1))
0302997e 81(defhost artist.untrusted (untrusted 2))
ff6c53ad
MW
82(defhost vampire.untrusted (untrusted 3))
83
84;; Virtual private network.
374be896
MW
85(defhost crybaby.vpn (vpn 1))
86(defhost terror.vpn (vpn 2))
2ed695e4 87(defhost orange.vpn (vpn 3))
ff6c53ad
MW
88
89;; Iodine network.
17c95de9 90(defhost jazz.iodine (iodine 1))
ff6c53ad
MW
91
92;; Special network for ITS.
93;; It doesn't understand point-to-point links, so we need a little net.
94(defhost gw.its (its 1))
95(defhost mz.its (its 2))
96
38c2de7c
MW
97;; Internal (VPN) addresses for colocated services.
98(defhost fender.colo (colo 1))
99(defhost precision.colo (colo 2))
100(defhost telecaster.colo (colo 3))
101(defhost stratocaster.colo (colo 4))
102(defhost jazz.colo (colo 5))
103
345c0f69
MW
104;; Anycast addresses for services.
105(defhost dns0.any (any 0))
106(defhost dns1.any (any 1))
107(defhost ntp0.any (any 2))
108(defhost ntp1.any (any 3))
109(defhost www-cache.any (any 4))
cfecfa5c
MW
110(defhost krb0.any (any 5))
111(defhost krb1.any (any 6))
345c0f69 112
ff6c53ad
MW
113;;;--------------------------------------------------------------------------
114;;; Host switch.
115
116(preferred-subnet-case
c0430253 117 ((unsafe colo)
ff6c53ad 118 (defhost radius radius.unsafe)
f0209b9c 119 (defhost precision precision.colo)
4c25329e 120 (defhost stratocaster stratocaster.colo)
c0430253
MW
121 (defhost vampire vampire.unsafe))
122 (t
123 (defhost radius radius.dmz)
f0209b9c 124 (defhost precision precision.jump)
4c25329e 125 (defhost stratocaster stratocaster.jump)
c0430253 126 (defhost vampire vampire.dmz)))
ff6c53ad
MW
127
128;;;----- That's all, folks --------------------------------------------------