summaryrefslogtreecommitdiff
path: root/docs/vpn/pptp.rst
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-06-15 23:58:36 +0200
committerChristian Poessinger <christian@poessinger.com>2019-06-15 23:58:58 +0200
commitda2f4c6ee1919cf41995b3f38f68c3e403f6ddf5 (patch)
tree483bea46efafa9c8725b69079b056674c81438f5 /docs/vpn/pptp.rst
parentb954473de660fcb2c12309bc9c8141ac5da57add (diff)
downloadvyos-documentation-da2f4c6ee1919cf41995b3f38f68c3e403f6ddf5.tar.gz
vyos-documentation-da2f4c6ee1919cf41995b3f38f68c3e403f6ddf5.zip
VPN: split different providers into individual files
Diffstat (limited to 'docs/vpn/pptp.rst')
-rw-r--r--docs/vpn/pptp.rst47
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/vpn/pptp.rst b/docs/vpn/pptp.rst
new file mode 100644
index 00000000..2d560919
--- /dev/null
+++ b/docs/vpn/pptp.rst
@@ -0,0 +1,47 @@
+.. _pptp:
+
+PPTP-Server
+-----------
+
+The Point-to-Point Tunneling Protocol (PPTP_) has been implemented in VyOS only for backwards compatibility.
+PPTP has many well known secrurity issues and you should use one of the many other new VPN implementations.
+
+As per default and if not otherwise defined, mschap-v2 is being used for authentication and mppe 128-bit (stateless) for encryption.
+If no gateway-address is set within the configuration, the lowest IP out of the /24 client-ip-pool is being used. For instance, in the example below it would be 192.168.0.1.
+
+server example
+^^^^^^^^^^^^^^
+
+.. code-block:: sh
+
+ set vpn pptp remote-access authentication local-users username test password 'test'
+ set vpn pptp remote-access authentication mode 'local'
+ set vpn pptp remote-access client-ip-pool start '192.168.0.10'
+ set vpn pptp remote-access client-ip-pool stop '192.168.0.15'
+ set vpn pptp remote-access gateway-address '10.100.100.1'
+ set vpn pptp remote-access outside-address '10.1.1.120'
+
+
+client example (debian 9)
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Install the client software via apt and execute pptpsetup to generate the configuration.
+
+
+.. code-block:: sh
+
+ apt-get install pptp-linux
+ pptpsetup --create TESTTUNNEL --server 10.1.1.120 --username test --password test --encrypt
+ pon TESTTUNNEL
+
+The command pon TESTUNNEL establishes the PPTP tunnel to the remote system.
+
+
+All tunnel sessions can be checked via:
+
+.. code-block:: sh
+
+ run sh pptp-server sessions
+ ifname | username | calling-sid | ip | type | comp | state | uptime
+ --------+----------+-------------+--------------+------+------+--------+----------
+ ppp0 | test | 10.1.1.99 | 192.168.0.10 | pptp | mppe | active | 00:00:58