From a97eb9eec4e89516f8958ad948adbc755f13aba0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 13 Aug 2010 22:27:03 +0200 Subject: [PATCH] Try some nat/redirect magic on sibelius --- modules/ferm/manifests/per-host.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/ferm/manifests/per-host.pp b/modules/ferm/manifests/per-host.pp index 3e07aecf7..a4ab0d943 100644 --- a/modules/ferm/manifests/per-host.pp +++ b/modules/ferm/manifests/per-host.pp @@ -195,6 +195,20 @@ class ferm::per-host { } } } + + # redirect snapshot into varnish + case $hostname { + sibelius: { + @ferm::rule { "dsa-snapshot-varnish": + rule => '&SERVICE(tcp, 11371)' + } + @ferm::rule { "dsa-snapshot-varnish": + table => 'nat' + chain => 'PREROUTING' + rule => 'proto tcp daddr 193.62.202.28 dport 80 REDIRECT to-ports 6081' + } + } + } } # vim:set et: -- 2.20.1