Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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