You are not logged in.

#1 2015-09-24 13:11:51

shearej
Member
From: Massachusetts
Registered: 2015-07-27
Posts: 5

Wi-fi that needs a form to be accepted before giving internet access

Hello. At the school I attend, to connect to the wifi you need to accept a form that comes up after you try to connect to the wifi. But on arch using wifi-menu i cannot access the form (I can on Windows and Mac and iPhone). Is there any way to fix this? Thanks!

Offline

#2 2015-09-24 14:18:27

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

Re: Wi-fi that needs a form to be accepted before giving internet access

Is this a form in a browser, or is it perhaps a multi stage authentication?  If it is a browser form, just open a browser and go to any url and you'll be directed - at least in theory.  In practice not all networks redirect all urls, but google.com is almost universally redirected.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-09-24 14:18:44

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Wi-fi that needs a form to be accepted before giving internet access

Have you tried opening a browser and trying to access google? I suppose your school implements what is called a captive portal and it should automatically redirect any url you try to access to the login page, however some captive portals only redirect certain common urls, such as www.google.com or similar. If google doesn't work then you can try a few others, and don't forget to also try the webpage of your school.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2015-09-24 14:50:03

shearej
Member
From: Massachusetts
Registered: 2015-07-27
Posts: 5

Re: Wi-fi that needs a form to be accepted before giving internet access

Trilby wrote:

Is this a form in a browser, or is it perhaps a multi stage authentication?  If it is a browser form, just open a browser and go to any url and you'll be directed - at least in theory.  In practice not all networks redirect all urls, but google.com is almost universally redirected.

Unfortunately it is in a browser, but when you connect it auto-routes to the page on windows/osx/iOS. When I choose the network in wifi-menu it does not auto-route.

Last edited by shearej (2015-09-24 14:50:56)

Offline

#5 2015-09-24 14:56:26

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

Re: Wi-fi that needs a form to be accepted before giving internet access

That is not unfortunate, that is the easier option.  Have you followed the advice provided above?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2015-09-25 02:16:58

shearej
Member
From: Massachusetts
Registered: 2015-07-27
Posts: 5

Re: Wi-fi that needs a form to be accepted before giving internet access

Yes, it does not auto-route, just rejects the connection.

Offline

#7 2015-09-25 04:49:08

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Wi-fi that needs a form to be accepted before giving internet access

Have you tried with different browsers?

Offline

#8 2015-09-25 13:11:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Wi-fi that needs a form to be accepted before giving internet access

what if you directly try the address to which you are redirected to under Windows/Mac/iPhone?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2015-09-25 14:16:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,464

Re: Wi-fi that needs a form to be accepted before giving internet access

Also, ensure you try a URL that is not https.  My browsers block redirects of https requests because they  appear to be a man-in-the-middle attack.

Last edited by ewaller (2015-09-25 23:56:51)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2015-09-25 15:25:58

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: Wi-fi that needs a form to be accepted before giving internet access

If ewaller's suggestion fails, try doing:

curl -sI http://google.com

or

curl -sD - -o /dev/null http://google.com

You should get a 307 (or 302) redirection HTTP status and the http headers. There should be a “Location” header with the URL of the login page.

If that is the case, you know the redirect is working and you may be able to script the login page (depending on what it wants)

Last edited by ukhippo (2015-09-25 21:24:42)

Offline

#11 2015-10-29 13:52:24

shearej
Member
From: Massachusetts
Registered: 2015-07-27
Posts: 5

Re: Wi-fi that needs a form to be accepted before giving internet access

ewaller wrote:

Also, ensure you try a URL that is not https.  My browsers block redirects of https requests because they  appear to be a man-in-the-middle attack.

Thank you! This worked!

Offline

Board footer

Powered by FluxBB