Skip to content

Change SSID, Channel, or Encryption

Helno edited this page Oct 3, 2019 · 19 revisions

As of Stratux version 1.5b2 the SSID, Channel and encryption are configurable via the settings tab on the web interface (192.168.10.1). If you enable encryption be sure to make the password memorable as there is no easy way to retrieve it!

This script will allow you to change the SSID of your Stratux, Change the WiFi channel, and enable or disable WiFi security.

If you want to simply enable security on your default stratux network, follow these steps.

Secure your Stratux

  1. SSH into your Stratux
  2. type sudo su -
  3. type secure
  4. READ THE SCREEN
  1. DON'T COMPLAIN IF YOU DON'T KNOW THE PASSWORD! YOU SHOULD HAVE READ THE SCREEN!

Open your Stratux

  1. SSH into your Stratux
  2. type sudo su -
  3. type open
  4. READ THE SCREEN

Full Hostapd Manager USAGE details

Typing hostapd_manager.sh will run the script and display the help file but not make any changes to your Stratux.

Help documentation for hostapd_manager.sh.

Stratux HOSTAPD Settings

Help documentation for hostapd_manager.sh.

Basic usage: hostapd_manager.sh -s ssid -c chan -p pass

The following command line switches are recognized.
-s  --Sets the SSID to ssid. "-s stratux"
-c  --Sets the channel to chan. "-c 1"
-o  --Turns off encryption and sets network to open. Cannot be used with -e or -p.
-e  --Turns on encryption with passphrase SquawkDirtyToMe!. Cannot be used with -o or -p
-p  --Turns on encryption with your chosen passphrase pass. 8-63 Printable Characters(ascii 32-126). Cannot be used with -o or -e. "-p password!"
-q  --Run silently. Still a work in progress, but quieter.
-h  --Displays this help message. No further functions are performed.

Example: hostapd_manager.sh -s Stratux-N3558D -c 5 -p SquawkDirty!

Examples:

hostapd_manager.sh -s stratux-N3558D -This will set the SSID(WiFi name) of your Stratux to "stratux-N3558D"

hostapd_manager.sh -c 6 -This will set the wireless channel to 6. Channels must be from 1 to 13

hostapd_manager.sh -e -This will turn on WiFi Security and set the password to "SquawkDirtyToMe!". Passwords must be from 8 to 63 characters

hostapd_manager.sh -p SquawkDirty! -This will turn on WiFi Security and set the password to "SquawkDirty!". Passwords must be from 8 to 63 characters

hostapd_manager.sh -o -This will remove the WiFi security.

You can also combine options like this:

hostapd_manager.sh -s stratux-N3558D -e -c 6 -SSID, Security, and Channel will all be changed.

hostapd_manager.sh -s stratux -o - This will set the SSID to stratux and remove Security

The script will ask you to confirm the settings you choose and restart all the required services.

If you are connected to your Stratux via SSH through 192.168.10.1 then you will be disconnected, as the wifi needs to be restarted.

Here is a link to a Reddit post which might help answer a few questions if you're stuck.Trying to create the SSID, channel change sctipt


If you change the SSID of your stratux it might need to be changed in your EFB apps also!!!!


Info on WiFi Channels:

More info on wifi channels

Choosing the best WIFI channel