From 578f751a6dea6d747073619800875f4131205a6f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 1 Feb 2020 11:18:02 +0100 Subject: sstp: document all possible options --- docs/services/sstp-server.rst | 243 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 214 insertions(+), 29 deletions(-) (limited to 'docs/services') diff --git a/docs/services/sstp-server.rst b/docs/services/sstp-server.rst index 7c381416..792899c5 100644 --- a/docs/services/sstp-server.rst +++ b/docs/services/sstp-server.rst @@ -4,34 +4,36 @@ SSTP Server ########### -VyOS utilizes accel-ppp_ to provide SSTP server functionality. It can be -used with local authentication or a connected RADIUS server. +:abbr:`SSTP (Secure Socket Tunneling Protocol)` is a form of :abbr:`VPN +(Virtual Private Network)` tunnel that provides a mechanism to transport PPP +traffic through an SSL/TLS channel. SSL/TLS provides transport-level security +with key negotiation, encryption and traffic integrity checking. The use of +SSL/TLS over TCP port 443 allows SSTP to pass through virtually all firewalls +and proxy servers except for authenticated web proxies. -.. note:: Please be aware, due to an upstream bug, config changes/commits - will restart the ppp daemon and will reset existing PPPoE connections from - connected users, in order to become effective. +SSTP is available for Linux, BSD, and Windows. -Configuration -============= +VyOS utilizes accel-ppp_ to provide SSTP server functionality. We support both +local and RADIUS authentication. + +As SSTP provides PPP via a SSL/TLS channel the use of either publically signed +certificates as well as a private PKI is required. -The `Secure Socket Tunneling Protocol`_ (SSTP), provides ppp via a SSL/TLS -channel. Using publically signed certificates as well a by private PKI, is -fully supported. All certificates should be stored on VyOS under -``/config/user-data/sstp``. +.. note:: All certificates should be stored on VyOS under + ``/config/user-data/sstp``. If certificates are not stored unt ``/config`` + they will not be migrated during a software update. Self Signed CA and Certificates -------------------------------- +=============================== To generate the CA, the server private key and certificates the following commands can be used. .. code-block:: none - vyos@vyos:~$ conf - [edit] - vyos@vyos# mkdir -p /config/user-data/sstp && cd /config/user-data/sstp - [edit] - openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout server.key -out server.crt + + vyos@vyos:~$ mkdir -p /config/user-data/sstp + vyos@vyos:~$ openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout /config/user-data/sstp/server.key -out /config/user-data/sstp/server.crt Generating a 4096 bit RSA private key .........................++ @@ -46,7 +48,7 @@ commands can be used. Common Name (e.g. server FQDN or YOUR name) []: Email Address []: - vyos@vyos# openssl req -new -x509 -key server.key -out ca.crt + vyos@vyos:~$ openssl req -new -x509 -key /config/user-data/sstp/server.key -out /config/user-data/sstp/ca.crt [...] Country Name (2 letter code) [AU]: State or Province Name (full name) [Some-State]: @@ -56,22 +58,205 @@ commands can be used. Common Name (e.g. server FQDN or YOUR name) []: Email Address []: -The example below will answer configuration request for the user ``foo``. + +Configuration +============= + +.. cfgcmd:: set service sstp-server authentication local-users username password + + Create `` for local authentication on this system. The users password + will be set to ``. + +.. cfgcmd:: set service sstp-server authentication protocols + + Require the peer to authenticate itself using one of the following protocols: + pap, chap, mschap, mschap-v2. + +.. cfgcmd:: set service sstp-server authentication mode + + Set authentication backend. The configured authentication backend is used + for all queries. + + * **radius**: All authentication queries are handled by a configured RADIUS + server. + * **local**: All authentication queries are handled locally. + + +.. cfgcmd:: set service sstp-server network-settings client-ip-settings gateway-address + + Use `` IP address for clients. This can be any arbitrary address as + it will be a Point-to-Point link. + + +.. cfgcmd:: set service sstp-server network-settings client-ip-settings subnet + + Use `` as the IP pool for all connecting clients. + + +.. cfgcmd:: set service sstp-server network-settings dns-server primary-dns
+ + Connected client should use `
` as their primary DNS server. + + +.. cfgcmd:: set service sstp-server network-settings dns-server secondary-dns
+ + Connected client should use `
` as their secondary DNS server. + +SSL Certificates +---------------- + +.. cfgcmd:: set service sstp-server sstp-settings ssl-certs ca + + Path to `` pointing to the certificate authority certificate. + +.. cfgcmd:: set service sstp-server sstp-settings ssl-certs server-cert + + Path to `` pointing to the servers certificate (public portion). + +.. cfgcmd:: set service sstp-server sstp-settings ssl-certs server-key + + Path to `` pointing to the servers certificate (private portion). + +PPP Settings +------------ + +.. cfgcmd:: set service sstp-server ppp-settings lcp-echo-failure + + Defines the maximum `` of unanswered echo requests. Upon reaching the + value ``, the session will be reset. + +.. cfgcmd:: set service sstp-server ppp-settings lcp-echo-interval + + If this option is specified and is greater than 0, then the PPP module will + send LCP pings of the echo request every `` seconds. + +.. cfgcmd:: set service sstp-server ppp-settings lcp-echo-timeout + + Specifies timeout in seconds to wait for any peer activity. If this option + specified it turns on adaptive lcp echo functionality and "lcp-echo-failure" + is not used. + +.. cfgcmd:: set service sstp-server ppp-settings mppe + + Specifies :abbr:`MPPE (Microsoft Point-to-Point Encryption)` negotioation + preference. + + * **require** - ask client for mppe, if it rejects drop connection + * **prefer** - ask client for mppe, if it rejects don't fail + * **deny** - deny mppe + + Default behavior - don't ask client for mppe, but allow it if client wants. + Please note that RADIUS may override this option by MS-MPPE-Encryption-Policy + attribute. + + +RADIUS +------ + +Server +^^^^^^ + +.. cfgcmd:: set service sstp-server authentication radius-server secret + + Configure RADIUS `` and its required shared `` for + communicating with the RADIUS server. + +.. cfgcmd:: set service sstp-server authentication radius-server secret + + Configure RADIUS `` and its required shared `` for + communicating with the RADIUS server. + +.. cfgcmd:: set service sstp-server authentication radius-server fail-time