Login page problem

I setup hotspot successfully but if I entered correct user name and password in login page it going to refreshed in very quick manner it let my browser crazy. I think it is redirected problem because if wrong user info was entered it give you correct feedback.

I deleted and created the hotspot many times but no benefit.

Can you guide me to a solution?
thanks

Hi salytwo. What URL or IP are you trying when you get this response? Try http://www.google.com.

Have you changed the “hotspot/login.html” document in the router?

This should be under General, not Scripting. But since it is Sunday and we are already here…

I presume you figured out the “dns-name” problem.

Hi SurferTim

I used www.almasila2.com then I changed to www.gg.com. All previous URL with 192.168.1.1. after that I removed all URL and leave only IP of hotspot server which is 192.168.1.1 but not benefit.

I reset HTML because I thought it is from my altered login page but still same problem however I alter only the logo and sentences above the text box of username and text of all rights are reserved.

I got This URL:

http://192.168.1.1/login?dst=http%3A%2F%2Fwww.google.com%2F

I use CHAP.

I appreciate your co-operation.

thanks

The link in your browser address bar looks correct.

The first URL you tried gives me a “server not found” error. The second one should be ok if your dns is working ok. Try this ip address with your browser to get the login page. This should be the ip for http://www.gg.com. If this works, then look at the settings in “/ip dns”
http://80.93.161.12

ADD: If the dns settings were not correct, you should use the network “repair connection” function in your clients. Otherwise, they will continue to use the old settings until the dhcp lease is renewed (36 hours from issue if the default expiration was not changed) in the client computer.

The URL I gave is not real not existed however Should I give it an existed website?
I think using 192.168.1.1 is enough Am I correct?
when disabling hotspot then use the ip 192.168.1.1 at the browser I get the mikrotik documentation

tnx

The URL/IP should exist if you want the login page to work right. I do not recommend using 192.168.1.1 (the hotspot interface ip or url) as a address to get the login page. That could cause a nasty re-entrant situation, like
You: “I want to login”
AP: “You are logged in”
You: “OK, then I want to login”
AP: “You are logged in”
You: “Ok, then I want to login”

Try the ip I gave you above for the gg.com site to get the login page. That is where you should end up after you login.

When I tried ip of google 72.125.130.148, the login page still load for long time with waiting for google.com at the status bar.
The IP above guide you to google page if place it in the address bar.
My DNS setting is correct I mean hear public DNS not local DNS I have no local DNS running in my network, Really I get very tired from this issue.

what you think?

thanks alot

Sometimes the login page takes a few seconds to load.
Can you login and go to Google using the ip address?
If that is correct, check “/ip dns”. Insure the servers are correct and “allow-remote-requests=yes”.
If you can’t login or get the Google page, then check your log first to see if there is a clue there.

Dear SurferTim

I am using hotspot without webproxy I disabled web proxy and its cache to get L7 rules works. but I faced this problem of login page.

Plz see the attache pic and guide me to correct this trouble if you need more details I will hand it to you

thanks
problem.JPG

Try removing the “dns-name” entry for the hotspot profile. Try it again with that entry blank. That will mess up the dns for http://www.google.com and the hotspot.

ADD: Did you change the ip for the hotspot address? Change that back to the ip assigned to that localnet (192.168.1.1). When I said try http://www.google.com and that ip, I meant in your browser address bar, not these settings.

I tried removing DNS name and set IP of my local interface but no benefit.
I named local interface as LAN and public interface as WAN I thinks naming has no effect.

Can you post “/ip hotspot user” and “/ip hotspot user profile”?
What I am looking for is the profile for the user matches a profile in “/ip hotspot user profile”.

If you have not already, you should enable debug logging for the hotspot.

/system logging
add topics=hotspot,debug action=memory

Then try the login again and then check the log.

here you are


[admin@MikroTik] /ip hotspot user>> print
Flags: X - disabled, D - dynamic

SERVER NAME ADDRESS PROFILE UPTIME

