Reader Steve Hawley is all too typical. His home network houses a mix of Macs and Windows PCs, an old 802.11b Linksys router connected to a cable modem, and a couple of Airport Expresses connected to sound systems around the house. He wrote to us, seeking some advice on how to configure that network so he could:
- Make the network work with both Macs and Windows clients, without letting strangers access it wirelessly (“I’ve tried to implement WEP128 security on all my devices, but when I do we lose access to the Internet”);
- Secure his network “so outsiders can’t see into” it from the Internet; and
- Remotely access files on the network—again, with security “so no random hacker can access my files while I’m away”.
His letter touched on enough common home-networking problems that we thought the solutions could help plenty of other Mac users.
Because Steve’s network has a mix of old 802.11b and newer 802.11g hardware, he should use WPA (Wi-Fi Protected Access) to protect it. An 802.11b device can be upgraded to work with WPA, but an older device will work much more slowly and could impair overall network performance.
If Steve really wants to modernize his network’s security, he could make sure that all his networked gear is compatible with the WPA2 Personal protocol (which, among other things, uses stronger encryption than WPA Personal). AirPort Extreme hardware made since 2003 supports WPA2 Personal, as does much third-party gear made in the same time frame. But for most home networks, plain old WPA Personal will be fine.
To enable WPA or WPA2 Personal, Steve should open AirPort Utility, select the base station, go to the Wireless pane, select WPA/WPA2 Personal from the Wireless Security drop-down menu, and then enter and verify the password.
The best way to protect your network from outside intrusions over the Internet is to implement NAT (Network Address Translation). NAT shares out private IP (Internet Protocol) addresses to the computers and other devices on your network; these private addresses cannot be reached directly from outside the local network. When devices inside your network try to connect with the outside—to visit a Web site or download a song from the iTunes Store, for instance—NAT opens up a temporary relay. The outbound connection is made, a server responds, and the data is passed back to the locally requesting computer.
NAT-PMP is an Apple-designed protocol built into all of the Wi-Fi gear the company has released since 2003. NAT-PMP and a similar technology, UPnP (Universal Plug and Play), found in routers from other vendors, both enhance NAT by letting computers or other devices open direct inbound paths from the Internet on demand. Services such as Back to My Mac in Leopard require NAT-PMP or UPnP to let you make secure connections over the Internet to your home net.
If you want more protection than NAT provides, you can install firewall and network-monitoring software on each computer connected to the network. For Mac OS X, there are any number of options. For Windows, that might be something such as McAfee Security Center (which provides antivirus protection as well) or ZoneAlarm Pro.
Of course, outside intruders aren’t the greatest security threat to your network. Windows systems are more likely to be attacked these days when you use Internet Explorer, Firefox, or Safari (for Windows) to browse a page embedded with malicious code. Antivirus software can help there.
Steve’s final query had to do with securely accessing his files from outside his network, using either a Mac or a Windows PC. Fortunately, there are several ways to do this.
The first option is to host the files on a computer on your network, then turn on file sharing. To do so, open System Preferences and check the File Sharing box. Choose the volumes and folders you want to make accessible and which users will have access privileges through the Shared Folders and Users list.
The second alternative is to host the files on an NAS (network-attached storage) device: essentially, a hard drive with an IP address. Depending on the model, NAS devices can share via AFP, FTP, Samba, or some combination thereof. (Warning: Because FTP is not secure, I don’t advise using it for remote access; SFTP is a more secure alternative.)
Whether you store the files you want on a single computer or on an NAS device, you’ll also need to configure your router’s port mapping to give you remote access to the device. This requires giving that hardware a fixed IP address, from the range of private addresses your router sets for the local network (typically something like 192.168.1.XXX), then mapping the AFP port on the device to the router’s public port. The precise steps for doing so vary by router, so check your documentation.
Note that Apple also recently updated its Time Capsule and AirPort Extreme hardware to provide remote access to internal and external drives via MobileMe; that access, of course, requires that you’re running Leopard (on the Macs from which you’re trying to gain access) and that you have a MobileMe account.
If you’d rather not go to the trouble of configuring remote access, you can instead sync the files you want to some kind of shared storage on the Internet. The best options for doing so with a mix of Mac and Windows users are MobileMe’s iDisk and DropBox.
With iDisk, you have as much as 20GB of online storage; you can get more for an annual fee in addition the service’s basic $99 yearly subscription.
Windows users can access files on iDisk from Windows Explorer; Apple has posted instructions for doing so. The URL for public access is
http://idisk.mac.com/membername-Public, where membername is your iDisk user name.
If you enable iDisk synchronization on your Mac (on the iDisk tab of the MobileMe system preference pane, click Start under iDisk Sync), files modified on the iDisk are available from any computer with access to that MobileMe account. You can also store files in a Public folder, which is password-protectable.
DropBox uses a secure process to transfer file updates, and as long as you’re connected to the Internet, you’ll have the latest version of any file in any common folders on each Mac OS X or Windows system you use.
Glenn Fleishman is author of the e-book
Take Control of Back to My Mac
and a frequent contributor to Macworld.