You are not logged in.

#1 2014-06-11 22:28:59

thelollies
Member
Registered: 2013-04-20
Posts: 21

Wireless connection with login required

I have no issues usually with wifi on my Arch installation but at university I can't get it working. The university wifi has no security (according to my phone) but requires you to login via a web form once you are connected to the wifi. On my phone when I connect I am prompted to log in to the wifi but in Arch there is no prompt and I can't get anything to load. I tried manually entering the login form URL with no luck.

Is there something I'm missing here? Seems to me it must be a config issue or missing package if the phone picks it up without a problem

Last edited by thelollies (2014-06-11 22:29:26)

Offline

#2 2014-06-11 22:31:40

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

Re: Wireless connection with login required

Have you tried entring "google.com" in a browser?  That seems to be the most universally redirected domain name with these crappy university networks.  At my university that is the *only* way to get to the login page.

If that fails, I might next try (re)setting the browser's user agent string to something less linuxy.


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

Offline

#3 2014-06-11 22:52:08

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

Just gave both of those a go and no luck.

Offline

#4 2014-06-12 22:57:49

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

Any other ideas on this?

Offline

#5 2014-06-12 23:24:58

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

Re: Wireless connection with login required

I'm at a loss.  Have you tried other browsers?  What happens when you can't login?  Do you get any error page and/or any output on stdout if you run the browser from a terminal?


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

Offline

#6 2014-06-12 23:45:10

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

Re: Wireless connection with login required

thelollies wrote:

On my phone when I connect I am prompted to log in to the wifi but in Arch there is no prompt and I can't get anything to load. I tried manually entering the login form URL with no luck.

Find the user agent of your phone and use with your browser?
Edit: Compare all header data your phone is sending with your desktop: http://myhttp.info/

Edit: Maybe try to use the exact url that android uses: www.google.com/generate_204
Here is an overview of different methods used by mobile phones: http://stackoverflow.com/a/3695764

Last edited by progandy (2014-06-12 23:59:38)


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

Offline

#7 2014-06-13 00:44:29

nagaseiori
Member
Registered: 2012-09-22
Posts: 72

Re: Wireless connection with login required

Try going to a http page instead of an https page.

Offline

#8 2014-06-13 09:45:13

fungle
Member
Registered: 2014-05-01
Posts: 81

Re: Wireless connection with login required

nagaseiori wrote:

Try going to a http page instead of an https page.

This. Also try turning off security addons like noscript or httpseverywhere or things that might prevent redirects.

Last edited by fungle (2014-06-13 09:45:31)

Offline

#9 2014-06-14 00:35:28

samiam
Banned
From: EAX
Registered: 2010-08-20
Posts: 58

Re: Wireless connection with login required

Are you sure you're actually connected to the wireless network? Do you have an IP? (ip addr show <wireless interface>) Can you ping the gateway? (netstat -rn)

Offline

#10 2014-06-15 23:10:37

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

Thanks for the suggestions, tried all of them and unfortunately no luck. I do get an IP address, I don't have netstat to determine whether I can ping the gateway.

Offline

#11 2014-06-16 00:23:55

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Wireless connection with login required

On your phone, are you redirected to another webpage or ip-address for the login?

If so, can you enter that address directly from arch and get to the login? That's a bit of a work around, I know, but better than nothing.

Offline

#12 2014-06-16 00:40:28

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

rune0077 wrote:

On your phone, are you redirected to another webpage or ip-address for the login?

If so, can you enter that address directly from arch and get to the login? That's a bit of a work around, I know, but better than nothing.

I've tried that too unfortunately but thanks!



I'll add that I'm using NetworkManager to handle my Wifi.

Offline

#13 2014-06-16 00:58:33

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Wireless connection with login required

Okay. When you connect to the wifi, do you actually get an IP address assigned to you via dhcp? And do you have an address for DNS?

Offline

#14 2014-06-16 01:28:38

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

Yep I get an IP address and I get DNS addresses (two of them in resolv.conf). I don't know whether you're supposed to be able to but I get no response when I try to ping the addresses in resolv.conf.

Offline

#15 2014-06-16 01:31:25

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Wireless connection with login required

Instead of ping, try running wget on some random webpage. If it is unable to fetch the page, it should give you some kind of error message that might be useful.

Offline

#16 2014-06-16 21:41:25

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

wget http://www.google.com                                              ~
--2014-06-17 09:41:10--  http://www.google.com/
Resolving www.google.com (www.google.com)... failed: Name or service not known.
wget: unable to resolve host address ‘www.google.com’

Interestingly I tried pinging the ip address of google.com and got;

wget 74.125.237.114                                                     ~
--2014-06-17 09:51:18--  http://74.125.237.114/
Connecting to 74.125.237.114:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 459 [text/html]
Saving to: ‘index.html’

