Difference between revisions of "Spacenet"

From Hackerspace ACKspace
Jump to: navigation, search
m (added project form, changed category)
(updated spacenet info)
Line 10: Line 10:
  
 
== Certificate ==
 
== Certificate ==
 
+
{{InfoBox
-----BEGIN CERTIFICATE-----
+
|Type=alert
MIICvDCCAaQCCQCxaXLQG5/vsTANBgkqhkiG9w0BAQUFADAgMR4wHAYDVQQDExVy
+
|Title=NOTE
YWRpdXMuYWNrc3BhY2UubG9jYWwwHhcNMTExMTIxMjAwMjI1WhcNMjExMTE4MjAw
+
|Text=We have this new certificate (since April 2015)
MjI1WjAgMR4wHAYDVQQDExVyYWRpdXMuYWNrc3BhY2UubG9jYWwwggEiMA0GCSqG
+
|Float=none
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQC0bIFcc/ChNW2WQScUimA0Rb+FqgqiBRUD
+
|Clear=none
YVp41JVG2LZG6UWorYIk6Sm3nM5ysB3DyPOi6TQVscntO7xtb9IINELjPdPNpKBW
+
|Width=30em
h44XHvxL2jlBGy1NfFIr8et7PPkU/OyeneL4Rx+eYB/X084vqw9iRQTmbrEnJP2s
+
|Background=#f7fff7
a8iWxFcUZehJ+0TFDhOj44iTfGaF6x1J1UzaEy4N3etxwRjEHF4SnsVB/WndQrVR
+
}}
gRVTfi42n5vMaXDuTt/VvcWRM07W9kuTJQecgXdik38eXFQ+bNqAWaqM3WA1y/Un
+
the certificate, as from /etc/freeradius/certs/server.pem
SNWHK4ikZdrvDjZceC6HEc7AjcXD3y2DyzkmgyZSTNyMj+YMCSd3AgMBAAEwDQYJ
+
{{ACKspaceNetCert}}
KoZIhvcNAQEFBQADggEBAGIfSDy1ZbI+ULiZLDbOxUzI6jdSvwVk2ZdYj4WHdCNc
 
rOoRTvUr1UQMFdBwjmvIesQDXWNSRpb5FQxRG7XWBEH5EbEHTPrgM3tB41m0/L5/
 
S8lguvTWyDLiUA3du7HSke5RI4YRjBwFyjDB4HmL3QUmbx5O9EZ6bKDQZ8hWx4of
 
19Rz/ESV8j8K57LyX09EIqNap0h9H4D99KFTuITRZCQCkz5QX//JQvvCI9+SOSme
 
IT6xYVaF+vdaRSOZR7YJqt4ILAQR8hOUr8dBoHP57lOoC/cWkZtsS5YnjF1PvKbK
 
S49zoEg+BUz+iIl2vQgH/+LGQeJG3XaotKes+QBwfoM=
 
-----END CERTIFICATE-----
 
  
 
== Connecting ==
 
== Connecting ==
Line 34: Line 27:
 
=== Linux ===
 
=== Linux ===
  
Copy & Paste the certificate above into a file and name it ackspace.pem  
+
Copy & Paste the certificate above into a file and name it ackspace.pem  
  
 
Put it in your own home folder.  
 
Put it in your own home folder.  
  
Linux WIFI settings :
+
Linux WIFI settings:
* Wireless security : WPA & WPA2 Enterprise
+
 
* Authentication : Protected EAP (PEAP)
+
{| class="wikitable"
* Anonymous identity : <leeg>
+
! scope="col" | field
* CA certificate : ackspace.pem
+
! scope="col" | setting
* PEAP version : automatic Inner
+
|-
* Authentication : MSCHAPv2
+
| Network name || spacenet and/or spacenet_5GHz
* Username : <user>'''@ackspace.nl'''
+
|-
* Password : <password>
+
| Wireless security || WPA & WPA2 Enterprise
 +
|-
 +
| Authentication || Tunneled TLS (TTLS), or PEAP
 +
|-
 +
| Anonymous identity || anonymous@ackspace.nl
 +
|-
 +
| CA certificate || ackspace.pem
 +
|-
 +
| PEAP version (optional) || automatic Inner
 +
|-
 +
| Inner authentication || PAP, or MSCHAPv2
 +
|-
 +
| Username || <user>'''@ackspace.nl'''
 +
|-
 +
| Password || you should know this
 +
|}
 +
 
 +
[[Image:linux spacenet connect dialog.png|400px]]
  
 
=== Windows 7 ===
 
=== Windows 7 ===
Line 52: Line 62:
 
<Da_Syntax>
 
<Da_Syntax>
  
Windows 7 uses ntlm v2 and will fail trying to authenticate with the router.
+
:Windows 7 uses ntlm v2 and will fail trying to authenticate with the router.
 
+
:In order to fix this run (win+'r') "secpol.msc" and do the following:
In order to fix this run (win+'r') "secpol.msc" and do the following:
+
:Open "Local Policies" > "Security Options" > "Network Security: LAN Manager authentication level"
 
+
:and select "Send LM & NTLM - use NTLMv2 session security if negotiated" from the dropdown box
Open "Local Policies" > "Security Options" > "Network Security: LAN Manager authentication level"
+
:Press Ok, reboot ... profit!!
 
 
and select "Send LM & NTLM - use NTLMv2 session security if negotiated" from the dropdown box
 
 
 
Press Ok, reboot ... profit!!
 
  
 
</Da_Syntax>
 
</Da_Syntax>
Line 125: Line 131:
 
If you use the hashes generator, make sure you enter your password without username or domain etc.
 
If you use the hashes generator, make sure you enter your password without username or domain etc.
  
