Connecting to a hidden network

Please report any bug found here

Connecting to a hidden network

Postby Tinitus » 07 Oct 2015, 19:50

Hi,

for security reasons I decided I do not want my wifi network to broadcast, that it is running. Since then I am not able to connect to my Odroid C1 anymore (via the network profile in /etc/netctl). Changed the setting of the router and bang got a connection again. Is there a way in which I can connect to a hidden network (with a static ip address)?

Best Regards

Uwe
Tinitus
 
Posts: 79
Joined: 20 Mar 2015, 20:53

Re: Connecting to a hidden network

Postby hondagx35 » 07 Oct 2015, 21:26

Hi Uwe,

Is there a way in which I can connect to a hidden network (with a static ip address)?

For all devices running the dev version from RuneAudio (the ODROID does this by default) it should work.

- connect via ethernet to your device
- goto "MENU->Network"
- select your wifi card
- wait until the scan has finished
- select "Show" under "Wi-Fi stored profiles"
- select "+ ADD NEW PROFILE"
- enter your settings (DHCP or STATIC is also available)
- save the profile
- wait until the scan has finished

Your device now should have established a connection to your hidden SSID.

- remove your cable

The profile should look like this:
Code: Select all
Description='wlan0 connection'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
    'ssid="NETGEAR"'
    'scan_ssid=1'
    'psk="xxxxxxxxxxxxxxx"'
    'key_mgmt=WPA-PSK'
    'proto=WPA'
    'group=TKIP'
    'pairwise=TKIP'
    'priority=3'
)

Note the entry ''scan_ssid=1'.

Frank

wifi-hidden-ssid-1.jpg
wifi-hidden-ssid-1.jpg (90.34 KiB) Viewed 2193 times

wifi-hidden-ssid-2.jpg
wifi-hidden-ssid-2.jpg (109.57 KiB) Viewed 2193 times

wifi-hidden-ssid-3.jpg
wifi-hidden-ssid-3.jpg (70.42 KiB) Viewed 2193 times

wifi-hidden-ssid-4.jpg
wifi-hidden-ssid-4.jpg (105.31 KiB) Viewed 2193 times
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Connecting to a hidden network

Postby Tinitus » 07 Oct 2015, 21:33

Hi Frank,

quite long time no see (rather my fault). Your fast service is very much appreciated. Will try tomorrow.

So long

Uwe
Tinitus
 
Posts: 79
Joined: 20 Mar 2015, 20:53

Re: Connecting to a hidden network

Postby Tinitus » 08 Oct 2015, 20:24

Hi Frank,

I am afraid but it does not work neither with dchp nor with static ip address. With dchp it is not possible to save the wlan0 profile with static it is possible to save the profile (I have no clue whether the numbers for primary and secondary DNS are correct (it is 8.8.8.8 and 2001:4850:4860:8844). First it complains that the secondary number is not correct, if I type something else it auto corrects to the initial setting. I was also surprised that netmask is 255.255.0.0 (I thought it should be 255.255.255.0).
May it be that the reason is that I am still on the first image you released unofficially. I have not changed to the official one because it does not allow the brutefir pipe-out.

Best Regards

Uwe
Tinitus
 
Posts: 79
Joined: 20 Mar 2015, 20:53

Re: Connecting to a hidden network

Postby hondagx35 » 09 Oct 2015, 12:07

Hi Uwe,

i have absolutely no idea what you are doing.
I tested this on multiple devices with different networks and it worked each time.

I have no clue whether the numbers for primary and secondary DNS are correct (it is 8.8.8.8 and 2001:4850:4860:8844).

"8.8.8.8" is googles DNS server and "2001:4850:4860:8844" is its ipv6 equivalent.
Normally it's sufficient to use your routers ip as primary DNS, but using googles Domain Name System (DNS) may speed up your internet connection.
I was also surprised that netmask is 255.255.0.0 (I thought it should be 255.255.255.0).

Depending on your local network, "255.255.0.0" could be the right netmask.

All these numbers are from a previous attempt to connect with DHCP.

With dchp it is not possible to save the wlan0 profile ...

What do you mean with "not possible"? Is there a error message?

Did you delete the profile for your visible SSID first? If not you should do so.
Did you follow my howto from the last post step by step?




Your wifi works with a visible SSID, correct?
If so, please setup a profile on rune with this visible SSID.
Next get access to the console and find / edit this profile.
All you have to do is to add the line:
Code: Select all
 'scan_ssid=1'

to the WPAConfigSection.


Code: Select all
    Description='wlan0 connection'
    Interface=wlan0
    Connection=wireless
    Security=wpa-configsection
    IP=dhcp
    WPAConfigSection=(
        'ssid="NETGEAR"'
        'scan_ssid=1'
        'psk="xxxxxxxxxxxxxxx"'
        'key_mgmt=WPA-PSK'
        'proto=WPA'
        'group=TKIP'
        'pairwise=TKIP'
        'priority=3'
    )


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Connecting to a hidden network

Postby Tinitus » 14 Oct 2015, 21:57

Hi Frank,

Thanks for your reply. I followed your cookbook. I think one of the problems was, that the default values given by the WebUI did not work in my case. Moreover the WebUI asked for more information than I think is necessary for a Alan profile. I tinkered around a little but nothing really worked. I then found out that the values for group and pairwise differed from my original settings when I used the WebUI to set up the connection with a hidden network. I then did exactly what you proposed. I reverted the profile to the last version which had worked and inserted the scan line thanks to your hint in your first reply (accessing through console). It worked, I just did not have the time to post my solution. Funny that I was more successful using the console than the WebUI. Thanks for your help.

Regards

Uwe
Tinitus
 
Posts: 79
Joined: 20 Mar 2015, 20:53

support RuneAudio Donate with PayPal


Return to Bug report

Who is online

Users browsing this forum: No registered users and 1 guest
cron