Set or Get the IP address filter rules.
There are 16 rules in the IP filtering function. Every rule controls the specific IP address or a range of IP addresses could or not access the device based on IP_FILTER_TYPE and IP_FILTER_STATE settings.
When read, this URL shows all IP filtering rules no matter the rule is enabled or not.
n,state,IPv4Addr,Netmask
where
n : The entry number (1 ~ 16)
state: The state of the rule (0: Disabled or 1: Enabled)
IPv4Addr : The IPv4 address of the remote hosts
Netmaks: The number of netmask bits (0 ~ 32)
IP_FILTER_RULE='1,1,192.168.0.0,28'
IP_FILTER_RULE='2,0,192.168.1.0,28'
...
IP_FILTER_RULE='16,0,0.0.0.0,0'
OK:IP_FILTER_RULE='1,1,192.168.0.0,28'
or
ERROR: IP_FILTER_STATE='1,1,192.168.0.0,28
or
ERROR: invalid setting (if n is out of range).
Valid
IP_FILTER_STATE, IP_FILTER_TYPE
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&IP_FILTER_RULE
or
http://ip:port/cgi-bin/cmd/system?IP_FILTER_RULE
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&IP_FILTER_RULE='1,1,192.168.0.0,28'
or
http://ip:port/cgi-bin/cmd/system?IP_FILTER_RULE='1,1,192.168.0.0,28'
HOME, SYSTEM CGI