Files
MaxScale/maxscale-system-test/cnf/maxscale.cnf.template.fwf_action
Timofey Turenko 8c6ca38a8a add tests
2017-05-23 21:09:30 +03:00

90 lines
1.4 KiB
Plaintext

[maxscale]
threads=###threads###
[MySQL Monitor]
type=monitor
module=mysqlmon
###repl51###
servers=server1
user=maxskysql
passwd=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
passwd=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
passwd=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
passwd=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