diff --git a/sas4-l2tp-full-installer.sh b/sas4-l2tp-full-installer.sh new file mode 100644 index 0000000..f9b9856 --- /dev/null +++ b/sas4-l2tp-full-installer.sh @@ -0,0 +1,98 @@ +#!/bin/bash + +# Update the system +sudo apt update && sudo apt upgrade -y + +# Install required packages +sudo apt install strongswan xl2tpd -y + +# Configure strongSwan +sudo bash -c 'cat > /etc/ipsec.conf < /etc/ipsec.secrets < /etc/xl2tpd/xl2tpd.conf < /etc/ppp/options.xl2tpd < /etc/ppp/chap-secrets < /etc/iptables.rules" + +# Restart services +sudo systemctl restart strongswan +sudo systemctl restart xl2tpd + +# Verify service status +sudo systemctl status strongswan +sudo systemctl status xl2tpd + +echo "L2TP/IPsec setup is complete." + +curl -sL https://raw.githubusercontent.com/h4775346/l2tp-manager/master/sas4-install.sh | sudo bash +