On 14.06.19 13:49, Hansen, Christoffer wrote: > So if you create an function to check if the interface name matches a > certain pattern. And in your if() statement matched against true/false > return value of function. You should be able to do what you want.
This does not work neither:
function if_external(string ifnamestr)
{
if ifnamestr ~ "bond0.4[2345]" then return true;
return false;
}
and later:
export filter {
if if_external(ifname) then reject;
}
Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
https://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Amtsgericht Berlin-Charlottenburg - HRB 93818 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin
signature.asc
Description: OpenPGP digital signature
