Not getting Session.ServerIP

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Not getting Session.ServerIP

Postby FishHook » May 10 19 1:59 am

I'm trying to setup a list of IP addresses that are to be blocked. Known malicious sites etc … stuff not blocked by Lumen. I can add the IP address in the IP Blackhole list, but that only works if the user specifies http://ipaddress/somefolder/somefile in the URL. This doesn't stop an IP that hosts 200+ webpages. After reading on here, I decided to go the route of WWW Proxy Service Request event policy. My initial tests were not being blocked so I setup an email event and had it email me these events just so I could see what was being compared.

{{Session.ServerIp}}
{{Request.Server}}
{{Session.InterceptedDestIp}}

This was the response that I received.
255.255.255.255
http://www.bing.com
255.255.255.255

At first glance, it looks like it's not working as intended … surely I am missing something?
FishHook
 
Posts: 8
Joined: Nov 27 14 3:14 am

Re: Not getting Session.ServerIP

Postby adrien » May 13 19 11:45 am

Hi

Try using the ProxyRequest event instead, the server IP address has not been looked up yet at the point where the Request event is fired.

Regards

Adrien de Croy
adrien
Qbik Staff
 
Posts: 5280
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Not getting Session.ServerIP

Postby FishHook » May 21 19 1:24 am

Thanks Adrien!

That was indeed the problem.
FishHook
 
Posts: 8
Joined: Nov 27 14 3:14 am


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 5 guests

cron