;------------- Global ------------

[Global]
$FwZoneDescr=$(Mask,Fw_Zone_Descr)

$FwPid=$($IsNTBasedOS,FwPID)
$FwPidA=$($IsNTBasedOS,FwPIDA)
$FwShowStreamDir=$(Proto,FwShowStreamDir)
$FwShowPacketDir=$(Proto,FwShowPacketDir)

#Fw_fwnzTrusted  =0x00
#Fw_fwnzNetBIOS  =0x01
#Fw_fwnzUntrusted=0x02

#Fw_ICMP         =0x01
#Fw_TCP          =0x06
#Fw_UDP          =0x11

#Fw_cFwAppRuleEx =0xEE5D1500
#Fw_RemAddr      =0x01
#Fw_RemPort      =0x02
#Fw_LocAddr      =0x04
#Fw_LocPort      =0x08
#Fw_IcmpCode     =0x10
#Fw_TimeRng      =0x20
#Fw_TrigAll      =0x3f

#Fw_InvalidIcmpCode=0xff

[Fw_App_Display]
#Fw_cFwAppRuleEx=\ $FwApp <a FwAppEdit v(browse:app(AppName,Hash))>$(AppName,SpecifyApplication)</a>

[Fw_Condition_Display]
1=, $FwCondition:$(Triggers,bits(#Fw_RemAddr),!!,Fw_RemAddr_Display)$(Triggers,bits(#Fw_RemPort),!!,Fw_RemPort_Display)$(Triggers,bits(#Fw_LocAddr),!!,Fw_LocAddr_Display)$(Triggers,bits(#Fw_LocPort),!!,Fw_LocPort_Display)$(Triggers,bits(#Fw_IcmpCode),!!,Fw_IcmpCode_Display)$(Triggers,bits(#Fw_TimeRng),!!,Fw_TimeRng_Display)

[Fw_RemAddr_Display]
1=\n   $FwRemAddr: <a RemoteAddrsListEdit>$(RemoteAddresses,size,Fw_RemAddr_Specify)</a>

[Fw_LocAddr_Display]
1=\n   $FwLocAddr: <a LocalAddrsListEdit>$(LocalAddresses,size,Fw_LocAddr_Specify)</a>

[Fw_RemPort_Display]
1=\n   $FwRemPort: <a RemotePortsListEdit>$(RemotePorts,size,Fw_RemPort_Specify)</a>

[Fw_LocPort_Display]
1=\n   $FwLocPort: <a LocalPortsListEdit>$(LocalPorts,size,Fw_LocPort_Specify)</a>

[Fw_IcmpCode_Display]
1=\n   $FwIcmpCode: <a FwIcmpMsgEdit>$(IcmpCode,Fw_IcmpCode_Specify)</a>

[Fw_TimeRng_Display]
1=\n   $FwTimeRng: <a FwTimeRangeEdit>$(TimeFrom,+,TimeTill,FwTimeRange_Specify)</a>

[Fw_RemAddr_Specify]
0=$FwSpecifyAddr
default=$(RemoteAddresses)

[Fw_LocAddr_Specify]
0=$FwSpecifyAddr
default=$(LocalAddresses)

[Fw_RemPort_Specify]
0=$FwSpecifyPort
default=$(RemotePorts)

[Fw_LocPort_Specify]
0=$FwSpecifyPort
default=$(LocalPorts)

[Fw_IcmpCode_Specify]
0xff=$FwSpecifyIcmpCode
default=$(@,FwIcmp)

[FwTimeRange_Specify]
0=$FwSpecifyTimeRange
default=$(TimeFrom,timeshort)-$(TimeTill,timeshort)

[Fw_Zone_Descr]
0=$FwInternetZoneDesc\n$FwZoneState: $(Zone,FwZoneSeverity)$(Zone,FwZoneSeverityDetails)$(Zone,Fw_Stealth_Display)
default=$FwAddr: $(IP,ip)   $FwMask: $(Mask,ip)\n$FwZoneState: <a ZoneEdit v(#(Zone)) enum(#Fw_fwnzTrusted,#Fw_fwnzNetBIOS,#Fw_fwnzUntrusted)>$(Zone,FwZoneSeverity)</a>$(Zone,FwZoneSeverityDetails)$(Zone,Fw_Stealth_Display)

[FwZoneSeverityDetails]
#Fw_fwnzTrusted		=$Fw_Trusted_Desc
#Fw_fwnzNetBIOS		=$Fw_NetBIOS_Desc
#Fw_fwnzUntrusted	=$Fw_Untrusted_Desc

[Fw_Stealth_Display]
#Fw_fwnzUntrusted=\n$FwStealth: <a StealthEdit v(#(Stealthed)) enum(0,1)>$(Stealthed,OnOff)</a>
default=

[FwZoneIcons]
#Fw_fwnzTrusted  =i(ok)
#Fw_fwnzNetBIOS  =i(local)
#Fw_fwnzUntrusted=i(internet16)

[FwZoneAddr]
0=$FwInternetZoneAddr
default=$(IP,ip)/$(Mask,ip)

[FwZoneDesc]
0=$FwInternetZoneDesc
default=$(AdapterDesc)

[FwIpProto]
1=ICMP$(IcmpCode,FwIcmpCode)
default=$(Proto,FwProtocols)

[FwIcmpCode]
#Fw_InvalidIcmpCode=
default=\ ($(@,FwIcmp))

[FwIcmp]
0 =Echo Reply
3 =Destination Unreachable
4 =Source Quench
5 =Redirect
6 =Alternate Host Address
8 =Echo Request
9 =Router Advertisement
10=Router Solicitation
11=Time Exceeded
12=Parameter Problem
13=Timestamp
14=Timestamp Reply
15=Information Request
16=Information Reply
17=Address Mask Request
18=Address Mask Reply
19=Reserved (for Security)
30=Traceroute
31=Datagram Conversion Error
32=Mobile Host Redirect
33=IPv6 Where-Are-You
34=IPv6 I-Am-Here
35=Mobile Registration Request
36=Mobile Registration Reply
37=Domain Name Request
38=Domain Name Reply
40=Photuris
default=$FwIcmpCode $(IcmpCode)

[FwHostName]
<empty>=$(Host,ip)
default=$(@)

[FwRemAddr]
<empty>=$(RemoteAddress,ip)
default=$(@) ($(RemoteAddress,ip))

[FwLocAddr]
<empty>=$(LocalAddress,ip)
default=$(@) ($(LocalAddress,ip))

[FwShowCmdLine]
0=
default=$(CmdLine)

[FwShowStreamDir]
#Fw_TCP=hide(0)
#Fw_UDP=hide(0)
default=hide(1)

[FwShowPacketDir]
#Fw_TCP=hide(1)

[FwPID]
0=$(PID,x)
default=$(PID)

[FwPIDA]
0=$(AppChanged.PID,x)
default=$(AppChanged.PID)

[IP]
0=
default=$(@,ip)

[PORT]
0=
default=$(@)
