_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 312 of 463
Web Field/UCI/Package Option
Description
Web: Rule is enabled
UCI: firewall.<rule label>.enabled
Opt: enabled
Enables or disables traffic rule.
0
Rule is disabled.
1
Rule is enabled.
Web: Name
UCI: firewall.<rule label>.name
Opt: name
Select a descriptive name limited to less than 11 characters. No
spaces are allowed in the naming convention.
Web: Restrict to address family
UCI: firewall.<rule label>.family
Opt: family
Restrict to protocol family.
Option
Description
UCI
IPv4 and
IPv6
Traffic rule applies to any
address family
any
IPv4 only
IPv4 only
ipv4
IPv6 only
IPv6 only
Ipv6
Web: Protocol
UCI: firewall.<rule label>.proto
Opt: proto
Matches incoming traffic using the given protocol.
Option
Description
UCI
TCP+UDP
Applies rule to TCP and UDP
only
tcp udp
TCP
Applies rule to TCP only
tcp
UDP
Applies rule to UDP only
udp
ICMP
Applies rule to ICMP only
icmp
custom
Specify protocol from
/etc/protocols
Web: Match ICMP type
UCI: firewall.<rule label>.icmp_type
Opt: icmp_type
Match specific icmp types.
This option is only valid when ICMP is selected as the protocol.
ICMP types can be listed as either type names or type numbers.
Note: for a full list of valid ICMP type names, see the ICMP
Options table below.
Web: Source zone
UCI: firewall.<rule label>.src
Opt: src
Specifies the traffic source zone, must refer to one of the defined
zone names. For typical port forwards, this is usually WAN.
Web: Source MAC address
UCI: firewall.<rule label>.src_mac
Opt: src_mac
Matches incoming traffic from the specified MAC address.
The MAC address must be entered in the following format:
aa:bb:cc:dd:ee:ff:
To only match the first portion of the MAC address append
/prefix
to the option value, where
prefix
defines the bits from
the start of the MAC to match on.
Example:
option src_mac 00:E0:C8:12:34:56/24
will match on all packets with prefix 00:E0:C8.
Web: Source address
UCI: firewall.<rule label>.src_ip
Opt: src_ip
Matches incoming traffic from the specified source IP address.
Web: Source port
UCI: firewall.<rule label>.src_port
Opt: src_port
Matches incoming traffic originating from the given source port or
port range on the client host.
Web: Destination zone
UCI: firewall.<rule label>.dest
Opt: dest
Specifies the traffic destination zone. Must refer to one of the
defined zone names.
Web: Destination address
UCI: firewall.<rule label>.dest_ip
Opt: dest_ip
For DNAT, redirects matched incoming traffic to the specified
internal host.
For SNAT, matches traffic directed at the given address.