Jump to content

Recommended Posts

Posted (edited)

Anyone have problems connecting a Linux laptop to a public wifi.?

 

Trying to get my daughters laptop ready for uni next month I wanted to try to see if it would connect to a public wifi, I went down to our local pub and used there connection (wpa with key) with there permission.

Having first removed all the network adapter's in pcc > network manager, I set up a new connection in pcc, entered the key, it connected and gave me an ip address but said it was not connected to the internet !, I have tried this several times, tried a reboot, still no internet.

 

I could ping the router ok but could not ping anything else past that.

 

The landlady said her laptop is ok on the internet at the back of the bar .

 

I did try http://192.168.1.1 in a browser for access to there router but it was password protected.

 

I have had this sort of thing at home and have to go to the routers settings page and click 'connect' but I can not do that on a public wifi. !.

 

I can connect at home ok to our 'wifi access point'.

 

Do you think this is a DNS problem ?.

 

I have two days to get it sorted before we go on a day visit to her uni .

 

Edit.. It's the same with the firewall on/off !.

Edited by tickmike
Posted

When you obtained an IP, did you run ipconfig /all equivalent, as this would display the IP, Gateway and DNS.

 

If you have one, you could also try connecting a Smartphone and see if this works.

 

It does sound like some form of security, possibly MAC address, but normally you wouldn't even get an IP.

Posted (edited)

Hi.

I did record these yesterday (Below) .

I do not have a Smartphone !. The landlady said others connect ok except one person last year.

 

$ iwconfig

lo no wireless extensions.

 

eth0 no wireless extensions.

 

wlan0     IEEE 802.11bgn  ESSID:"Staff_Public" 
         Mode:Managed  Frequency:2.412 GHz  Access Point: 00:22:3F:33:1B:96   
         Bit Rate=54 Mb/s   Tx-Power=17 dBm   
         Retry  long limit:7   RTS thr:off   Fragment thr:off
         Power Management:on
         Link Quality=49/70  Signal level=-61 dBm 
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:34   Missed beacon:0

[/code]

$ ifconfig

eth0 Link encap:Ethernet HWaddr 00:1F:16:A9:AA:4B

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Interrupt:16

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:475 errors:0 dropped:0 overruns:0 frame:0

TX packets:475 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:40358 (39.4 KiB) TX bytes:40358 (39.4 KiB)

 

wlan0 Link encap:Ethernet HWaddr 00:24:2C:A2:73:7B

inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::224:2cff:fea2:737b/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:132 errors:0 dropped:0 overruns:0 frame:0

TX packets:850 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:31190 (30.4 KiB) TX bytes:135743 (132.5 KiB)

 

$ route

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0

link-local * 255.255.0.0 U 1003 0 0 wlan0

loopback * 255.0.0.0 U 0 0 0 lo

default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

Edited by tickmike
Posted

Hello,

 

Can you ping an ip on the net, say 8.8.8.8?

 

If you can, try adding these lines into /etc/resolv.conf

 

nameserver 192.168.1.1

nameserver 8.8.8.8

Posted (edited)
Hello,

 

Can you ping an ip on the net, say 8.8.8.8?

 

If you can, try adding these lines into /etc/resolv.conf

 

nameserver 192.168.1.1

nameserver 8.8.8.8

 

I could Not ping anything past the the Router, I'm at home now but will try your idea tomorrow .

 

Edit.. Re.."/etc/resolv.conf" It says do not edit this file it will be over ridden !. Is it ok to edit that file for a test ?.

Edited by tickmike
Posted
TBH it sounds like the router has blocked outbound access from the IP you had for some reason? I see this occasioanlly on Watchguard Firewall/Wireless boxes. Normally a restart of the router fixes the issue but i doubt the issue is with the laptop if it will connect at home.
Posted

What if I try putting my ISP's (Eclipse ISP at home) DNS servers in on the wLan set up page and trying that tomorrow ?.

Will that work on another ISP ?

Posted

Google's or OpenDNS' DNS servers would be better. I wouldn't bother with your ISPs.

 

[b]Google[/b]
8.8.8.8
8.8.4.4

[b]OpenDNS[/b]
208.67.222.222
208.67.220.220

Posted
how do I stop them?

Click Edit Post then Go Advanced, highlight the text you don't want to have smilies in and then click the CODE button (hash symbol). :)

 

http://i.imgur.com/jEnKS.png

Posted (edited)
Click Edit Post then Go Advanced, highlight the text you don't want to have smilies in and then click the CODE button (hash symbol). :)

 

http://i.imgur.com/jEnKS.png

 

I give up , i have a box now !.

Edited by tickmike
Posted (edited)

Update.

 

AM... Tried all above but still no internet connection, I'm going to a different location next to try there.

Also tried running a Live CD 'PCLinuxOS 2012.02 KDE' just the same results.

I did ask the pub landlady if she would re-boot her router but did not want to do that because of the tills.

 

 

PM ... I went to a public library and to a friends house to test wifi on laptop both connected with no problems but still would not connect at the pub.

Edited by tickmike
Posted
Chances are depending on what system the pub uses it could have something like a Captive Portal setup or MAC filtering.... You could ask them to allow the MAC on the router and see if it connects then.
Posted

It does sound like some form of MAC address filtering like I mentioned earlier, but it still doesn't explain why other devices can connect.

 

I wonder if it's anything to do with the encryption type or the channel the router is broadcasting on. Channel 13 can be problematic for some devices in Europe, hence it's recommended to stick to 1, 6 or 11 normally.

 

Channel 13's there, as many WAPs or routers are manufactured far far away from here and because they're designed for different markets, we end up with a one router fits all approach.

Posted

I'm not sure if the landlord has been trying to set up the router himself because they had a massive bill because one of there guests in the B&B downloaded a load of illegal stuff and the police have been involved !.

I will suggest they get a 'smoothwall box' so it can be locked down more.

Posted
no need for a smoothwall box necessarily... pfsense will do captive portal for free and has much of the same features.

Yes I agree but with the money they have they can afford to get something ready made, i'm not getting involved.

Posted (edited)
Hi Ben, how do I stop them. ?

 

Not that it helps with your problem or original question but you could copy and paste it into a text file, save the text file, attach the the text file and you shouldn't get any smileys that way :)

 

Also I would try and get it working at or on her uni wireless. If there are any issues then at least there will be an IT Department of some description and may just be a case of passing the mac address to them to allow the laptop on there system or something to that effect ??

 

Then at least you know it will work with the Uni wireless system and won't have to spend more time trying to get it to work on the pubs wireless system ?

Edited by mac_shinobi
Posted
Not that it helps with your problem or original question but you could copy and paste it into a text file, save the text file, attach the the text file and you shouldn't get any smileys that way :)

 

Also I would try and get it working at or on her uni wireless. If there are any issues then at least there will be an IT Department of some description and may just be a case of passing the mac address to them to allow the laptop on there system or something to that effect ??

 

Then at least you know it will work with the Uni wireless system and won't have to spend more time trying to get it to work on the pubs wireless system ?

 

Thanks for that, I had been in touch with the uni's IT manager when she was offered a place at that uni and with us going on a visit yesterday I wanted to get it all working before we went so I could do a live test. but it did not work out that way !(thanks to the problems with the pub).

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...