7. LW3 Programmers’ Reference
MMX4x2 series – User's Manual
113
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
7.13.
Ethernet Tool Kit
DIFFERENCE:
This feature and the commands below are available from firmware v1.6.0b19.
7.13.1.
Device Filter Based on MAC Address
You can create a list of network devices based on the MAC address that are allowed controlling the device,
or querying parameters to/from the Lightware device.
#macfilter
ATTENTION!
If the device is installed in a network where it gets IP address from a DHCP server and you
plan to use the MAC filtering, make sure the MAC address of the DHCP server is added to the whitelist.
Otherwise, the device will not got an IP address and will be unreachable.
Command and Response
ç
SET·/MANAGEMENT/MACFILTER.MACaddress
<loc>
=
<MAC_address>
;
<receive>
;
<send>
;
<name>
æ
pw·/MANAGEMENT/MACFILTER.MACaddress
<loc>
=
<MAC_address>
;
<receive>
;
<send>
;
<name>
The filter is disabled as default. Set the
FilterEnable
property to
true
as shown in the example.
Parameters
Parameter
Parameter description
Values
Value description
<loc>
Location of the address
1-8
The default values of
1, 2
and
3
ensure that
address resolution and device discovery
continue to work after enabling the MAC
filter
<MAC_address>
The MAC address of the
device
Unique value Hex format, divided by a colon
<receive>
Enable/disable the
parameter querying option
false
(or
0
)
The device is
not allowed
to query
parameters from the LW device
true
(or
1
)
The device is
allowed
to query parameters
from the LW device
<send>
Enable/disable the
parameter setting option
false
(or
0
)
The device is
not allowed
to change
parameters in the LW device
true
(or
1
)
The device is
allowed
to change parameters
in the LW device
<name>
Unique name for the better
identification (optional)
Any string
Up to 5 ASCII characters (longer names
are truncated)
Example
ç
SET /MANAGEMENT/MACFILTER/MACaddress4=(04:D4:C4:4D:01:43;1;1;Tech)
æ
pw /MANAGEMENT/MACFILTER/MACaddress4=(04:D4:C4:4D:01:43;1;1;Tech)
ç
SET /MANAGEMENT/MACFILTER.FilterEnable=true
æ
pw /MANAGEMENT/MACFILTER.FilterEnable=true
The new MAC address is saved into the 4th property with name 'Tech', which may query/set parameters
from/in the Lightware device. The
FilterEnable
property is set to
true
, thus the filter is enabled.
7.13.2.
LW2 Control Port Blocking
This command is for blocking the LW2 control port; it is an additional protection for the Cleartext login function.
Command and Response
#portblock
ç
SET·/MANAGEMENT/SERVICEFILTER.Lw2Enabled=
<port_mode>
æ
pw·/MANAGEMENT/SERVICEFILTER.Lw2Enabled=
<port_mode>
Example
ç
SET /MANAGEMENT/SERVICEFILTER.Lw2Enabled=false
æ
pw /MANAGEMENT/SERVICEFILTER.Lw2Enabled=false
7.13.3.
HTTP Port Blocking
This command is for blocking the HTTP port (80); it is an additional protection for the Cleartext login function.
Command and Response
ç
SET·/MANAGEMENT/SERVICEFILTER.HttpEnabled=
<port_mode>
æ
pw·/MANAGEMENT/SERVICEFILTER.HttpEnabled=
<port_mode>
Example
ç
SET /MANAGEMENT/SERVICEFILTER.HttpEnabled=true
æ
pw /MANAGEMENT/SERVICEFILTER.HttpEnabled=true
7.13.4.
HTTP Post Receiving Blocking
This command is for blocking HTTP posts; it is an additional protection for the Cleartext login function.
Command and Response
ç
SET·/MANAGEMENT/SERVICEFILTER.HttpEnabled=
<port_mode>
æ
pw·/MANAGEMENT/SERVICEFILTER.HttpEnabled=
<port_mode>
Example
ç
SET /MANAGEMENT/SERVICEFILTER.HttpEnabled=true
æ
pw /MANAGEMENT/SERVICEFILTER.HttpEnabled=true