User Tools

Site Tools


technical:ipsec:strongswan

This is an old revision of the document!


Description

This example demonstrates how to configure a Site-to-Site IPSec VPN with Strongswan. The example was tested and verified using Fedora VMs in GNS3.

Install

dnf install -y strongswan

Network

VPN-Site-1

nmcli connection add ifname ens4 connection.id wan connection.type 802-3-ethernet mtu 1460 ipv4.method manual ipv4.address 100.64.20.1/30
nmcli connection add ifname ens5 connection.id lan connection.type 802-3-ethernet ipv4.method manual ipv4.address 192.168.80.1/24 mtu 1460

VPN-Site-2

nmcli connection add ifname ens4 connection.id wan connection.type 802-3-ethernet mtu 1460 ipv4.method manual ipv4.address 100.64.20.2/30
nmcli connection add ifname ens5 connection.id lan connection.type 802-3-ethernet ipv4.method manual ipv4.address 192.168.90.1/24 mtu 1460

VPN

Links

technical/ipsec/strongswan.1680894408.txt.gz · Last modified: 2023/04/07 15:06 by jc