Home | History | Annotate | Line # | Download | only in tools
      1  1.1  christos ipmap :: = mapblock | redir | map .
      2  1.1  christos 
      3  1.1  christos map ::= mapit ifname ipmask "->" ipmask [ mapport | mapicmpid ] .
      4  1.1  christos map ::= mapit ifname fromto "->" ipmask [ mapport | mapicmpid ] .
      5  1.1  christos mapblock ::= "map-block" ifname ipmask "->" ipmask [ ports ] .
      6  1.1  christos redir ::= "rdr" ifname ipmask dport "->" ip [ "," ip ] [ ports ] options .
      7  1.1  christos 
      8  1.1  christos dport ::= "port" portnum [ "-" portnum ] .
      9  1.1  christos ports ::= "ports" numports | "auto" .
     10  1.1  christos mapit ::= "map" | "bimap" .
     11  1.1  christos fromto ::= "from" object "to" object .
     12  1.1  christos ipmask ::= ip "/" bits | ip "/" mask | ip "netmask" mask .
     13  1.1  christos mapport ::= "portmap" tcpudp portnumber ":" portnumber .
     14  1.1  christos mapicmpid ::= "icmpidmap" icmp idnumber ":" idnumber .
     15  1.1  christos options ::= [ tcpudp ] [ rr ] .
     16  1.1  christos 
     17  1.1  christos object  = addr [ port-comp | port-range ] .
     18  1.1  christos addr    = "any" | nummask | host-name [ "mask" ipaddr | "mask" hexnumber ] .
     19  1.1  christos port-comp = "port" compare port-num .
     20  1.1  christos port-range = "port" port-num range port-num .
     21  1.1  christos 
     22  1.1  christos rr ::= "round-robin" .
     23  1.1  christos tcpudp ::= "tcp" | "udp" | "tcp/udp" .
     24  1.1  christos portnumber ::= number { numbers } | "auto" .
     25  1.1  christos idnumber ::= number { numbers } .
     26  1.1  christos ifname ::= 'A' - 'Z' { 'A' - 'Z' } numbers .
     27  1.1  christos 
     28  1.1  christos numbers ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' .
     29