Contact [[user:PsychiC|PsychiC]] or [[user:Vicarious|Vicarious]] if you'd wish to register.
+
Contact [[user:PsychiC|PsychiC]], [[user:Vicarious|Vicarious]] or [[User:Xopr|Xopr]] if you'd wish to register.
 
[[Category:Information]]
 
[[Category:Information]]
  
== Info voor psy ==
+
== Info for freeradius admin ==
 +
 
 +
edit /etc/freeradius/users
 +
Add either one of lines
 +
:noobuser Cleartext-Password := "foobar123"
 +
:leetuser NT-Password := "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
 +
 
  
/etc/freeradius/users
 
  
 
www.insidepro.com/hashes.php { WARNING PASSWORD IS SENT IN PLAINTEXT}
 
www.insidepro.com/hashes.php { WARNING PASSWORD IS SENT IN PLAINTEXT}
Line 146: Line 157:
  
 
== Available SSID's ==
 
== Available SSID's ==
* spacenet
+
{| class="wikitable"
** Spacenet
+
! scope="col" | SSID
* spacenet_5GHz
+
! scope="col" | description
** Spacenet
+
|-
* ackspacewifi
+
| spacenet || rowspan="2" | spacenet
** Needs WPA key (nospacenet)
+
|-
 +
| spacenet_5GHz
 +
|-
 +
| ackspacewifi || Needs WPA key (nospacenet)
 +
|}

Revision as of 22:23, 23 April 2015

Project: Spacenet
Featured:
State Completed
Members
GitHub No GitHub project defined. Add your project here.
Description Connect to an encrypted accesspoint using your own credentials in every hackerspace
Picture
No project picture! Fill in form Picture or Upload a jpeg here


We haz spacenet.

Certificate

NOTE
We have this new certificate (since April 2015)

the certificate, as from /etc/freeradius/certs/server.pem

-----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JA==
-----END CERTIFICATE-----

Connecting

Go to the chapter of your operating system below.

Linux

Copy & Paste the certificate above into a file and name it ackspace.pem

Put it in your own home folder.

Linux WIFI settings:

field setting
Network name spacenet and/or spacenet_5GHz
Wireless security WPA & WPA2 Enterprise
Authentication Tunneled TLS (TTLS), or PEAP
Anonymous identity anonymous@ackspace.nl
CA certificate ackspace.pem
PEAP version (optional) automatic Inner
Inner authentication PAP, or MSCHAPv2
Username <user>@ackspace.nl
Password you should know this

Linux spacenet connect dialog.png

Windows 7

<Da_Syntax>

Windows 7 uses ntlm v2 and will fail trying to authenticate with the router.
In order to fix this run (win+'r') "secpol.msc" and do the following:
Open "Local Policies" > "Security Options" > "Network Security: LAN Manager authentication level"
and select "Send LM & NTLM - use NTLMv2 session security if negotiated" from the dropdown box
Press Ok, reboot ... profit!!

</Da_Syntax>


Windows 7 will either support EAP-MSCHAPv2 (username/password) or EAP-TLS (certificates) out-of-the-box.

You should manually create a wireless network under "Manage wireless networks".

Depending on the configuration of your home-RADIUS you should either choose EAP-MSCHAPv2 or EAP-TLS.

EAP-MSCHAPv2

  • SSID: spacenet
  • Security type: WPA2-Enterprise
  • Encryption type: AES
  • Authentication: Microsoft: Protected EAP (PEAP)


DO NOT USE CERTIFICATE WITH WINDOWS.

DO NOT ENTER RADIUS NAME OR IP.


  • Validate server certificate (good practice)
    • Connect to these servers: common-name of the certificate installed on your RADIUS server
    • Trusted root certification authorities: select the CA which signed the certificate installed on your RADIUS server
  • Authentication method: secured passwords (EAP-MSCHAP v2)
    • Do NOT use windows logon name and password (will probably not work for you)
  • Use user authentication
    • Save credentials: user@ackspace.nl with your password


Windows mschap 1.png

Windows mschap 2.png

Windows mschap 3.png

Windows mschap 4.png

Windows mschap 5.png

EAP-TLS

  • Make sure your device has a client certificate issued by your PKI
  • SSID: spacenet
  • Security type: WPA2-Enterprise
  • Encryption type: AES
  • Authentication: Microsoft: Smart Card or other certificate
  • Validate server certificate (good practice)
    • Connect to these servers: common-name of the certificate installed on your RADIUS server
    • Trusted root certification authorities: select the CA which signed the certificate installed on your RADIUS server

Windows tls 1.png

Windows tls 2.png

iOS

just use your username and password an accept the certificate.

How to register

To use Spacenet, ACKspace needs to store your plain text username (the part before @ackspace.nl) and an NTLM hash of your password you wish to use. If you use the hashes generator, make sure you enter your password without username or domain etc.

Contact PsychiC, Vicarious or Xopr if you'd wish to register.

Info for freeradius admin

edit /etc/freeradius/users Add either one of lines

noobuser Cleartext-Password := "foobar123"
leetuser NT-Password := "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"


www.insidepro.com/hashes.php { WARNING PASSWORD IS SENT IN PLAINTEXT}

NTLM: Python script (source https://code.google.com/p/py-smbpasswd/) [apt-get install | yum install] python-smbpasswd

 import smbpasswd
 passwd = '$password'
 print 'LANMAN hash is', smbpasswd.lmhash(passwd)               
 print 'NTLM hash is', smbpasswd.nthash(passwd)
 print 'both hashes at once = %s:%s (lm:nt)' % smbpasswd.hash(passwd)


Available SSID's

SSID description
spacenet spacenet
spacenet_5GHz
ackspacewifi Needs WPA key (nospacenet)