[MXS-1065] wildcards for source option in namedfilter Created: 2016-12-16  Updated: 2017-01-20  Resolved: 2017-01-20

Status: Closed
Project: MariaDB MaxScale
Component/s: namedserverfilter
Affects Version/s: None
Fix Version/s: 2.1.0

Type: New Feature Priority: Minor
Reporter: Richard Stracke Assignee: Massimiliano Pinto (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2017-25, 2017-26

 Description   

Hi,

to make it possible to route many IPs to one target and many other IPs to another target.

One usecase would be to route to different slave on westcoast and eastcoast.

[MyService]
type=service
router=readwritesplit
servers=server1,eastslave,westslave
user=myuser
passwd=mypasswd
filters=eastcoastfilter | westcoastfilter 
 
[eastcoast]
type=filter
module=namedserverfilter
source=  65.*.*.*
server=server1
 
[westcoast]
type=filter
module=namedserverfilter
source= 69.*.*.*
server=server2



 Comments   
Comment by Massimiliano Pinto (Inactive) [ 2017-01-19 ]

Implementation has started:

the source address can be:

source=192.168.122.1 (no wildcards)
source=192.168.122.%
source=192.168.%.%
source=192.%.%.%

Note:

  • the wildcard char is then '%' only.
  • source=% is not allowed
  • source is only an IP address (possibly with wildcards)
Generated at Thu Feb 08 04:03:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.