DDoS Protection with NetFlow

DDoS Protection: The Problem with NetFlow

“Netflow collection.” This is what I kept hearing from DDoS providers when I asked how they monitored networks.  But there are a couple problems with utilizing NetFlow. Problem 1: Sampling Rates… I’ve very rarely seen a sampling rate of 1 on routers.  Cisco’s CRS shelves and ASR9ks as well as Juniper’s TX Matrix Plus and MX960s are certainly capable … Continue Reading

How to Add a Route in Mac OS X Mavericks

Ever have need to access a network that your default gateway (router) doesn’t know about?  Just add the route via the CLI/Terminal on a Mac OS X running Mavericks! The command is sudo route -n add (network) (gateway)

Enable VNC from Command line on a Mac

I rarely use VNC because there are more secure methods of remote management out there. But sometimes, when those methods fail, I need a backup. Here’s a way to turn on VNC from the command line in Mac OS X:

If you need to reset the VNC password via command line use this command … Continue Reading

Where is httpd.conf on Mac OS X Server?

Mac OS X Server is awesome! But it “hides” configuration files for some of the services it runs. Finding them can be a pain… This is the directory where OS X Server puts all of the relevant httpd.conf files: /Library/Server/Web/Config/apache2/sites/

Update JUNOS Config with Remote API slax/juise

Mike over at High on PHP recently showed everyone the coolest thing in the world …. How to run SLAX on JUNOS boxes remotely with JUISE…. Seeing this in action nearly made me pee my pants! Too COOL! I went through his setup with ease…once I upgraded my Linux distribution.  (It requires curl libraries that were … Continue Reading

Show the entire contents of a file in Linux/Ubuntu/Mac

I’m primarily a Juniper engineer, so most of my commands are followed by ” | no-more”. If you’re like me, you probably like to print the entire contents of files/output and scroll up within the terminal. There’s a super easy command that will print the contents of a file to the screen. “cat” cat output.txt

MetroUI Hex Color Scheme

If you want to design a user interface integrating the Windows/Microsoft MetroUI color scheme, you’ll need the HEX codes for them. You could look at these codes below… or just find them at metroui.org.ua

Find files with matching content in Linux/Debian/Mac

Sometimes you have need to find all files with certain words in them.  If you’re on Linux/Debian/Mac, you can run a really simple command to find them! That command is “grep”. Here’s an example that recursively searches subfolders for “set groups node1” grep -iR ‘set groups node1’ * Here is the output:

Juniper SRX Op Script: op-monitor

On the data center SRX’s running “show security flow session summary” will return all of the sessions on each SPC.  This can be a bit time consuming when your SRX is fully loaded with SPCs.  A great way to find out how many sessions are on each SPC at any given moment is the “srx-monitor” … Continue Reading