From 345c0f698db1a02fe4e9b5ad8d1d711ba1aeb8f2 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 17 Mar 2012 15:17:50 +0000 Subject: [PATCH] distorted.lisp, hosts.lisp: Publish addresses for anycast services. --- distorted.lisp | 23 +++++++++++++++++++---- hosts.lisp | 7 +++++++ 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/distorted.lisp b/distorted.lisp index 184be43..a39ac91 100644 --- a/distorted.lisp +++ b/distorted.lisp @@ -35,6 +35,22 @@ (:kerberos-adm krb) ((:kpasswd :protocol :udp) krb)) + ;; Anycast services. (Currently not implemented.) + (dns0 (inside :svc radius.unsafe) + (any :a dns0.any)) + (dns1 (inside :svc vampire.unsafe) + (any :a dns1.any)) + (ntp0 (inside :svc ibanez.unsafe) + (any :a ntp0.any)) + (ntp1 (inside :svc vampire.unsafe) + (any :a ntp1.any)) + (www-cache (dmz :svc vampire.dmz) + (inside :svc vampire.unsafe) + (any :a www-cache.any)) + (dns :cname dns0) + (ntp :cname ntp0) + (wpad :cname www-cache) + ;; Other services. :srv ((:http www) (:ftp ftp)) @@ -53,13 +69,11 @@ ;; Local services. :svc vampire - ((www krb ftp rsync wiki git git-master - bugs mail db i2p rawk vox www-cache) + ((www krb ftp rsync wiki git bugs mail db i2p rawk vox) :svc vampire) ;; Internal services. - #+view/inside ((ntp) :svc ibanez.unsafe) - #+view/inside ((wpad ntp1 news lpr) :svc vampire.unsafe) + #+view/inside ((news lpr) :svc vampire.unsafe) ;; Anonymity services. (tor :svc #+view/inside vampire.unsafe @@ -135,6 +149,7 @@ :reverse vpn :reverse colo :reverse its + :reverse any (dhcp :ns (radius.ns vampire.ns)) :cidr-delegation (trusted ((dhcp safe) 199.29.172.dhcp.199.29.172.in-addr.arpa))) diff --git a/hosts.lisp b/hosts.lisp index cee2a51..b7fc5e5 100644 --- a/hosts.lisp +++ b/hosts.lisp @@ -95,6 +95,13 @@ (defhost stratocaster.colo (colo 4)) (defhost jazz.colo (colo 5)) +;; Anycast addresses for services. +(defhost dns0.any (any 0)) +(defhost dns1.any (any 1)) +(defhost ntp0.any (any 2)) +(defhost ntp1.any (any 3)) +(defhost www-cache.any (any 4)) + ;;;-------------------------------------------------------------------------- ;;; Host switch. -- 2.11.0