Skip to content

Instantly share code, notes, and snippets.

@greew
Created March 3, 2020 09:35
Show Gist options
  • Save greew/566daa485df6937bd5740c2c5cd8729f to your computer and use it in GitHub Desktop.
Save greew/566daa485df6937bd5740c2c5cd8729f to your computer and use it in GitHub Desktop.
Setup SSTP VPN connection in Ubuntu 18.04

Setup SSTP VPN connection in Ubuntu 18.04

Run the following

sudo apt-get update &&
sudo apt-get upgrade &&
sudo add-apt-repository -y ppa:eivnaes/network-manager-sstp &&
sudo apt-get update && sudo apt-get install -y network-manager &&
sudo apt-get install -y sstp-client&&
sudo apt-get install -y network-manager-sstp &&
sudo apt-get install -y network-manager-sstp-gnome && 
sudo apt-get update

Replace the following in the code below and run it as well

Replace Extra
<name_in_ifconfig> I needed vpn0 as adapter name
<name_of_the_vpn_connection> Without spaces
<vpn_server_host_or_ip> ...
<username> ...
<password> ...
nmcli connection add \
 save yes \
 type vpn \
 connection.interface-name ``<name_in_ifconfig>`` \
connection.id ``<name_of_the_vpn_connection>`` \
vpn.data gateway=``<vpn_server_host_or_ip>``,ignore-cert-warn=yes,lcp-echo-failure=5,lcp-echo-interval=30,nobsdcomp=yes,nodeflate=yes,password-flags=0,proxy-password-flags=0,refuse-chap=yes,refuse-eap=yes,refuse-pap=yes,user=``<username>`` \
vpn.secrets password=``<password>`` \
vpn.service-type org.freedesktop.NetworkManager.sstp

Source: https://vkolesov.com/sstp-vpn-on-ubuntu-18-04.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment