Jump to content

Recommended Posts

Posted

Morning All,

 

So configured my Smoothwall for X-Forwarded-For as we keep getting all our logs on our firewall IP address so not much help in logging/IP bans etc.

 

But I can't find out if there's anywhere in HAP I can use this instead of the client IP? I know in IIS I can add it as an advanced log, but I'm guessing HAP wouldn't pick this up?

 

Thanks,

Steve

Posted

Hi Nick,

 

Basically since we had our smooth wall in and as we use reverse proxy all the hits on Hap are logged as the smooth wall ip

 

So if we have any issues like attempted admin logins it won't log who it is, also the ip block for multiple failed logins effectively blocks the whole internet as it blocks the firewall.

 

We talked to smooth wall and set up the header but I'm guessing the hap config looks at client ip in the header by default rather than anything like x-fordwarded-for when it's logging these ips

 

If that makes any sense? :p or do you need more info and some examples

 

Thanks,

Steve

Posted

ok, for that you will need to edit the HAP+ project in visual studio. You need to edit the login.aspx.cs page replace UserHostAddress with Request.Headers.Get("x-fordwarded-for")

 

Rebuild HAP.Web and copy HAP.Web.dll to the bin folder.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...