Alex Feigenson's Blog Systems Administrator That Communicates Effectively

12Apr/102

iPhone users can’t hide from netflow!

I couldn't resist blogging about this one.

Last Friday I wrote a blog post about how netflow was making my users happy. This week I'm going to talk about how netflow is still making my users happy - except for one.

After a few days of watching CPU usage on my routers, I added a second site to my netflow collector and started investigating.

The first thing I noticed was more users backing up to the wrong location (we're now performing an audit). The second thing I noticed was someone transferring a lot of data from Akamai - and I started looking into what it was.

The IP in question didn't have a DNS entry, so I got curious. I used nmap to find out more information and lo and behold:

Running: Apple iPhone OS 3.X
OS details: Apple iPhone mobile phone (iPhone OS 3.0 - 3.0.1)

An iPhone?!

After realizing it was an iphone, and not even a user's computer - I decided to take action against the offending device. After all, we're having bandwidth issues! Because we're using DHCP, I took a look at our DHCP leases to find out the MAC address of the iPhone:

Now that I had the MAC address, I could send it to the /dev/null blackhole. I logged into my wireless access point and went to work. I would outline the CLI commands, but I must confess to using the web interface. As you can tell from these instructions, it's much easier (on the surface) to do it that way. Also, as it turns out Cisco WAP's don't play nice if you configure through both the GUI and CLI.

Essentially what I did was create a filter for the particular offending MAC address. If you are doing this yourself, be careful! By default it will set the Default Action to "Block All," meaning you will knock everyone off.

This is how I set it up:

Yeah, I know - I'm a terrible person - the poor user can't get on our ultra fast (not really) wireless network! Well, the way I see it is there isn't a single business use case where a user would need to transfer 120+ MB worth of data to their phone. That's what the cell phone carrier network is for! Let AT&T handle it says I!

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)

Tagged as: , 2 Comments
9Apr/100

How netflow made my users happy.

Recently I had been receiving automated bandwidth alerts for a couple of our offices, so I decided to take a deeper look at what was generating enough traffic to saturate 4 T1's.

How?

The first technology that came to mind was netflow, but I had absolutely no experience with it. I only knew the basics - it would show me source and destination IP's and the type of traffic being transmitted. I also knew that it worked with flows, unlike SPAN ports which forward all traffic and something I wasn't interested in doing.

Since netflow isn't something that's useful without something collecting the data (netflow data is pushed, not polled), the first thing I did was install ManageEngine's Netflow Analyzer. They have a free version that is good up to 2 monitored interfaces (note this is not the same thing as monitored IP's - so you can theoretically just monitor your routers public interface to get useful data!), also I've used manageengine demos in the past and I've always been pleased with their products.

Once I had the Netflow Analyzer installed it was time to enable netflow on my router - a Cisco 2811 running IP Base 12.4(3f). Initially I was pretty concerned about CPU usage because we're already doing PPP multilink which is handled by the CPU and netflow can be CPU intensive, but Cisco's documentation indicated I should be good. Netflow was surprisingly easy to set up:

router#enable
Password:*****
router#configure terminal
router(config)#interface [INTERFACE YOU WISH TO MONITOR]
router(config-if)#ip route-cache flow
router(config-if)#exit
router(config)#ip flow-export destination [YOUR ANALYZER] 9996
router(config)#ip flow-export source [INTERFACE YOU WISH TO MONITOR]
router(config)#ip flow-export version 9
router(config)#ip flow-cache timeout active 1
router(config)#ip flow-cache timeout inactive 15

Note: If ip flow-export version 9 doesn't work, try version 5

In short order, I was in netflow land. Because it works via streams, it took some time for all the data to come available. Roughly an hour later I already had a big enough picture to start acting (IP addresses obfuscated to protect the guilty):

The top bandwidth destination - 192.168.23.5 - is a NAS device in another office (the other office that we were also having issues with).

All of our offices are connected via MPLS and can talk to each other as if they were on the same network. In every office, we have a NAS device for backups. We use a piece of freeware called Cobian to backup that uses a hard coded path for its destination (it isn't location aware).

As it turned out, we had a couple of users move without informing IT, so we never changed their backup locations:

I did some quick math, and figured out that these two users were maxing out our bandwidth in BOTH offices experiencing regular bandwidth shortages. Holy smokes!

Without netflow, I would have never known this was the issue (I always blamed sporting events :) - and with it, I can take corrective action:

1. By changing the backup drives, we can make this go away.
2. I set up an automatic report which runs nightly that sends an email to the department with all traffic destined to backup drives at the wrong location.
3. We can start looking for backup software that limits bandwidth usage (we've needed a new backup package for awhile).

Bandwidth is no longer in such short supply, which cuts down on latency and makes users happy!

If you have any netflow stories, please comment!

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)

Tagged as: , No Comments
5Nov/090

Cisco AnyConnect, LDAP, and you.

I recently discovered that Cisco had released a much cheaper version of their AnyConnect client alongside their ASA 8.2 release. AnyConnect Essentials runs $150 (list price, so for Cisco, chop off an average of 35%) and allows for up to 250 concurrent connections on my ASA 5510. Previously you either had to settle for their IPSec client or their Premium AnyConnect license. From my own impressions, Cisco had given up on their IPSec client... no 64 bit client? Hello? Their more expensive AnyConnect license included features that I didn't need and was something obscene like $150/user.

Enter AnyConnect essentials. You can install it by going to your ASA's IP address and logging in. It downloads the client which is about 1.5MB compressed, and connects you. Bam! Instant SSL encrypted VPN tunnel. In testing it appears to work really well. I've tried the client on XP, Vista, 7, and Linux and I like it. I'll be deploying this to my company very soon.

Like most things Cisco, just because you can do it doesn't mean it's easy to do (or easy to find relevant information for). In my case, I wanted to implement the AnyConnect software with LDAP and allow different groups access to different resources depending on Active Directory group memberships.

After an hour or so of using Google, I found a few documents that really helped me (and hopefully you!):

Configuring AnyConnect VPN Client Connections

ASA 8.0: Configure LDAP Authentication for WebVPN Users

PIX/ASA 8.0: Use LDAP Authentication to Assign a Group Policy at Login

I hope that helps - if you need any help, leave a comment and I'll see what I can do

VN:F [1.9.1_1087]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.1_1087]
Rating: 0 (from 0 votes)

Tagged as: , , No Comments