IPSec Strongswan mit Linux Beispiel
Version vom 3. August 2026, 08:52 Uhr von Thomas.will (Diskussion | Beiträge)
Installation
- apt update
- apt install strongswan strongswan-swanctl
Voraussetzungen
- Beide Systeme: Linux mit strongSwan und VICI-Unterstützung (swanctl)
- Nur VICI (swanctl), keine ipsec.conf oder ipsec.secrets
- XX eigene Seite, gegenüberliegende Seite YY
Szenario
| Einstellung | links | rechts |
|---|---|---|
| IP Address | 192.168.5.193 | 192.168.5.194 |
| Internes Netz | 172.26.193.0/24 | 172.26.194.0/24 |
| Pre-Shared Key (PSK) | 123Start$ | |
| Phase 1 | AES256 – SHA256 – DH16 | |
| Phase 2 | AES256 – SHA256 – DH16 | |