IAG 2007 Community Wiki

Sometimes you may want to use the endpoint's IP address (which could be the address of a NAT gateway, or even web proxy) in endpoint policies. Here's how (tested in IAG 2007 SP 1 Update 2):

In ../von/InternalSite/inc/<1 for SSL, 0 for plaintext HTTP>PostPostValidate.inc, integrate the following code:

<%	
	dim ip
	ip = GetSessionParam (g_cookie, "SourceIP")
	SetSessionParamWithType g_cookie, "XSourceIP", ip, "Policy"
%>

Afterwards, you can access the parameter "XSourceIP" in your custom ("Edit in script mode") endpoint policies. I.e. you can create a policy like this one:

(XSourceIP = "192.168.42.240")

ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam. Here's an Imprint.
This site is not affiliated with, sponsored by or under the control of Microsoft Corporation. Microsoft is not responsible for any content contained within this web site. This site is not endorsed by Microsoft Corporation. Microsoft™, IAG 2007™, ISA Server™, Windows™ are either registered trademarks or trademarks of Microsoft™ Corporation in the United States and/or other countries.

See the Code of Conduct and Site FAQ for additional information.