diff --git a/main.cpp b/main.cpp index f041551..f410ce5 100755 --- a/main.cpp +++ b/main.cpp @@ -3349,7 +3349,7 @@ void iptables_rule() // handles -a -g --gen-add --keep-rule } if(generate_iptables_rule) { - string rule="iptables -I "; + string rule="iptables -I INPUT "; rule+=pattern; rule+=" -j DROP";