+<% if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) >= 0 -%>
+domain (ip ip6) {
+ table filter {
+ chain log_and_reject {
+ NFLOG nflog-prefix "REJECT: ";
+ proto tcp REJECT reject-with tcp-reset;
+ REJECT;
+ }
+
+ chain log_or_drop {
+ mod hashlimit hashlimit-name nflogreject hashlimit-mode srcip hashlimit-burst 10 hashlimit 1/second jump log_and_reject;
+ mod hashlimit hashlimit-name nfloglogdrop hashlimit-mode srcip hashlimit-burst 10 hashlimit 1/second NFLOG nflog-prefix "DROP: ";
+ DROP;
+ }
+
+ }
+}
+<% else -%>