G0Ku5
Posts: 47
Joined: Sun Sep 01, 2013 12:38 pm

Connecting to open network

Sat Sep 21, 2013 8:23 pm

I wanted Connecting to open network,

and I'm using:

Code: Select all

auto wlan1
allow-hotplug wlan1
iface wlan1 inet dhcp
wireless-essid NETWORK_NAME
but I can not connect, what am I doing wrong :?:

stewl
Posts: 2
Joined: Sat Sep 21, 2013 9:21 pm

Re: Connecting to open network

Sat Sep 21, 2013 9:36 pm

Just joined to get an answer to the same issue.

My work laptop will only connect directly through VPN to work. So when I am in a hotel or anywhere that wants me to log I or accept terms and conditions I cant use the wireless connection. My project is an RPi with two network cards, one connected to the hotel/whatever wireless service and the other broadcasting as a hotspot that I connect the work computer to. Route between the two wireless connections, power the RPi from the 1amp USB connection on the laptop PSU and I have a very compact solution.

Got it all working on my home wireless and any wireless that needs a password but hotels don't and I cant find the setting to put into Interfaces that lets me connect to a security free WiFi.
Cant use wpa_supplicant as that really messes up the routing between the two cards, would love to work out how to use it but that's a phase 2!

All help welcome.

stewl
Posts: 2
Joined: Sat Sep 21, 2013 9:21 pm

Re: Connecting to open network

Sun Sep 22, 2013 6:37 pm

Found the answer. You have to use the wireless command rather than wpa. The following works and I can now use the RPi to route my work PC connected to the RPi hotspot to the hotel network. Could also be used to connect multiple devices to a single wireless network.
  • allow-hotplug wlan1
    iface wlan1 inet dhcp
    wireless-essid <SSID>
    wireless-mode managed

Return to “Networking and servers”