diff --git a/config/action.d/hostsdeny.conf b/config/action.d/hostsdeny.conf index b04f2adb..db36aa29 100644 --- a/config/action.d/hostsdeny.conf +++ b/config/action.d/hostsdeny.conf @@ -40,7 +40,11 @@ actionban = IP= && # Tags: See jail.conf(5) man page # Values: CMD # -actionunban = IP= && sed -i.old /ALL:\ $IP/d +# Original: +#actionunban = IP= && sed -i.old /ALL:\ $IP/d + +# -i is not supported under Solaris 10/OpenSolaris +actionunban = IP= && perl -ne "print unless (/^ALL:\s$IP/)" -i [Init]