File: parser12.in

package info (click to toggle)
filtergen 0.12.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,924 kB
  • sloc: sh: 5,485; ansic: 4,268; yacc: 692; lex: 362; makefile: 165
file content (23 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (6)
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 };