Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 686 Bytes
proto src operator dst [ interface ] [ keywords ]
proto = protocol [ "|" protocol [ "|" protocol ] ] | "all"
protocol = "tcp" | "udp" | "icmp"
src = ip | any [ port ] [ "|" src ]
operator = symbolic | verbose
symbolic = "->" | "<-" | "<->" | "<=>>" | "<<=>" | "X->" | "X!->" | "<-X" | "<-X!" | "X" | "X!"
verbose = "accept" | "deny" | "reject" [ options ]
options = [ "from" [ "and" | "to" ] | "to" [ "from" | "and" ] | "established" ]
dst = ip | any [ port ] [ "|" dst ]
interface = "interface-name"
keywords = "nomix" | "log"
port = digit [ digit [ digit [ digit [ digit ] ] ] ] [ "," port ]
ip = host-num "." host-num "." host-num "." host-num
host-num = digit [ digit [ digit ] ]