Przeglądaj źródła

Add scanner to ipset

Edvinas Valatka 8 lat temu
rodzic
commit
ba062c3614
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      e-router

+ 1 - 0
e-router

@@ -111,6 +111,7 @@ setup_badips() {
 
 setup_scanips() {
     ipset create -! $scanset hash:ip hashsize 4096 timeout $scanttl maxelem $scanmaxelems
+    ${iptables} -A INPUT -i ${wan} -j SET --add-set $scanset src --exist  --timeout $scanttl
     if $loginput ; then
         ${iptables} -A INPUT -j WAN-LOG-DROP
     fi