Community discussions

MikroTik App
 
locu
just joined
Topic Author
Posts: 8
Joined: Tue Oct 07, 2008 3:50 am

Web Proxy HTTP_VIA Header Not Always Accurate

Wed Jan 11, 2012 2:25 am

With web proxy enabled, a new connection will show a HTTP header value for HTTP_VIA of: 1.1 10.5.50.1 (Mikrotik HttpProxy)

If I move to a machine plugged into eth2, and get assigned an IP address in the 10.5.60.x network (with gateway of 10.5.60.1), and connect to a website which outputs the HTTP_VIA header, I still see: 1.1 10.5.50.1 (Mikrotik HttpProxy)

Now, if I disable/enable web proxy, and start on eth2, I'll see "1.1 10.5.60.1 (Mikrotik HttpProxy)", both on eth2 or if I move to eth1.

It seems this value is obtained and used based on the first use of the web proxy, and never updated, even if the proxy service is being supplied from a different IP (as is the case if I move from eth1 to eth2). I've confirmed the same behavior on 5.9 and 5.11.

a) I wonder what MT support has to say. Is this a possible bug or intended?

b) My intent is to read this value so I can, via a remote web page, redirect the user back to <gateway ip>/logout.html to force a logout. Any better ideas to accomplish this result?

- Nathan
 
User avatar
marioclep
Trainer
Trainer
Posts: 139
Joined: Sat Jul 11, 2009 4:36 pm
Location: Cordoba - Argentina
Contact:

Re: Web Proxy HTTP_VIA Header Not Always Accurate

Wed Jan 11, 2012 11:06 pm

have you tried the "source address" field undes ip > proxy > settings?

Regards

Who is online

Users browsing this forum: ericsboro and 230 guests