Ethernet port mode: router vs. client vs. bridge – B&B Electronics WLNN-AN(ER,SE,SP.EK)-DP551 - Manual User Manual
Page 52

52
Airborne Enterprise CLI Reference Manual
wl-route tcp port 80 forward 192.168.2.101:80
Forwards incoming TCP/IP traffic on port 80 to IP address 192.168.2.101 on
port 80.
wl-route all forward 192.168.2.105
Forwards all traffic to IP address 192.168.2.105.
wl-route udp port 55899 drop
Drops all UDP traffic on port 55899.
wl-route bcast port 55899 relay
Allows UDP broadcast traffic on port 55899 to be relayed to the Ethernet
interface.
wl-route icmp drop
Drops all ICMP traffic.
When using port forwarding you have the choice of opening the interface and
allowing everything to be relayed (wl-route-default forward) or to stop all
traffic except that which is specific to the Ethernet clients (wl-route-default
drop) in both cases including rules will allow the specific services to be handled
appropriately by allowing to be relayed across the device correctly.
When wl-route-default drop is applied -it is necessary to have at least one
rule for any traffic to be relayed.
As an example let‟s look at the port forwarding configuration for the system
shown in Figure 7. Within the configuration of the networks it is necessary to get
access to the individual devices web interfaces for configuration and also to
access the FTP server on 192.168.2.100, the port forwarding configuration
should look like the following:
wl-route-default drop
wl-route tcp port 8080 forward 192.168.2.100:80
wl-route tcp port 8081 forward 192.168.2.150:80
wl-route tcp port 8082 forward 192.168.2.200:80
wl-route tcp port 21 forward 192.168.2.100
In this case addressing 192.168.1.217:8080 will access the web server on server
1, 192.168.1.217:8081 will access the web server on server 2,
192.168.1.217:8082 will access the web server on server 3 and any FTP access
on port 21 will access the FTP server on server 1.
9.5
Ethernet Port mode: Router vs. Client vs. Bridge
The Ethernet of the module supports three distinct functional modes: router,
client and bridge. It is important to understand the differences between them,
when they should be used and the appropriate settings for each.
The router setting must be used when the device is to be an Ethernet Client
adapter, where packet routing between the Ethernet and 802.11 interfaces will be
used. In this mode the module is configured as a NAT3 router, the Ethernet
interface is capable of serving IP addresses from its DHCP server. The Ethernet
interface of the module will act as the gateway to the 802.11 network for devices
attached to the network on the Ethernet interface.