IP_FILTER_RULE

Description

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.

The format of the input argument in this URL is n,state,IPv4Addr,Netmask
where the n is the entry number from 1 to 16,
state is the state of this rule. 0:Disable and 1:Enable,
IPv4Addr is the IPv4 address of the remote hosts,
NetMask is the netmask represented by number from 0 to 32. For example, the Netmask 32 means 255.255.255.255.

When write, this URL set an IP filer rule for example IP_FILTER_RULE=1,1,192.168.0.0,28.
It could cascade many URLs to set IP filter rules for example IP_FILTER_RULE=1,1,192.168.0.0,28&IP_FILTER_RULE=2,1,192.168.4,32.

When read, this URL shows all IP filtering rules no matter the rule is enabled or not.

If the CHANNEL=n was not set with this URL to the Multi-Channel device, this command is read-only command and the router's IP_FILTER_STATE configurations will be returned.

Input Argument

n,state,IPv4Addr,Netmask
where
n  : The entry number (1 ~ 16)
state : The state of the rule(0: Disable or 1: Enable)
IPv4Addr : The IPv4 address of the remote hosts
Netmaks : The number of netmask bits (0 ~ 32)

Attribute

  • Readable and Writable
  • On-Fly

Return of Message

  • Read Operation

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'

  • Write Operation

OK: IP_FILTER_RULE='1,1,192.168.0.0,28'
or
ERROR: IP_FILTER_STATE='1,1,192.168.0.0,28

Applicability

  • WIS Platform : All encoder Devices
  • EPL Platform : All encoder Devices
  • PlatformT : All encoder Devices
  • Multi-Channel Encoder : All Devices

Status

Valid

See Also

IP_FILTER_STATE, IP_FILTER_TYPE, GUEST_PREVIEW

Example

  • Read Operation

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&IP_FILTER_RULE
or
http://ip:port/cgi-bin/cmd/system?IP_FILTER_RULE

  • Write Operation

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'

Back to

HOME, SYSTEM CGI