chiark / gitweb /
distorted.lisp: Better processing of anycast addresses.
[zones] / hosts.lisp
... / ...
CommitLineData
1;;; -*-lisp-*-
2;;;
3;;; distorted.org.uk hosts and networks, and other useful addresses.
4
5;;;--------------------------------------------------------------------------
6;;; External hosts.
7
8(defhost boyle.nsict.org 85.158.42.162)
9(defhost chiark.greenend.org.uk 212.13.197.229)
10(defhost mccoy.flatline.org.uk 80.74.241.31)
11(defhost mythic-ns1 69.56.173.190)
12(defhost mythic-ns2 93.93.128.67)
13(defhost gandi-ns6 217.70.177.40)
14
15;;;--------------------------------------------------------------------------
16;;; Internal addresses.
17
18;; Externally routable DMZ.
19(defnet dmz 62.49.204.144/28)
20
21;; Externally routed colo range.
22(defnet jump 212.13.198.66/28)
23
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)
32 (dhcp 32))
33 (vpn 32)
34 (nil 16
35 (its 4))
36 (colo 16)
37 (safe 32)
38 (any 32)))
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))
51(defhost anon.dmz (dmz 12))
52(defhost gate.dmz (dmz 13))
53(defhost nat.dmz (dmz 14))
54
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))
61(defhost jaguar.jump (jump 11))
62(defhost richmond.jump (jump 12))
63(defhost anon.jump (jump 13))
64(defhost blackhole.jump (jump 14))
65
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.
75(defhost radius.safe (safe 1))
76(defhost vampire.safe (safe 2))
77(defhost evolution.safe (safe 3))
78
79;; Wireless network.
80(defhost radius.untrusted (untrusted 1))
81(defhost artist.untrusted (untrusted 2))
82(defhost vampire.untrusted (untrusted 3))
83
84;; Virtual private network.
85(defhost crybaby.vpn (vpn 1))
86(defhost terror.vpn (vpn 2))
87(defhost orange.vpn (vpn 3))
88
89;; Iodine network.
90(defhost jazz.iodine (iodine 1))
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
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
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))
110(defhost krb0.any (any 5))
111(defhost krb1.any (any 6))
112
113;;;--------------------------------------------------------------------------
114;;; Host switch.
115
116(preferred-subnet-case
117 ((unsafe colo)
118 (defhost radius radius.unsafe)
119 (defhost precision precision.colo)
120 (defhost stratocaster stratocaster.colo)
121 (defhost vampire vampire.unsafe))
122 (t
123 (defhost radius radius.dmz)
124 (defhost precision precision.jump)
125 (defhost stratocaster stratocaster.jump)
126 (defhost vampire vampire.dmz)))
127
128;;;----- That's all, folks --------------------------------------------------