0 hotspot1 admin default 8m13s
1 hotspot1 salim userprofile 45m12s
2 hotspot1 salim2 userprofile 6h28m11s
3 hotspot1 abdurrahm… userprofile 0s
4 hotspot1 ali.alzub… userprofile 0s
5 hotspot1 hr.contro… userprofile 0s
6 hotspot1 khalid.sa… userprofile 0s
7 hotspot1 mohammed userprofile 1m11s
8 hotspot1 nabeel.bi… userprofile 9s
9 hotspot1 omerabobaker userprofile 0s
10 hotspot1 sabri.karama userprofile 0s
11 hotspot1 saeed.hamran userprofile 0s
12 hotspot1 saleh.krees userprofile 0s
13 hotspot1 yahya.jopan userprofile 3m7s
14 hotspot1 user default 11s


user profile



[admin@MikroTik] /ip hotspot user profile>> print
Flags: * - default
0 * name=“default” idle-timeout=none keepalive-timeout=2m
status-autorefresh=1m shared-users=1 transparent-proxy=yes
open-status-page=always advertise=no

1 name=“userprofile” address-pool=dhcp_pool1 idle-timeout=none
keepalive-timeout=2m status-autorefresh=1m shared-users=1
transparent-proxy=no

There are a few users that are connecting ok according to the “/ip hotspot user” uptime. Have you enabled the debug logging and tried a login? If you have questions about the log entries, post them here.

I logged this users but now I can not I did not remembered what I did that deny access to login page

I can decide that you do not observe any fault with hotspot so I can move to review any related topic like firewall or nat did you think I am right?

Really I am appreciate your co-operating
thanks bro

If I was certain your hotspot setup was good, that would be the next step. But I am not sure it is. My recommendation would be to remove the current hotspot and start a new install.

/ip hotspot
remove 0
setup

You should be able to use the default ip/dhcp server/dns settings or something is not right.

I deleted all hotspot entries and start from scratch but same thing after entering login the page still refreshed in quick manner it make the browser like crazy.
I think a L7 rules has an effect.

this hotspot make my eyes surrounded by black ring

tnx

My hotspots put money in my bank account.

Where are you trying to go with your browser to get the login page? I hope you are going to answer that you are using http://www.google.com.

Did you enable the debug logging for the hotspot? Did you check the log after the login attempt? Does the log show that you are logged in ok?

Check the network assignments in your client computer. Does it show the correct ip/subnet/gateway/dns servers? The dns servers should not have the ip of the router (192.168.1.1). They should be full dns servers. I use the dns servers my ISP issued me.

ADD: If you would post the source for the login.html page, that may help. When you get the login page, use the browser “View Source” feature, copy and post it here.

My hotspot make me active but I can not go any where with my browser because its rapidly unstable it like some key in the keyboard still pressed.
I enabled what you told me but I had power switched off in my city so all debugging info erased. and now I can not try hotspot because I need internet running for all users tomorrow I will do.

regard DNS I use DNS of my ISP just like you.

This is my login page source

\

AL-Masila Est. Internet Service > login body {color: #737373; font-size: 10px; font-family: verdana;}

textarea,input,select {
background-color: #FDFBFB;
border: 1px solid #BBBBBB;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 10px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 14px; color: #7A7A7A; }

$(if chap-id)

$(endif)

Latviski
Please log on to use AL-Masila Est. Internet service
$(if trial == 'yes')Free trial available, click here.$(endif)

login
password
 
AL-Masila Est.


Powered by AL-Masila Est. IT Email:salim.alaidaroos@almasila.com Mob:733041857 Ext:106 © 2011

$(if error)
$(error)
$(endif)

That is the code for the login.html page. I really need to see the login.html “View Source” output from your web browser. It will have all the variables filled in. There will be no $(link-login-only) and other $() variables. Those will be replaced with the correct values. That is what I want to see. I am trying to figure out what you are submitting to the login routine.

Get the login page by using http://www.google.com in your browser address bar , then select “View Source” and copy it. Post that here.

ADD: I found the Mikrortik dhcp-server does add the localnet gateway ip (192.168.1.1) to the client dns server list. I was incorrect about that.