More than one middleware of the same type on a chain

Hi,

We want to handle some ipwhitelists centraly and tie it to some services. So a service middleware chain could be acl-admin,acl-users. I was trying but when more than one ipwhitelist is assigned to a service it respond with 403.

Is that possible to add two or more ipwhitelist middlewares in a chain?

It's a logic problem.
The middlewares are treated sequentially, and you can not choose between two .
For your case,you need a third middleware with users ans admins