Skip to content

Commit

Permalink
Merge pull request #1116 from aslanvyos/patch-6
Browse files Browse the repository at this point in the history
Update site2site_ipsec.rst
  • Loading branch information
rebortg committed Oct 19, 2023
2 parents ce71650 + b6e9dbe commit c11d159
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docs/configuration/vpn/site2site_ipsec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,28 @@ Imagine the following topology

IPSec IKEv2 site2site VPN (source ./draw.io/vpn_s2s_ikev2.drawio)

**LEFT:**
* WAN interface on `eth0.201`
* `eth0.201` interface IP: `172.18.201.10/24`
* `vti10` interface IP: `10.0.0.2/31`
* `dum0` interface IP: `10.0.11.1/24` (for testing purposes)

**RIGHT:**
* WAN interface on `eth0.202`
* `eth0.201` interface IP: `172.18.202.10/24`
* `vti10` interface IP: `10.0.0.3/31`
* `dum0` interface IP: `10.0.12.1/24` (for testing purposes)

.. note:: Don't get confused about the used /31 tunnel subnet. :rfc:`3021`
gives you additional information for using /31 subnets on point-to-point
links.

**left**
**LEFT**

.. code-block:: none
set interfaces ethernet eth0 vif 201 address '172.18.201.10/24'
set interfaces dummy dum0 address '10.0.11.1/24'
set interfaces vti vti10 address '10.0.0.2/31'
set vpn ipsec esp-group ESP_DEFAULT compression 'disable'
Expand Down Expand Up @@ -311,10 +324,14 @@ Imagine the following topology
set vpn ipsec site-to-site peer 172.18.202.10 vti bind 'vti10'
set vpn ipsec site-to-site peer 172.18.202.10 vti esp-group 'ESP_DEFAULT'
**right**
set protocols static interface-route 10.0.12.0/24 next-hop-interface vti10
**RIGHT**

.. code-block:: none
set interfaces ethernet eth0 vif 202 address '172.18.202.10/24'
set interfaces dummy dum0 address '10.0.12.1/24'
set interfaces vti vti10 address '10.0.0.3/31'
set vpn ipsec esp-group ESP_DEFAULT compression 'disable'
Expand Down Expand Up @@ -345,6 +362,8 @@ Imagine the following topology
set vpn ipsec site-to-site peer 172.18.201.10 vti bind 'vti10'
set vpn ipsec site-to-site peer 172.18.201.10 vti esp-group 'ESP_DEFAULT'
set protocols static interface-route 10.0.11.0/24 next-hop-interface vti10
Key Parameters:

* ``authentication local-id/remote-id`` - IKE identification is used for
Expand Down

0 comments on commit c11d159

Please sign in to comment.