Forum Discussion

Michael_Hunzike's avatar
Michael_Hunzike
Icon for Nimbostratus rankNimbostratus
Apr 13, 2005

Simple rule to allow by network

I've tried a few different operators and am having some trouble doing the following:

 

 

Allow a URI to be passed to a pool based on the network it came from.....if it didn't come from an allowed network I would discard.

 

 

Example:

 

 

If the client_addr is from

 

192.168.0.0 or 10.1.0.0

 

 

then use pool my_pool else discard.

 

 

I'm trying to use a class (tried both address and string).

 

What is the syntax to construct a check on a class for a network?

 

 

Since I want all ip's from a specific network to be allowed do I need a starts_with or a matches_regex? Can I use that with classes?

 

 

Any help would be appreceated.