diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-13 15:58:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-13 15:58:10 +0200 |
commit | 7334b4b9baec121569ad0e3015994fa1e10f167c (patch) | |
tree | e85c505e912ea0efb32f1b10ec62e651f1f6f7f5 /docs/vpn/openconnect.rst | |
parent | 82bcd24b34b6f0d5365d096d092cad84da480314 (diff) | |
download | vyos-documentation-7334b4b9baec121569ad0e3015994fa1e10f167c.tar.gz vyos-documentation-7334b4b9baec121569ad0e3015994fa1e10f167c.zip |
vpn: openconnect: fix TOC
Diffstat (limited to 'docs/vpn/openconnect.rst')
-rw-r--r-- | docs/vpn/openconnect.rst | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/docs/vpn/openconnect.rst b/docs/vpn/openconnect.rst index 9d6dd6da..a409ed9d 100644 --- a/docs/vpn/openconnect.rst +++ b/docs/vpn/openconnect.rst @@ -1,38 +1,51 @@ .. _vpn-openconnect: +########### OpenConnect ------ +########### OpenConnect-compatible server feature is available from this release. -Openconnect VPN supports SSL connection and offers full network access. SSL VPN network extension connects the end-user system to the corporate network with access controls based only on network layer information, such as destination IP address and port number. So, it provides safe communication for all types of device traffic across public networks and private networks, also encrypts the traffic with SSL protocol. -The remote user will use the openconnect client to connect to the router and will receive an IP address from a VPN pool, allowing full access to the network. +Openconnect VPN supports SSL connection and offers full network access. SSL VPN +network extension connects the end-user system to the corporate network with +access controls based only on network layer information, such as destination IP +address and port number. So, it provides safe communication for all types of +device traffic across public networks and private networks, also encrypts the +traffic with SSL protocol. +The remote user will use the openconnect client to connect to the router and +will receive an IP address from a VPN pool, allowing full access to the network. -.. note:: All certificates should be stored on VyOS under /config/auth. If certificates are not stored in the /config directory they will not be migrated during a software update. - +.. note:: All certificates should be stored on VyOS under /config/auth. If + certificates are not stored in the /config directory they will not be + migrated during a software update. +************* Configuration -^^^^^^^^^^ +************* SSL Certificates ----- +================ -We need to generate the certificate which authenticates users who attempt to access the network resource through the SSL VPN tunnels. -The following command will create a self signed certificates and will be stored in the file path /config/auth +We need to generate the certificate which authenticates users who attempt to +access the network resource through the SSL VPN tunnels. The following command +will create a self signed certificates and will be stored in the file path +`/config/auth`. .. code-block:: none openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout /config/auth/server.key -out /config/auth/server.crt openssl req -new -x509 -key /config/auth/server.key -out /config/auth/ca.crt -We can also create the certificates using Cerbort which is an easy-to-use client that fetches a certificate from Let’s Encrypt — an open certificate authority launched by the EFF, Mozilla, and others—and deploys it to a web server. +We can also create the certificates using Cerbort which is an easy-to-use client +that fetches a certificate from Let's Encrypt an open certificate authority +launched by the EFF, Mozilla, and others and deploys it to a web server. .. code-block:: none sudo certbot certonly --standalone --preferred-challenges http -d <domain name> Server Configuration -------------------------- +==================== .. code-block:: none @@ -46,8 +59,9 @@ Server Configuration set vpn openconnect ssl key-file <file> +******* Example ----- +******* Use local user name "user4" with password "SecretPassword" Client IP addresses will be provided from pool 100.64.0.0/24 @@ -57,7 +71,7 @@ The Gateway IP Address must be in one of the router´s interfaces. set vpn openconnect authentication local-users username user4 password 'SecretPassword' set vpn openconnect authentication mode 'local' - set vpn openconnect network-settings client-ip-settings subnet '100.64.0.0/24' + set vpn openconnect network-settings client-ip-settings subnet '100.64.0.0/24' set vpn openconnect network-settings name-server '1.1.1.1' set vpn openconnect network-settings name-server '8.8.8.8' set vpn openconnect ssl ca-cert-file '/config/auth/fullchain.pem' @@ -65,13 +79,14 @@ The Gateway IP Address must be in one of the router´s interfaces. set vpn openconnect ssl key-file '/config/auth/privkey.pem' +************ Verification ----- +************ .. code-block:: none - vyos@RTR1:~$ show openconnect-server sessions + vyos@RTR1:~$ show openconnect-server sessions interface username ip remote IP RX TX state uptime ----------- ---------- ------------ ------------- -------- -------- --------- -------- |