Community discussions

MikroTik App
 
aminahoora
just joined
Topic Author
Posts: 4
Joined: Mon Aug 01, 2011 4:30 pm

Web proxy with hotspot authentication

Sun Oct 09, 2011 10:59 am

Hi Dear support team

i have serous problem with this terminology

i have mikrotik web proxy service but want to use authentication for my user i read all you document is web proxy and hot spot and firewall rule

is any way to use web proxy service and my users set proxy setting on their brewers in any time their want to use internet (hit any site) hotspot show in their interface and ask their about authentication and access time

is any firewall rule that guide HTTP/HTTPS traffic to hotspot service and hotspot service after authenticate user back service to web proxy

before this i find way to redirect all HTTP traffic service to web proxy but can not guide HTTPS traffic to web proxy because this mean "man in middle"

help me i need authentication with web proxy from radius server

very thanks
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Web proxy with hotspot authentication

Mon Oct 10, 2011 4:46 pm

Enable the hotspot and enable the transparent proxy on a profile basis. This will force people to use the proxy. The downside to this though is that it will not work with HTTPS traffic, the transparent proxy only works with HTTP.

If you need the end users use a transparent proxy for HTTPS traffic as well, you'll have to look into a separate proxy solution. I'm not sure if that's possible as we don't use proxies.
 
daviddem
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Sun Sep 18, 2011 12:16 pm

Re: Web proxy with hotspot authentication

Mon Oct 31, 2011 1:19 pm

Enable the hotspot and enable the transparent proxy on a profile basis. This will force people to use the proxy. The downside to this though is that it will not work with HTTPS traffic, the transparent proxy only works with HTTP.

If you need the end users use a transparent proxy for HTTPS traffic as well, you'll have to look into a separate proxy solution. I'm not sure if that's possible as we don't use proxies.
Hello, Feklar. So if I understand correctly what you are saying, if I want my authenticated hotspot users' http traffic to be subjected to transparent proxying, I should tick the "transparent proxy" box in their profile.

But then what? Does that mean that the rules in the walled garden will apply to them? Or should I setup a separate proxy in the /proxy menu?

If the rules in the walled garden would apply after ticking the box, then how do I apply different rules to my authorized and unauthorized clients, or even different rules to different users or user profiles?

Still digging the docs and forum to figure this out...
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Web proxy with hotspot authentication

Mon Oct 31, 2011 3:29 pm

You would need to enable the proxy and set up the rules in there for authenticated guests from the proxy menue. The walled garden uses the same functions as the proxy, but it only applies to unauthenticated guests. Also don't forget to set up a firewall to protect the proxy from the internet, otherwise someone will find it and start abusing it.
 
daviddem
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Sun Sep 18, 2011 12:16 pm

Re: Web proxy with hotspot authentication

Mon Oct 31, 2011 8:04 pm

You would need to enable the proxy and set up the rules in there for authenticated guests from the proxy menue. The walled garden uses the same functions as the proxy, but it only applies to unauthenticated guests. Also don't forget to set up a firewall to protect the proxy from the internet, otherwise someone will find it and start abusing it.
Thanks Feklar for clarifying this so promptly. This points me in the correct direction. I may have got confused by articles and posts explaining that the hotspot itself acts as a proxy even for authenticated users (mum.mikrotik.com/presentations/US10/FelixWindt.pdf and http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot), so I thought I should be able to setup proxy filtering rules within this hotspot proxy, including for authenticated users.

So in this other post of yours (http://forum.mikrotik.com/viewtopic.php ... 16#p238927), you mention that the redirection to the proxy can be achieved either with a NAT rule (or a rule in the pre-hotspot table), or by ticking on the "transparent proxy" box in the user profile. My question is: do you know exactly what firewall rule is added when this "transparent proxy" box is ticked on? What is getting at me is that we can only tick the box, but there is nowhere to specify which port the proxy in question is listening to?
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Web proxy with hotspot authentication

Mon Oct 31, 2011 9:15 pm

Ticking the box I believe adds in an extra step in the hotspot process that tells it to forward the traffic onto the proxy internally, so you don't really see a firewall rule created for it. Support would need to clarify exactly how it works because that functionality is not exposed to us. But in essence the when the hotspot is enabled it does what fewi says.

With the NAT rule you gain a bit more control over the process since you are able to match packets against the firewall, so you can do things like exclude certain users from using the transparent proxy by adding them to an address list, or only having certain users get redirected to the transparent proxy.
 
daviddem
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Sun Sep 18, 2011 12:16 pm

Re: Web proxy with hotspot authentication

Mon Oct 31, 2011 9:25 pm

Ticking the box I believe adds in an extra step in the hotspot process that tells it to forward the traffic onto the proxy internally, so you don't really see a firewall rule created for it. Support would need to clarify exactly how it works because that functionality is not exposed to us. But in essence the when the hotspot is enabled it does what fewi says.

With the NAT rule you gain a bit more control over the process since you are able to match packets against the firewall, so you can do things like exclude certain users from using the transparent proxy by adding them to an address list, or only having certain users get redirected to the transparent proxy.
Thanks again and I agree that this tick box indeed requires clarification from support. Are they likely to answer this here or should I try and write directly to them?

In the meantime, since I am a control freak, I will use a redirect rule as you suggest. It seems to me that the right place for it is in the pre-hotspot table.
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Web proxy with hotspot authentication

Mon Oct 31, 2011 9:30 pm

E-mailing support is the better way to get an answer for a question like that. Sometimes they do reply to questions like that in a thread, but not always.

Yes, pre-hotspot is going to be the best chain for that. One other benefit of the NAT rule is, you are able to turn it off for everyone just by disabling the rule, where as with it being at the profile level, people would have to log out and back in for it to apply to them.
 
arashams
newbie
Posts: 33
Joined: Thu Jul 04, 2013 11:20 pm

Re: Web proxy with hotspot authentication

Sat Oct 15, 2016 8:12 am

hello every one !
i have problem using Webproxy with hotspot.
when i enable dst-nat(for ports 80 and 443) rule in firewall to redirect traffic to webproxy port the internet goes down.
please help me.

Who is online

Users browsing this forum: Bing [Bot], deadmaus911, dervomsee, karlisi and 75 guests