B&B Electronics WLNN-AN(ER,SE,SP.EK)-DP551 - Manual User Manual
Page 51

Airborne Enterprise CLI Reference Manual
51
Command
Description
wl-route
Specifies a rule against which traffic will be compared and the
specified action taken. The rule can apply to the protocol and the
target port and will cause the packets to be dropped, forwarded or
relayed to the Ethernet interface.
The format of the rule is:
[protocol] [port XXXX] [action] [IP Address:Port#]
The details of the protocol options include:
tcp
Apply rule to traffic identified as TCP.
udp
Apply rule to traffic identified as UDP.
icmp
Apply rule to traffic identified as ICMP.
bcast
Apply rule to broadcast traffic.
all
Apply rule to all traffic.
The port number cannot be set if the protocol selection is all or
icmp
.
The details of the action options include:
forward
If the packet meets the conditions of the rule relay it
to the specified IP address and port number on the
Ethernet interface.
drop
If the packet meets the conditions of the rule drop it
and do not relay it to the Ethernet interface.
relay
If the protocol option is bcast assigning the action
to relay will cause UDP traffic with destination
address 255.255.255.255 received on the
specified port to be relayed to the Ethernet interface.
If selected the IP address [IP Address:Port#]
should not be included in the rule.
It is not necessary to include a Port number as part of the target IP
address for the forwarding rule, if one is omitted the rule will apply
the incoming port number to the redirected packet.
The port prefix, shown in the rule format, must be included with the
port number for the rule to be accepted.
If the wl-route command is entered without a
, the current installed rules will be displayed in the order by
which they are applied.
del-wl-route
Deletes the defined wl-route rule defined by the
parameter. There must be a matching forwarding rule in the
rule list for any action to be taken. The full forwarding rule description
must be used; the command does not recognize partial rule
description.
The format of the rule is:
[protocol] [ip XXX.XXX.XXX.XXX] [port XXXX]
It can be seen in Table 6 the wl-route port forwarding rules can have a number
of formats and are able to support a wide range of options; the following
examples provide descriptions of some of the different uses of the rule: