X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=common.sh;h=c4da5fdfa43c8e41ed6e5abf9c9cdc54a665c19e;hb=158b2c4b0f4c38836237a759868ba702e3dd300e;hp=b3bcda876348f8c4b3b25ec2129ebea0063d1171;hpb=ca9917bf7fa7dc4b801385240cb8428ecde8608b;p=firewall-squeep diff --git a/common.sh b/common.sh index b3bcda8..c4da5fd 100644 --- a/common.sh +++ b/common.sh @@ -166,7 +166,7 @@ function allow_services(){ case "${s}" in */*) add_service_entry "${s}" ;; - *) for svc in $(getent services "${s}" | awk '{print $2}') + *) for svc in $(egrep "^${s}\s+" /etc/services | decommentcat | awk '{print $2}') do add_service_entry "${svc}" done