we are passing the port now

This commit is contained in:
christos 2015-01-27 19:49:37 +00:00
parent 70d0fa228f
commit c54542f644
1 changed files with 2 additions and 15 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
echo "run $@" 1>&2
set -x
#echo "run $@" 1>&2
#set -x
# $1 command
# $2 rulename
# $3 protocol
@ -11,19 +11,6 @@ set -x
case "$1" in
add)
# GRR!
# case $4 in
# *:*)
# case $5 in
# 128) addr=$4;;
# *) addr=$4/$5;;
# esac;;
# *)
# case $5 in
# 32) addr=$4;;
# *) addr=$4/$5;;
# esac;;
# esac
exec /sbin/npfctl rule $2 add block in final proto $3 from $4/$5 to any port $6
;;
rem)