we are passing the port now
This commit is contained in:
parent
70d0fa228f
commit
c54542f644
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue