Skip to content

Instantly share code, notes, and snippets.

View brianlucas's full-sized avatar

Brian Lucas brianlucas

  • Optimizely, Credible, Sling, Sun
  • San Francisco, CA
  • 03:11 (UTC -08:00)
View GitHub Profile
#!/bin/sh
#
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise).
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN
# YOUR AMAZON EC2 INSTANCE STARTS!
#
# Copyright (C) 2014 Lin Song
# Based on the work of Thomas Sarlandie (Copyright 2012)