100%[======================================>] 459         --.-K/s   in 0s      

2014-06-17 09:52:00 (35.6 MB/s) - ‘index.html’ saved [459/459]

The contents of the html file:

<HTML>
	<HEAD>
		<TITLE> Web Authentication Redirect</TITLE>
		<META http-equiv="Cache-control" content="no-cache">
		<META http-equiv="Pragma" content="no-cache">
		<META http-equiv="Expires" content="-1">
		<META http-equiv="refresh" content="1; URL=https://wireless.victoria.ac.nz/fs/customwebauth/login.html?switch_url=https://wireless.victoria.ac.nz/login.html&ap_mac=08:17:35:9d:23:40&client_mac=e4:d5:3d:84:26:70&wlan=victoria&redirect=74.125.237.114/">
	</HEAD>
</HTML>

Which is the redirect for the login page.

Last edited by thelollies (2014-06-16 21:58:55)

Offline

#17 2014-06-16 22:04:23

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

Re: Wireless connection with login required

What if you enter that google IP address in the browser.  Do you get redirected to the login page?

If so, it seems only a DNS issue pre-login.


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

Offline

#18 2014-06-16 22:17:53

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Wireless connection with login required

This URL:

https://wireless.victoria.ac.nz/fs/customwebauth/login.html

Is this the login page you should have been redirected to?

If so, it is likely a badly configured DNS server on the network, and not really a problem on your end.

EDIT: Okay, I missed the last part where you stated that URL was the redirect. Can you try pinging wireless.victoria.ac.nz? If you can ping it, you should get an IP address of that domain (which is likely a proxy-server), then try entering that IP address in your browser:

<IP address>/fs/customwebauth/login.html

Last edited by rune0077 (2014-06-16 23:04:14)

Offline

#19 2014-06-16 22:47:54

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

Re: Wireless connection with login required

Maybe you get wrong arp information delivered, so your computer cannot find the dns server. You might try to flush your arp cache.

sudo ip neigh flush all

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

Offline

#20 2014-06-16 23:25:55

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

What if you enter that google IP address in the browser.  Do you get redirected to the login page?

Unfortunately not.

Any chance the "Wrong Mac address" and "WLC_SCAN error (-22)" are related?:

dmesg | tail                                                                                                                                                    ~
[36164.494531] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[36275.210652] cfg80211: Calling CRDA to update world regulatory domain
[36302.151173] ERROR @wl_cfg80211_get_station : Wrong Mac address
[36302.151308] ERROR @wl_cfg80211_get_station : Wrong Mac address
[36428.967529] cfg80211: Calling CRDA for country: NZ
[36429.096781] usb 1-1.2: USB disconnect, device number 6
[36429.475748] ERROR @wl_notify_scan_status : wlo1 Scan_results error (-22)
[36430.403991] usb 1-1.2: new full-speed USB device number 7 using ehci-pci
[36430.653590] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[36430.653795] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)

Yep the https://wireless.victoria.ac.nz/fs/cust … login.html is where I should be redirected. I tried to replace it with its IP address  (1.1.1.1) but no luck.

sudo ip neigh flush all

Gave it a go but no change.

Offline

#21 2014-06-16 23:35:04

thelollies
Member
Registered: 2013-04-20
Posts: 21

Re: Wireless connection with login required

I've started to use USB tethering and connect to the wifi via the phone which works fine. A bit of a pain but probably less of a pain than trying to figure out what's going on (when it may even be the network itself playing up).

Offline

#22 2014-06-17 00:30:51

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Wireless connection with login required

One last thing. When you entered the ip address, did you remember to use https? The full address would be like so:

https://1.1.1.1/fs/customwebauth/login.html

and try also:

https://1.1.1.1/login.html

I really think one of these should work (probably the last one, because that seems to be the one you end up being redirected to). If they don't, I'm running out of ideas.

Offline

#23 2014-06-17 03:20:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Wireless connection with login required

What are the IP addresses of your machine and the DNS servers?  If you don't want to share them in their entirety, just tell us if they start with a 10, a 172. or a 169.  If they do start with one of those numbers, then the address is not an address that can be routed on the public Internet, and are safe to share anyway.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#24 2014-06-18 10:49:12

samiam
Banned
From: EAX
Registered: 2010-08-20
Posts: 58

Re: Wireless connection with login required

If you want to fix this the right way we'll need the output of the following while you're on the wireless network:

ip addr show
ip route show
cat /etc/resolv.conf



If you want to cheap hack it in a way that will most likely get you off and running, do this:

sudo su - -c "echo '1.1.1.1        wireless.victoria.ac.nz' >> /etc/hosts"
sudo su - -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"

Offline

Board footer

Powered by FluxBB