diff --git a/vpnsetup.sh b/vpnsetup.sh index d14742b..c0b65df 100644 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -1,7 +1,7 @@ #!/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). +# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN server +# on a Ubuntu or Debian instance. Tested with Ubuntu 14.04 & 12.04 and Debian 8 & 7. # With minor modifications, this script *can also be used* on dedicated servers # or any KVM- or XEN-based Virtual Private Server (VPS) from other providers. # @@ -30,8 +30,8 @@ if [ "$(uname)" = "Darwin" ]; then exit fi -if [ "$(lsb_release -si)" != "Ubuntu" ]; then - echo "Looks like you aren't running this script on a Ubuntu system." +if [ "$(lsb_release -si)" != "Ubuntu" ] && [ "$(lsb_release -si)" != "Debian" ]; then + echo "Looks like you aren't running this script on a Ubuntu or Debian system." exit fi @@ -184,7 +184,7 @@ cat > /etc/ppp/chap-secrets </dev/null cat > /etc/sysctl.conf </dev/null cat > /etc/iptables.rules < /etc/iptables.rules < /etc/network/if-pre-up.d/iptablesload </dev/null cat > /etc/rc.local <