Skip to content

Instantly share code, notes, and snippets.

@information-security
Created November 4, 2022 03:37
Show Gist options
  • Select an option

  • Save information-security/290bbf8ef851269b540e9e27f42d3cf5 to your computer and use it in GitHub Desktop.

Select an option

Save information-security/290bbf8ef851269b540e9e27f42d3cf5 to your computer and use it in GitHub Desktop.

Revisions

  1. information-security created this gist Nov 4, 2022.
    49 changes: 49 additions & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    # Prerequisites

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

    # Clone the repo
    ```shell
    git clone https://gitlab.com/eivnaes/sstp-client.git sstp-client-source
    cd sstp-client-source
    ```

    # Install
    ```shell
    ./autogen.sh
    make -j4
    sudo make install
    ```

    # Usage
    ```shell
    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
    ```shell
    sudo apt-get install pkg-config
    ```

    ## Clone the repo
    ```shell
    git clone https://github.com/libevent/libevent.git libevent
    ```

    ## Install libevent
    ```shell
    ./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
    ```shell
    sudo apt-get install ppp
    ```