1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# compound specifiers
{ dport http; };
{ dport http dest www };
dest www { dport http; sport https };
# specifier lists inside subrule group
source foo { dport http; dport ssh dest bar; } accept;
# big nested one
input eth0 {
dest foo {
dport { ssh http } accept;
dport ntp sport ntp proto udp accept;
dport bootps drop;
};
drop;
};
# empty subrules
{};
# nested empty
{ { proto tcp; proto udp } dport domain; };
{ { proto tcp } };
# with and without final semicolon
{ proto foo; proto bar; };
{ proto foo; proto bar };
|