X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Fmanifests%2Fsnapshot_web.pp;h=12b3f9ef29df6783592d9c2883938affafba30b3;hb=c2541d3d8c955a5f48c1231904f5c9b175437a75;hp=435bbf39221048162328a8c182cb3777eb166bfb;hpb=ed8c7aae634ea19a4e607c6c27d8260755d5011a;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/snapshot_web.pp b/modules/roles/manifests/snapshot_web.pp index 435bbf392..12b3f9ef2 100644 --- a/modules/roles/manifests/snapshot_web.pp +++ b/modules/roles/manifests/snapshot_web.pp @@ -25,9 +25,12 @@ class roles::snapshot_web { # 51.15.215.91 # 20181222, excessive number of requests # 208.91.68.213 + # 198.11.128.0/18 + # running jugdo against snapshot + # 159.226.95.0/24 @ferm::rule { 'dsa-snapshot-abusers': prio => "005", - rule => "saddr (61.69.254.110 18.128.0.0/9 3.120.0.0/14 35.156.0.0/14 52.58.0.0/15 99.137.191.34 51.15.215.91 208.91.68.213) DROP", + rule => "saddr (61.69.254.110 18.128.0.0/9 3.120.0.0/14 35.156.0.0/14 52.58.0.0/15 99.137.191.34 51.15.215.91 208.91.68.213 198.11.128.0/18 159.226.95.0/24) DROP", } ensure_packages ( [ @@ -60,8 +63,8 @@ class roles::snapshot_web { @ferm::rule { 'dsa-snapshot-connlimit': domain => '(ip ip6)', prio => "005", - rule => "proto tcp mod state state (NEW) daddr (${ipv4addr} ${ipv6addr}) mod multiport destination-ports (80 443) mod connlimit connlimit-above 3 DROP; - proto tcp mod state state (NEW) dport 6081 mod connlimit connlimit-above 3 DROP + rule => "proto tcp mod state state (NEW) interface ! lo daddr (${ipv4addr} ${ipv6addr}) mod multiport destination-ports (80 443) mod connlimit connlimit-above 3 DROP; + proto tcp mod state state (NEW) interface ! lo dport 6081 mod connlimit connlimit-above 3 DROP ", }