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

48
Airborne Enterprise CLI Reference Manual
Command
Description
eth-route
Specifies a rule against which traffic will be compared and the
specified action taken. The rule can apply to the protocol, the IP
address and port and will cause the packets to be dropped, forwarded
or relayed to the wireless interface.
The format of the rule is:
[protocol] [ip XXX.XXX.XXX.XXX] [port XXXX] [action]
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 details of the action options include:
accept
If the packet meets the conditions of the rule, relay it
to the wireless interface.
drop
If the packet meets the conditions of the rule, do not
relay it to the wireless interface and drop it.
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 wireless interface.
It is not necessary to include both an IP address and Port number if
one is omitted the rule will apply to all variants of the missing
parameter.
The ip and port prefixes, shown in the rule format, must be
included with the address and port number for the rule to be
accepted. The port number cannot be specified if the protocol is set
for icmp or all.
If the eth-route command is entered without a forwarding rule, the
current installed rules will be displayed in the order by which they are
applied.
del-eth-route
Deletes the defined eth-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 5 the eth-route 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:
eth-route tcp ip 192.168.1.100 port 80 accept
Allows TCP/IP traffic for IP address 192.168.1.100 on port 80 to be
forwarded to the wireless network.
eth-route all ip 192.168.1.100 drop
Blocks all traffic for IP address 192.168.1.100.