Package: ferm
Version: 2.0.5-1
Severity: wishlist
Hi,
I would like to have functions
@def &prepare_logreject($prefix)={
@def $logrejectprefix="$prefix";
chain "$prefix" {
LOG log-prefix "$prefix";
REJECT reject-with admin-prohib;
}
}
@def &logreject()={
jump "$logrejectprefix";
}
so that an actual rule can look like
&prepare_logreject("foo");
saddr 10.0.0.0 &logreject();
saddr 172.16.0.0/12 &logreject();
This unfortuantely dosn't work since the @def inside the function sets
a variable local to the function.
Greetings
Marc
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]