Blog

Notes from the field in Seattle: technology, the water, the kitchen, and the kids.

How to fix Mac OS X's built in VPN Client

One of my favorite features about Mac OS X is the built in VPN Client that supports L2TP over IPSec, PPTP, and Cisco IPSec. Unfortunately it decides to get buggy once in a while preventing me from creating a VPN connection into work. One way to remedy this situation is to restart the machine, not a very good option when your're trying to get work done.

The other method is to open up the terminal and do some command line mojo. The command below will resolve the issue and get me up and working quickly.



sudo racoon



This will re-enable the service. Try reconnecting and all should be good.

The Economy


What's the saying? It's funny because it's true! =/

Seattle, WA

_MG_4024.jpg
I was downtown enjoying the sunny afternoon when I noticed the cold front overtaking a warm front creating an occluded front.

schtasks

schtasks is a windows command line utility that allows you create tasks and perform them at specified intervals. I wrote a batch script to backup my data and needed a method to run it once every night. Here's an example I used.


schtasks /create /SC DAILY /TN Backup /TR "\"C:\backup.bat\"" /ST 03:00


Here's how it works. schtasks is the command and /create sets a new scheduled command. /SC DAILY specifies the frequency and /TN Backup specifies a name which identifies your scheduled task. /TR "\"C:\backup.bat\"" specifies the path and file name of the task to be run at your set schedule. The important thing to keep in mind is to escape the quotes. /ST 03:00 sets the start time in the 24-hour format.

Cisco ASA: Configuring Connection Limits

The Cisco ASA Firewall is capable of protecting your network from Denial of Service attacks (DoS), SYN floods, and TCP excessive connection attacks. In this example we will learn how to configure connection limits towards a specific host on your LAN.


configure terminal
access-list example-acl extended permit ip any 192.168.1.1 255.255.255.255
class-map example-map
match access-list example-acl
policy-map example-policy
class example-map
set connection conn-max 10
service-policy example-policy global


The set connection has a few options.


set connection {[conn-max n] [embryonic-conn-max n]
[per-client-embryonic-max n] [per-client-max n] [random-sequence-number {enable | disable}]}


conn-max sets the maximum number of simultaneous TCP and/or UDP connections allowed.
embryonic-conn-max sets the maximum number of simultaneous embryonic connections allowed per client.
per-client-embryonic-max sets the maximum number of simultaneous embryonic connections allowed per client.
per-client-max sets the maximum nuber of simultaneous connections allowed per client.