TH,200.2.1.3,202.17.20.0/24,202.17.19.0/255.255.255.0,INET-TH
There are 2 special keywords to represent all IPs and none IP, ALL and NONE, respectively.
What you can do to limit access from someone is to choose the order of allow and deny depending on your requirement. One may want to allow some IPs and deny other ones. One may want to deny some IPs and allow other ones.
In order to specify ACL in BTQueue, you need to modify 3 options; order_acl, allow_acl, and deny_acl. By default, these options are defined as below.
order_acl = allow,deny
allow_acl = ALL
deny_acl = NONE
If you want to ban all connections from Singapore, these options should be set as below.
order_acl = deny,allow
allow_acl = ALL
deny_acl = SG
In order to allow local connections only in Singapore, the options should be set as below.
order_acl = allow,deny
allow_acl = SG
deny_acl = ALL
For information about country code and network name, you should consule spew command or ip command.
No comments:
Post a Comment