Start VPN on demand
Date: Wed, 12 Oct 2005 11:21:00 +0100
I'm using vpnc on my laptop to connect to a cisco vpn server. I don't
need the link very often, and currently I start/stop it in a command
line window. However, I'd prefer to do this automatically: is there any
way of being able to bring up the link on demand?
I guess the general question is whether it's possible to watch for
packets to certain addresses and if matched, to run a program.
I've considered writing a shell script based around either tcpdump, or
a DROP/LOG rule in iptables, but before I go down that route I thought
it would be more sensible to ask here. After all, I don't really wnat
to reinvent the wheel.