Skip to content

Instantly share code, notes, and snippets.

@information-security
Created November 4, 2022 03:37
Show Gist options
  • Save information-security/290bbf8ef851269b540e9e27f42d3cf5 to your computer and use it in GitHub Desktop.
Save information-security/290bbf8ef851269b540e9e27f42d3cf5 to your computer and use it in GitHub Desktop.
Install sstp-client on ubuntu 22

Prerequisites

sudo apt-get install build-essential ppp-dev libevent-dev libssl-dev autoconf libtool

Clone the repo

git clone https://gitlab.com/eivnaes/sstp-client.git sstp-client-source
cd sstp-client-source

Install

./autogen.sh
make -j4
sudo make install

Usage

sudo sstpc --user username --password p@$$W0rd --cert-warn --log-level 5 --log-stderr 1.2.3.4:443 require-mschap-v2 noauth debug

Troubleshooting

  • If you encountered following error: Required library libevent not found, you must install libevent manually:

    Prerequisites

    sudo apt-get install pkg-config

    Clone the repo

    git clone https://github.com/libevent/libevent.git libevent

    Install libevent

    ./configure
    make -j4
    sudo make install
    sudo ldconfig

    Then re-run the commands for installing sstp-client again.

  • You may also need to install ppp package

    sudo apt-get install ppp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment