You are not logged in.

#1 2017-09-05 01:21:28

RSlade97
Member
Registered: 2017-09-05
Posts: 8

(Solved) Web Based Wi-Fi Login

Hello,

I just finished installing Arch Linux on my laptop, and I am having an issue with my Wi-Fi. I installed all my drivers and packages to do with Wi-Fi and my wireless card, and when I was at my girlfriend's house which had a normal WPA password login, I was able to connect via wifi-menu. Now I am back at my dorm at my university and I can't connect to the internet. The Wi-Fi network itself isn't secured, but on phones/Windows computers, after logging in, you get automatically redirected to a SafeConnect login screen in your default web browser, where you select what kind of member you are (guest, faculty, student, etc) then input your student ID number and your password, which then leads you to being whitelisted on the network.

I installed Firefox onto my computer to see if I'd get automatically redirected after connecting to the network, and nothing happened. I tried going to websites to trigger the login, and nothing happened. I tried pinging google.com and I couldn't get a ping. I'm not sure what to do now. Does anybody know a solution to this?

Last edited by RSlade97 (2017-09-06 13:03:57)

Offline

#2 2017-09-05 01:25:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: (Solved) Web Based Wi-Fi Login

RSlade97 wrote:

I tried going to websites to trigger the login

Which websites did you try?  That is the right approach, and if the university has the foggiest idea what they are doing, every url would redirect to the login page.  But experience has shown that a vast majority of universities don't have the foggiest idea what they are doing with networking (at least here in the US).  So often it is a bit of trial and error.  There are a few common urls that are redirected: google.com for example (in a browser, not ping).  Or sometimes just the school's webpage.

(edit: see also: wiki)

Last edited by Trilby (2017-09-05 01:27:31)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-09-05 01:27:49

RSlade97
Member
Registered: 2017-09-05
Posts: 8

Re: (Solved) Web Based Wi-Fi Login

cnn.com is known to be an instant trigger for the login, and when I try this or any other website, such as the university's homepage, Google, or any others, I get a server not found error.

Offline

#4 2017-09-05 01:33:01

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: (Solved) Web Based Wi-Fi Login

You can also try the urls that seem to be used for the captive portal detection on windows:
https://www.reddit.com/r/Windows10/comm … n/d4j12yj/

http://www.msftncsi.com/ncsi.txt
http://www.msftconnecttest.com/connecttest.txt

Last edited by progandy (2017-09-05 01:37:38)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2017-09-05 01:36:51

RSlade97
Member
Registered: 2017-09-05
Posts: 8

Re: (Solved) Web Based Wi-Fi Login

progandy wrote:

You can also try the urls that seem to be used for the captive portal detection on windows:
https://www.reddit.com/r/Windows10/comm … n/d4j12yj/

http://www.msftncsi.com/ncsi.txt
http://www.msftconnecttest.com/connecttest.txt

Tried both of these websites, still got a server not found error.

I read up on the wiki, which said to delete any custom dns servers from resolv.conf. I have a domain, and 4 nameservers (wiki says you can have a max of 3). Would this maybe be a lead?

Offline

#6 2017-09-05 01:38:54

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: (Solved) Web Based Wi-Fi Login

The nameservers might be a problem, most likely you have to use the university internal server to get the redirect.

Last edited by progandy (2017-09-05 01:41:58)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2017-09-05 01:40:35

RSlade97
Member
Registered: 2017-09-05
Posts: 8

Re: (Solved) Web Based Wi-Fi Login

progandy wrote:

The nameservers might be a problem, most likely you have to use the university internal server to get the redirect.

So should I delete the nameservers and try again?

Offline

#8 2017-09-05 01:45:25

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: (Solved) Web Based Wi-Fi Login

RSlade97 wrote:
progandy wrote:

The nameservers might be a problem, most likely you have to use the university internal server to get the redirect.

So should I delete the nameservers and try again?

You can try that. If you did anything to stop wifi-menu to set the nameserver via dhcp, then you should reverse that, too. (you probably did not do that if you don't remember it) After the login was successful you should be able to use any nameserver you want until you have to log in again.

You could also try to get the login URL and its IP from the windows machine and add it too your hosts file. Then you won't have the redirect, but it should be possible to call the login directly with any configured dns.

Last edited by progandy (2017-09-05 01:45:51)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#9 2017-09-05 01:49:01

RSlade97
Member
Registered: 2017-09-05
Posts: 8

Re: (Solved) Web Based Wi-Fi Login

progandy wrote:
RSlade97 wrote:
progandy wrote:

The nameservers might be a problem, most likely you have to use the university internal server to get the redirect.

So should I delete the nameservers and try again?

You can try that. If you did anything to stop wifi-menu to set the nameserver via dhcp, then you should reverse that, too. (you probably did not do that if you don't remember it) After the login was successful you should be able to use any nameserver you want until you have to log in again.

You could also try to get the login URL and its IP from the windows machine and add it too your hosts file. Then you won't have the redirect, but it should be possible to call the login directly with any configured dns.

I tried commenting out the nameservers, still no dice. I don't recall playing around with wifi-menu and dhcp, so that can't be it. I also have no access to any windows computers that aren't already whitelisted, so I can't get the URL.

Offline

#10 2017-09-06 02:29:42

RSlade97
Member
Registered: 2017-09-05
Posts: 8

Re: (Solved) Web Based Wi-Fi Login

Solved it:

My resolv.conf was the problem. I simply added my university's domain name as a domain.

Offline

#11 2017-09-06 12:56:21

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: (Solved) Web Based Wi-Fi Login

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

#12 2017-09-06 13:04:21

RSlade97
Member
Registered: 2017-09-05
Posts: 8

Re: (Solved) Web Based Wi-Fi Login

2ManyDogs wrote:

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Got it, thanks!

Offline

#13 2019-05-09 10:56:15

kox
Member
Registered: 2015-05-01
Posts: 146

Re: (Solved) Web Based Wi-Fi Login

Just in case someone lands here from search. Usually you can use google.com to login to the network. But there might be a problem with browser cache. When I work from a caffe, I always use google.com?a=yyyy-mm-dd-0x to login to the network. Otherwise it would not work, due to browser caching the redirect.

Last edited by kox (2019-05-09 10:56:39)

Offline

#14 2019-05-09 12:45:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: (Solved) Web Based Wi-Fi Login

Please don't necrobump old posts with unrelated information.

Closing.

Offline

Board footer

Powered by FluxBB