WLAN: Unterschied zwischen den Versionen
Koomi (Diskussion | Beiträge) (→wpa_supplicant: Hash mit in Config statt Cert angeben) |
Xoquox (Diskussion | Beiträge) |
||
Zeile 55: | Zeile 55: | ||
'''UNTESTED!''' | '''UNTESTED!''' | ||
+ | <syntaxhighlight line enclose="div"> | ||
+ | [service_backspace] | ||
+ | Type=wifi | ||
+ | Name="backspace 802.1x" | ||
+ | EAP=ttls | ||
+ | Phase2=PAP | ||
+ | Identity=USERNAME | ||
+ | Passphrase=YOUR_PASSWORD | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | '''Sailfish OS''' | ||
<syntaxhighlight line enclose="div"> | <syntaxhighlight line enclose="div"> | ||
[service_backspace] | [service_backspace] |
Version vom 20. Februar 2016, 21:40 Uhr
We're moving our wifi infrastructure to an authenticated and encrypted ssid. At the moment it's hard to change our internal wifi password, because our door system depends on it. If you are not in our internal wifi you can't operate the door.
This is one reason why we want to use 802.1x with EAP-TTLS. Every member has it's own username/password combination which can be reset or changed through a webinterface. If a member quits the space, we just have to deactivate the account and the internal access is gone.
The other reason is: Every member has its own encrypted channel to our access points. In addition the member has the possibility to check, if the SSID can be trusted (avoid roque APs) with an ssl certificate
certificate
To check if you're connecting to the correct SSID, you can and should add the ssl certificate to your connection setting. You can download the SSL Certificate from our Server.
Warning: The certificate expires every two years. You can also check against the StartSSL G2 certificate which is valid much longer.
netctl
Save config as /etc/netctl/$interfacename-backspace_8021x. You have to restart netctl-auto (e.g. systemctl restart netctl-auto@$interface)
Description='backspace WPA2 802.1X'
Interface=wlp3s0
Connection=wireless
Security=wpa-configsection
IP=dhcp
ESSID="backspace 802.1x"
WPAConfigSection=(
'ssid="backspace 802.1x"'
'proto=RSN WPA'
'key_mgmt=WPA-EAP'
'eap=TTLS'
'identity="USERNAME"'
'password="YOUR_PASSWORD"'
'phase2="auth=PAP"'
)
You can enable SSL certificate checking with 'ca_cert="/path/to/your/hackerspace-bamberg.de.crt"'. For the certificate look at Technische_Infrastruktur/WLAN#Certificate.
wpa_supplicant
Add to /etc/wpa_supplicant/wpa_supplicant.conf:
network={
ssid="backspace 802.1x"
key_mgmt=WPA-EAP
eap=TTLS
identity="USERNAME"
password="YOUR_PASSWORD"
phase2="auth=PAP"
ca_cert="hash://server/sha256/53e6ab9cafbabb671ce2a68783eb707b660796cef230cc8755183fc7bc7f5c67"
}
connman
UNTESTED!
[service_backspace]
Type=wifi
Name="backspace 802.1x"
EAP=ttls
Phase2=PAP
Identity=USERNAME
Passphrase=YOUR_PASSWORD
Sailfish OS
[service_backspace]
Type=wifi
Name="backspace 802.1x"
EAP=ttls
Phase2=PAP
Identity=USERNAME
Passphrase=YOUR_PASSWORD
wicd
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="backspace 802.1x"
scan_ssid=$_SCAN
identity="USERNAME"
password="YOUR_PASSWORD"
proto=WPA2
key_mgmt=WPA-EAP
group=CCMP
pairwise=CCMP
eap=TTLS
anonymous_identity="$_ANONYMOUS_IDENTITY"
phase2="auth=PAP"
}
You can enable SSL certificate checking with ca_cert="/path/to/the/hackerspace-bamberg.de.crt". For the certificate look at Technische_Infrastruktur/WLAN#Certificate.
Android
Linux - NetworkManager
Ignore the certificate warning as long as we don't provide a certificate.
Mac OS X
The following procedure has been tested using Mac OS 10.11 El Capitan.
Earlier versions of OS X offered to specify the authentication protocol when connecting to a wireless network. However, in newer versions you'll have to install a configuration profile in order to connect to our network using 802.1x with EAP-TTLS/PAP. This configuration profile contains our certificate and all required settings.
- Backspace.mobileconfig
MD5: 7ca7ff1eb4f0fda8039dc079430c870e
SHA1: c395a6e090ed21e2c346b5784f2a4ee2d34bf290
Simply download the file to your computer. You can check its integrity using the provided checksums. After opening the file, confirm the installation.
Please note that the configuration profile is not signed. Therefore you'll also have to confirm the following warning.
When asked for a username and password, enter your Backspace credentials.
Confirm the installation using your OS X account credentials:
You should now see the 'Backspace' profile in the profiles dialog:
After the profile has been installed, connect to the 'backspace 802.1x' network:
You can verify your connection setup by looking for an IP address in the network configuration dialog. The authentication status next to '802.1X' should read 'Authenticated by EAP-TTLS':
iOS
Download the configuration profile to your iOS device and install it. When asked for a username and password, enter your Backspace credentials. After that, you should be able to connect to the 'backspace 802.1x' network.
Windows 7
Windows 7 does not support EAP-TTLS / PAP from scratch. The same is true for eduroam networks and this is why there are a lot of instructions from universities which use SecureW2 as an additional Software to enable EAP-TTLS:
TODO: Own instructions and screenshots
Windows 8 and above
Since Windows 8 the system itself is capable of EAP-TTLS.
TODO: Someone with windows should do some screenshots.