Network Policy Server - Pattern Matching

Eronetix 1 Reputation point
2021-10-20T12:33:24.967+00:00

Good Morning,

I am attempting to to use NPS in Server 2019 to match client IPv6 Address ranges to specific policies however, I seem to be unable to get the exact regex/pattern correct to match the IPv6 address to the policy.

*It is worth noting the policy works fine if I hard code the IPv6 address into the client IPv6 address field.

I presently have a policy for switches in my network and their IPv6 address format/range would be: FD00:000A:XXXX:3199:0000:0000:0000:XXXX

The X's above can be any hexadecimal value.

I have used the following regex statement, but cannot get it to work:
^FD00:000A:([0-9A-Fa-f]{1,4}):3199:0000:0000:0000:([0-9A-Fa-f]{1,4})$

Any assistance to help me to craft the proper regex/pattern matching statement for my IPv6 addresses for switches would be greatly appreciated. Thank you.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,257 questions
No comments
{count} votes