Connect router encrypted with WPA / WPA2

Connect router encrypted with WPA WPA2A few days ago we were discussing how to connect to a router that uses the WEP encryption protocol to safeguard the security of our Internet connection.

As I commented at the time the WEP protocol is not secure, being possible to get the key used in less than 10 minutes.

That is why I want to tell you how to configure the Connection using the protocols WPA Y WPA2

The procedure to configure the connection is as simple as that of WEP (I recommend that you follow the steps indicated in it) except that you have to add some additional data in the configuration file / etc / network / interfaces.

car it
iface lo inet loopback

iface eth1 inet dhcp
wpa-ap-scan 1
wpa-pairwise CCMP
wpa-group CCMP
wpa-psk KEY_RED
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid NETWORK_NAME

auto eth1

Where shall we replace

  1. KEY_RED by the key used by the wifi router
  2. NETWORK_NAME for the network identifier

East example supposes that the network is configured by DHCP so it is not necessary to indicate IP adress neither DNS; otherwise the content of the file would be as follows

car it
iface lo inet loopback

iface eth1 inet static
wpa-ap-scan 1
wpa-pairwise CCMP
wpa-group CCMP
wpa-psk KEY_RED
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid NETWORK_NAME

address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

dns-nameservers 195.235.113.3 195.235.96.90

auto eth1

where you should change the values marked in green for those that correspond to your net

NOTE: I have marked in blue the word static so that the change does not pass you

In order to activate connection newly configured (no need to restart the computer) you only have to launch from the terminal the following commands

sudo killall wpa_supplicant
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start

Deja un comentario