like lets say 72.72.72.72 is the client ip and i wanted to compare it to token or a header that had an IP of 72.72.73.72. basically i want to compare if 72.72.72.72 and 72.72.73.72 but dynamically without an ACL.
so basically if i give out a token as a backend HTTP service and sign it with a secret with certain parameters like an IP address, i want to be able to allow only certain IPs to successfully use that token. like i want to allow all IPs with /20 or so of the IPs in the token i gave out to use that token successfully. Does that make sense @djdomi? i know i can split the token string and get the IP and compare the first 3 octets for an easy /24 comparison but is there an easier way for like /20. you can do this using an ACL but the ACL all the ips must be in there. like is it possible to check client.ip ~ client.ip/20 without using an ACL feature.