MAC Filtering (layer 2 address filtering) refers to a security access control methodology whereby the 48-bit address assigned to each network card is used to determine access to the network. Iptables, pf, and IPFW can block a certain MAC address on a network, just like an IP. One can deny or allow from MAC address like 00:1e:2a:47:42:8d using open source firewalls. MAC address filtering is often used to secure LAN or wireless network / devices. Is this technique effective?
The US authorities have charged 11 people in connection with the theft of credit-card details in the country’s largest-ever identity theft case. The cracking was done using nothing but wireless routers and by driving around neighbourhoods and cracking into wireless equipment. I’ve already written about few basic tips about securing wifi router.
Describes some common wireless security tips for Windows, Linux, Game console and PDAs for home wifi network.
I’ve already written about configuring and using DLink wireless card with the help of RT61 driver. However, few readers like to know more about Wi-Fi Protected Access (WPA and WPA2) secure wireless configurations.
Step # 1: Configure Router / AP with WPA2 Security Mode
First you need to configure WPA2 security mode on the access point. All devices on your network must use the same security mode in order to communicate. Open router configuration by visiting default IP https://192.168.1.1/ and setup
- Security Mode: WPA2 Personal
- WPA2 Algorithm: You may choose from AES or TKIP+AES. Choose TKIP+AES if you have both WPA and WPA2 devices on your network.
- WPA2 Pre-Shared Key: Choose a unique key to authenticate with other devices on your network. The Pre-Shared Key must be between 8 and 63 characters in length. You can generate unique key by visiting this webpage. You can also use standard UNIX / Linux utilities to generates true random passwords (key) by using the /dev/random feature of Linux.
- Group Key Renewal: This settings determines how often your group key changes.
(Fig. 01: Configure WPA2 for your router / access point)
Step # 2: Configure RT61 Wireless Card
Open /etc/network/interfaces file and make changes as follows:
$ sudo vi /etc/network/interfaces
iface ra0 inet dhcp
pre-up iwconfig ra0 mode managed
pre-up ifconfig ra0 up
pre-up iwconfig ra0 essid nixcraft
pre-up iwpriv ra0 set AuthMode=WPA2PSK
pre-up iwpriv ra0 set WPAPSK='|zdUkK(!X)[email protected][email protected][email protected]%OZyyDVV:Xwp8UmwLFNS^7=A+'
pre-up iwpriv ra0 set EncrypType=AES
Save and close the file. Make sure you replace device name (ra0), essid and WPAPSK with actual configuration parameters. Restart the networking:
$ sudo /etc/init.d/networking restart
Other simple security suggestion
- Change the default admin password on the access point / router.
- If possible turn off administration feature on the access point for wireless interface
- Set up an access control list by Mac address of all devices you want to associate with the access point.
Please note that above instructions are only tested using RT61 driver under Ubuntu Linux. However, instructions should work with any other Linux distos and drivers with minor or minimum changes.
There is a program called Ping Tunnel to send TCP traffic over ICMP. From the project home page:
Ptunnel is an application that allows you to reliably tunnel TCP connections to a remote host using ICMP echo request and reply packets, commonly known as ping requests and replies. At first glance, this might seem like a rather useless thing to do, but it can actually come in handy in some cases. The following example illustrates the main motivation in creating ptunnel:
Setting: You’re on the go, and stumble across an open wireless network. The network gives you an IP address, but won’t let you send TCP or UDP packets out to the rest of the internet, for instance to check your mail. What to do? By chance, you discover that the network will allow you to ping any computer on the rest of the internet. With ptunnel, you can utilize this feature to check your mail, or do other things that require TCP.
Absolutely fantastic — it Just Works. Download ping tunnel here.
Cracking 104 bit WEP (Wired Equivalent Privacy) itself is old news. However new *cracking speed* is mind blowing.
According to new research it takes less than one minute to break a common 802.11 104-bit WEP encryption:
WEP is a protocol for securing wireless LAN. WEP therefore uses the RC4 stream to encrypt data which is transmitted over the air, using usually a single secret key (called the root key or WEP key) of a length of 40 or 104 bit.
We were able to extend Klein’s attack and optimize it for usage against WEP. Using our version, it is possible to recover a 104 bit WEP key with probability 50% using just 40,000 captured packets. For 60,000 available data packets, the success probability is about 80% and for 85,000 data packets about 95%. Using active techniques like deauth and ARP re-injection, 40,000 packets can be captured in less than one minute under good condition. The actual computation takes about 3 seconds and 3 MB main memory on a Pentium-M 1.7 GHz and can additionally be optimized for devices with slower CPUs. The same attack can be used for 40 bit keys too with an even higher success probability.
Currently at home Iâ€™m using WPA2 personal. However, at work place we have disabled wireless access a year ago (except cafeteria area).
A paper (PDF) describing the details and methods we used in our attack is available on the IACR ePrint server. A proof-of-concept of attack in a tool called aircrack-ptw (source) is available. It should be used together with the aircrack-ng toolsuite.
How do I avoid this kind of problems?
You can switch to WPA2 to avoid this attack :) Make sure support for WPA2 is available through your Linux driver as well as the userspace utility called wpa_supplicant.
You can also use a Linux GUI tool called NetworkManager to configure access to protected wireless networks.
This news just comes in. I need to install for this AR5005UG chipset based card.
From the article, “Two new wireless drivers have been comitted recently. You can grab the newest snapshot (9/16/06) and test them out if you have one of these cards.
uath(4), a driver for Atheros USB2.0 AR5005UG/AR5005UX chipsets. Based on a black-box analysis of the Windows binary driver.
pgt(4), a driver for Connexant/Intersil GT-series devices which can support the Full-Mac firmwares, using the ISL3877, ISL3880, and ISL3890 chips.”
- uath – Atheros USB IEEE 802.11a/b/g wireless network device
- pgt – Connexant/Intersil Prism GT Full-MAC IEEE 802.11a/b/g wireless net-
Found via The OpenBSD Community site