Files
MaxScale/system-test/cnf/maxscale.cnf.template.fwf_action
2020-07-28 16:15:50 +03:00

89 lines
1.4 KiB
Plaintext

[maxscale]
threads=###threads###
[MySQL-Monitor]
type=monitor
module=mysqlmon
servers=server1
user=maxskysql
password=skysql
monitor_interval=1000
[server1]
type=server
address=###node_server_IP_1###
port=###node_server_port_1###
protocol=MySQLBackend
# Service with blacklist action
[readconn-blacklist]
type=service
router=readconnroute
servers=server1
user=maxskysql
password=skysql
filters=blacklist
[readconn-blacklist-listener]
type=listener
service=readconn-blacklist
protocol=MySQLClient
port=4006
[blacklist]
type=filter
module=dbfwfilter
rules=/###access_homedir###/rules/rules.txt
action=block
log_match=true
log_no_match=true
# Service with whitelist action
[readconn-whitelist]
type=service
router=readconnroute
servers=server1
user=maxskysql
password=skysql
filters=whitelist
[readconn-whitelist-listener]
type=listener
service=readconn-whitelist
protocol=MySQLClient
port=4009
[whitelist]
type=filter
module=dbfwfilter
rules=/###access_homedir###/rules/rules.txt
action=allow
log_match=true
log_no_match=true
# Service with ignore action
[readconn-ignore]
type=service
router=readconnroute
servers=server1
user=maxskysql
password=skysql
filters=ignore
[readconn-ignore-listener]
type=listener
service=readconn-ignore
protocol=MySQLClient
port=4008
[ignore]
type=filter
module=dbfwfilter
rules=/###access_homedir###/rules/rules.txt
action=ignore
log_match=true
log_no_match=true