Owners Manual

Firewall
To set a firewall, use the set firewall configuration command. Use parameters 03 to add the iptables rules and 47
to remove the iptables rules.
NetFN0x32
Command0x76
Request data Byte 1parameter selector
Request data Byte 2State selector
Request data Byte 3:NConfiguration parameter data
Response data Byte 1Completion code
80hParameter not supported
81hInvalid time (start/stop time)
82hAttempt to write read-only parameter
83hAttempt to access HTTP Port 80
To set the firewall configuration state, use the following:
Table 2. Firewall set parameters
Type specific param # Parameter data
To set the command to DROP 00 Parameter to drop packets. Parameter
03 uses this state to add the rules
to drop the packets based on the IP
address/port number or ange of IP
addresses/port numbers. Use parameter
47 to remove the rule.
To set the command to ACCEPT 01 Parameter to accept packets. Parameter
03 uses this state to add the rules
to accept the packets based on the
IP address/port number or ange of IP
addresses/port numbers. Use parameter
47 to remove the rule.
To set the firewall parameters, use the following:
Table 3. Firewall parameters
Parameter # Parameter data
Add the IPv4 address rule 0 Data 1:4IP address
MS-byte first. This is an IPv4 address
that is blocked or unblocked based
on the state.
Add the range of IPv4 addresses rule 1 Data 1:8IP address range
[1:4]Starting IP address from
which IPs are blocked or unblocked
based on the state.
[5:8]Ending IP address until IPs are
blocked or unblocked based on the
state.
For example, if the IP address is
x1.x2.x3.x4, the format is:
1st byte = x1
2nd byte = x2
3rd byte = x3
4th byte = x4
Add the IPv4 port number rule 2 Data 1:Protocol TCP/UDP
0 = TCP
Configuration methods 17