Showing posts with label router. Show all posts
Showing posts with label router. Show all posts

Tuesday, July 3, 2012

To (Almost) Catch A Hacker (By Accident)

About eight or so years ago I was providing support at a small upstart company here in the DFW metroplex. The business was growing pretty rapidly and had a pretty sophistacated network that was segmented by department, several servers of mixed flavors, used AD for user management, enterprise level "traffic control" with Cisco equipment, and all wired. It was a sweet setup. They had wisely spent some money on doing their network right and had plenty of room to grow. This was before Sarbanes-Oxley, when smaller companies first started thinking about security, but it was only half-assed implemented if at all. When they decided the time had come to add a shipping department, someone had cobbled together a small wireless network using SOHO equipment, and that's where the problems began.

One day my co-worker and I decided to check some things out in shipping. They had been complaining about dropped connections and printer issues, nothing out of the ordinary. The router usually needed a quick reboot, and printer problems usually revolved around ink, user, or driver issues. No big deal. Everything was running smoothly, no issues from other departments, so we decided to go in tandem and resolve them.

Normally someone would perform a quick reboot of the router to get the connection back. Sometimes the employees would do this as well, but lately they have been pushing for a better router. My co-worker decided to log in the router and check it out while I dealt with a low ink cartridge. While "in" the router, my co-worker calls me over to have a look. There were two wireless on this particular segment connected at all times. Always. Now there were three. Houston, we have a problem.

After verifying that the employees were not using an unauthorized machine, we went outside. In an adjacent parking lot, which was always empty, sat a lone car with someone in it. As we approached the car, it drove off and disappeared quickly. We checked the router again, and the connection count was back to two. The network had been compromised.

Luckily, the new segment didn't have system-wide access. After viewing router and server logs, we were able to determine that nothing of any value had been compromised. We caught him in the act. But back then there was really nothing we could do except secure that router and upgrade it. Today it would be a different story. It taught us some important lessons that sticks with me today:

  • No target is too small.
  • Always thoroghly secure a wireless device.
  • Don't become passive with seemingly unimportant or temporary setups
  • Log into ALL network equipment and read logs regularly.
  • Don't use cheap equipment for enterprise purposes.

Sunday, July 1, 2012

Port Blocking

It seems like everyone has a router these days, but not everyone understands how to take advantage of their features. I'm going to show you some common protocols to block and how do it my Linksys router. This feature can not only be used to block unwanted traffic, but can also be used to protect your children from adult content. Home routers do not offer the same protections as their enterprise counterparts, but a little traffic filtering can go a long way. Here are some basics:

The picture below shows the Access Restrictions and protocols blocked on my first rule. On this router, only 3 protocols can be blocked per rule. As you can see, the policy is enabled and I have it applied to every PC on my network (not shown). I'm not blocking access to any PCs nor do I have any website filters setup. To filter websites, simply fill in some keywords or actual web addresses in the appropriate areas and save your changes. This feature can be used in conjunction with, or if you are on a tight budget, instead of nanny softwares. It offers some protection for your kids, or any annoying websites you wish to block. Again, you can setup multiple rules to block additional sites.

As you can see, I have blocked Telnet (shell access), SNMP (simple network management protocol), and TFTP (trivial file transfer protocol) on this rule. Some additional protocols to block are SMB (Windows file sharing), VNC (remote control software), and RPC (windows remote control protocol). For more effective filtering, research the protocols in use on your network, and block the ones that are not in use. A complete list of ports and their assigned protocols can be found at www.iana.org/assignments/port-numbers

Port blocking and web filtering aren't difficult to achieve with home routers and offer another layer of protection against the outside network. Filtering is not only good for children, but it can be used to protect the integrity of your network by blocking out spammy or other suspicious sites.

Saturday, June 30, 2012

Easily Tighten DHCP

Dislike static addressing? Me too. I loathe having to manually add addresses to machines. This post is going to show you how to quickly and easily control your DHCP addresses by limiting the number of addresses and mapping IP's to MACs.

The image below is from is from a Linksys router, but if your router is so equipped, you should be able to figure this out without too much fuss. Having all of your machines connected to your router will make this really simple. There are three things to note: 1.) I'm not using the default network and subnet address. Although I highly recommend changing this, it's not necessary. 2.) The DHCP Reservation button. This is where we map the IP to MAC. 3.) The maximum number of users is set. This number should be set to the exact number of machines on your network for maximum effectiveness.

By clicking the DHCP Reservation button, a window similar to the image below will appear. If all of your computers are connected, they should appear in the "Select Clients from DHCP Tables" section. Select the checkbox(es) and click add clients. The name of the system, the address it is currently using, and it's MAC will appear in the "Clients Already Reserved" section. If your computers are not connected to the router, they can be manually added through the "Manually Adding Client" section, providing you know the MAC addresses.

And that's all there is to it. This is a quick and simple way to gain control over your DHCP addressing and add a layer of security as well.