-
Notifications
You must be signed in to change notification settings - Fork 6
Customizing
After initial setup, your config is saved to:
- Cross-platform short-hand path:
-
~/.nettest
or$HOME/.nettest
-
- Linux:
/home/myuser/.nettest
- Mac/Windows
/Users/myuser/.nettest
To start fresh and re-generate all of your caches and config, simply delete the
~/.nettest
directory
This config file is originally copied from your installations config-template.conf
- in an enterprise scenario, you'll modify config-template.conf
to suit your organization, before deployment.
In this directory, you'll see config.conf, modify any option to suit your environment.
- INTERNAL_CHECK=print.example.com
- ORGNAME=Example
- NAT_IP=9.9.9.9.
- NS1=172.16.4.1
- NS2=172.16.4.2
- ORG_DNS=example.com
- AP_LIST=http://arrays.example.com/arrays.txt
- A text file hosted on your intranet that your client machines can access. Modify the list and name your access points alongside their MAC, like in the linked example
- MAC_LIST=http://arrays.example.com/macs.txt
- A locally-hosted copy (on your intranet) of the MAC list from standards-oui.ieee.org
The above options are not used unless in an enterprise scenario.
-
LATENCY_DEST=http://status.example.com/
- Some ISPs offer latency test domains for you to use, if you have one available to you, enter it here. Something like
http://status.[someisp].com
- Some ISPs offer latency test domains for you to use, if you have one available to you, enter it here. Something like
-
SKIP_PRELIM=1
- Auto-run a test on first run, probably not used outside of enterprise scenario.
-
CHECK1=9.9.9.9
- A reliable IP-based host to ping once to see if the user can reach the internet.
-
CHECK2=example.com
- A reliable FQDN to ping once to see if the user can reach the internet with DNS.
-
IFCFG=/sbin/ifconfig
- If the ifconfig command resides elsewhere, specify such here. In the application, its triggered by the
$IFCFG
variable.
- If the ifconfig command resides elsewhere, specify such here. In the application, its triggered by the
-
PINGPROTOCOL=""
- See: ping: socket: Address family not supported by protocol - On Debian at least, ping defaults to ipv6 and will throw this error if you're not using ipv6 on your network.
- Leave blank/default: let your OS/ping decide
- IPv4 only:
PINGPROTOCOL="-4"
- IPv6 only:
PINGPROTOCOL="-6"
- See: ping: socket: Address family not supported by protocol - On Debian at least, ping defaults to ipv6 and will throw this error if you're not using ipv6 on your network.
-
AP_MANUFACTURER=Ubiquiti
- Expected manufacturer of the access points - will colorize a warning if a match is not met. If the manufacturer name has a space in it, use the first part of the name only. Instead of Xirrus, Inc. use Xirrus. This is obtained from the OUI list the connected router's MAC is compared to.
-
RELOAD_MENU=0
- If you want the main menu to auto-load after every test, set to
1
- If you want the main menu to auto-load after every test, set to
-
DEFAULT_TEST=
- Set a default test
-
SETUP_DONE=1
- Auto-generated; leave it alone.
-
INSTALLPATH=/home/username/wifi-network-testing/
- Install location at the time of setup. If you move it's location, notify your installation of such, here.
What the stuff in the dotfile directory is all about.
After first run, you may also find a copy of mac.cache, which is obtained from the OUI list as this information doesn't change frequently, it's not necessary to go out and check it each time you run a test; a local copy is saved for you.
Open in any text editor to view it's contents.
You will also see several text files like the following, appear:
- 308BB2
- DCA632
...and so on. These are caches of neighboring router lookups.
Open one of the files in a text editor and you'll see something like:
Cisco Systems, Inc
meaning one of your neighbors with the MAC prefix of 308BB2
are using a Cisco-made router.
As this won't change and will continually appear in your tests, subsequent tests will be faster because that lookup already has been cached.
How many and which appear can vary by your neighboring usage.
This is a backup of the file before it gets modified. Feel free to delete it.
Optionally create a symbolic link so you can easily call upon the application with an alias instead of a path, or needing to be in its directory while inside the terminal (call it from anywhere).
Symlink it, so you can run it like:
ntest
(or whatever shortcut name you'd like to use) instead of:
./nettest.sh
Change /path/to for the location where your git directory is, that way you'll always run the latest master version:
sudo ln -s /path/to/nettest.sh /usr/local/bin/ntest