Skip to content

[Feature Request] Support for netmasks in client_addr #1390

@utdrmac

Description

@utdrmac

if (strcmp(qr->client_addr,sess->client_myds->addr.addr)!=0) {

The above code shows a simple string comparison of client_addr to the client's actual IP. This feature request is to add support for netmask comparisons.

Reasoning: Pools of application servers (10.20.30.0/24, 10.20.35.0/24). Want to direct traffic from .30.0 to hostgroup 10 and .35.0 to hostgroup 20. These app servers are auto-provisioned and auto-destroyed as load increases/decreases. As of now, we would have to manually add proxysql rule each time a new host comes online. Netmask match would make this much easier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions