資料庫限制/允許某些IP訪問

yewushang發表於2014-10-16
TCP.EXCLUDED_NODES


Purpose


To specify which clients are denied access to the database.


Syntax


TCP.EXCLUDED_NODES=(hostname | ip_address, hostname | ip_address, ...)
Usage Notes


This parameter is only valid when the TCP.VALIDNODE_CHECKING parameter is set to yes.


This parameter can use wildcards for IPv4 addresses and CIDR (Classless Inter-Domain Routing) notation for IPv4 and IPv6 addresses.


Example


TCP.EXCLUDED_NODES=(finance.us.example.com, mktg.us.example.com, 192.168.2.25, 172.30.*, 2001:DB8:200C:417A/32)
TCP.INVITED_NODES


Purpose


To specify which clients are allowed access to the database. This list takes precedence over the TCP.EXCLUDED_NODES parameter if both lists are present.


Syntax


TCP.INVITED_NODES=(hostname | ip_address, hostname | ip_address, ...)
Usage Notes


This parameter is only valid when the TCP.VALIDNODE_CHECKING parameter is set to yes.


This parameter can use wildcards for IPv4 addresses and CIDR notation for IPv4 and IPv6 addresses.


Example


TCP.INVITED_NODES=(sales.us.example.com, hr.us.example.com, 192.168.*, 2001:DB8:200C:433B/32)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29477587/viewspace-1300989/,如需轉載,請註明出處,否則將追究法律責任。

相關文章