Libreswan Documentation

Logo

Libreswan's Online Documentation

View the Project on GitHub libreswan/libreswan.github.io

Support
FAQ Common Error Messages
History
Implemented Standards
Kernel Support
HOWTO Additional ipsec.conf documentation
AWS Mesh
brendans Road Warrior Setup at Home
Configuration examples
Confuse !?@: github wiki
Enterprise cloud encryption
Entropy matters
EoIP shared ethernet LAN using IPsec
High Availability Fallover VPN in AWS
Host to host VPN
Host to host VPN with PSK
Libreswan as client to a Cisco ASA or VPN3000 server
Microsoft Azure configuration
Migrate from IKEv1 DPD to IKEv2 LIVENESS
Opportunistic IPsec
Opportunistic IPsec using LetsEncrypt
Pluto and DNSSEC
Read status output
Route based VPN
SElinux and Labeled IPsec VPN
Subnet extrusion
Subnet to subnet using NAT
Subnet to subnet VPN
Subnet to subnet VPN with PSK
Unauthenticated Opportunistic IPsec
Using Apache to serve PKCS
Using NSS Hardware Tokens
Using NSS with libreswan
VPN server for remote clients using IKEv2
VPN server for remote clients using IKEv2 split VPN
GSoC 2027 Code Project Ideas DRAFT
Contributor Guidance DRAFT
Completed Projects 2026 RFC 9593 Announcing Supported Authentication Methods in IKEv2
2026 Improve the ACQUIRE to IKE policy lookup
2026 Add HOST TO HOST Support on BSD
2021 RFC 8420 Add EdDSA Signature Authentication Support to IKEv2
2020 Session Resumption
2020 IKEv2 Interop testing with OpenBSD
2020 IKE Intermediate Exchange
2019 Libreswan Opportunistic IPsec using LetsEncrypt
2018 RSA PSS Support in compliance with RFC 7427 and RFC 8247
2018 RFC 7427 Add ECDSA Signature Authentication Support to IKEv2
2018 RFC 5685 Redirect Mechanism
2018 Managing Interface
2017 TCP encapsulation of IKE and IPsec
2017 RFC 7427 Add Signature Authentication Support to IKEv2
2017 Postquantum Preshared Keys
Presentations
IRC
Hacking Documentation
Git, GitHub, and Pull Requests
Merging GitHub Pull Requests
Programming Conventions
Testing Docker
KVM 1. Setup The Host
2. Configure Testing
3. Compile Libreswan
4. Test Libreswan
5. Accessing The Console
6. Maintenance and Internals
Bisecting
Debugging Pluto
Logging In Using SSH
Performance
Running A Custom Kernel
Running A Single Test
Running In The Background
Setup a Web Server
Testing Old Branches
Updating Test Results
Namespace Magic
Namespaces
Topology
Internals 3.14 X509
Benchmarking and Performance testing
Cipher suites and algorithm support
Cloud OE ideas
Compiling with AddressSanitizer
Compliance of RFC 7427 Signature Authentication in IKEv2
Coverity
Cryptographic Acceleration
Developer links strongswan android
Discouraged or forbidden C functions
IKEv2 Child SA
IKEv2 CP and EAP support
Introduction
Libreswan xfrm kernel support
Logging cleanup
New OE
Pluto
Pluto packet processing
Proposed ipsec ca command
Retransmit timings
Road Map
SAref code
Setting up system for debug logging
stf status
Testing 2017 Next Generation
Unbound
Uncrustify
Use Cases and Requirements document for ECC ECDSA support
Use Cases and Requirements document
XFRM Interface Development Notes
XFRM pCPU
XFRM pCPU RSS
Security Crypto boundary and certification
Libreswan and Heartbleed
Libreswan and TunnelCrack
Reporting a Vulnerability
Vulnerabilities
Meetups 2013 Helsinki
2014 San Francisco
2014 Toronto
2018 Toronto
Obsolete HOWTOs IKEv1 XAUTH with FreeOTP and FreeIPA
IKEv1 XAUTH with Google Authenticator One Time Passwords
Route based VPN using VTI
Testing Namespace
VPN server for remote clients using IKEv1 with L2TP
VPN server for remote clients using IKEv1 XAUTH with Certificates
VPN server for remote clients using IKEv1 XAUTH with PSK

Current Network Topology

Network:

Each host and network is assigned a unique number:

      RENAME TO contains Notes
DARKNET 1 198.18.1   rise set it’s dark between sunset and sunrise
INTERNET 2 192.1.2 198.18.2 nic east west Owned by: raytheon.com
NICNET 3 192.1.3 198.18.3 nic north road Owned by: raytheon.com
NORTHNET 66 198.18.66   north pole inside the arctic circle
EASTNET 20 192.0.2 198.18.20 east rise Rename TEST-NET-1; .23 is the ipsec interface subnet
WESTNET 40 192.0.1 198.18.40 west set Owned by: elevatedcomputing.com; .45 ipsec interface subnet
Host IP suffix
EAST 23
WEST 45
RISE 12
SET 15
POLE 90
NIC 254
ROAD 209

The test framework tries to use the benchmarking network 198.18.0.0/15. It’s divided into:

Unfortunately it also uses several assigned address ranges (see below) which needs to be fixed.

See Special-Purpose IP Address Registries:

File access:

Host naming

Default routes

The Diagram

LEFT                                                              RIGHT

                           POLE--(eth1)198.19/16
                          (eth0)
                  2001:db8:66::90/64
                    198.18.66.90/24
                            |
                            v
198.18.66.0/24 -------------+----NORTHNET---------+---- 2001:db8:66::/64
                                                  v
                                                  |
                                      2001:db8:66::254/64
                                         198.18.66.254/24
                                                (eth0)
                 ROAD-[eth1]                    NORTH-[eth2]
                (eth0)                          (eth1)
     2001:db8:1:3::209/64            2001:db8:1:3::33/64  Owned by: raytheon.com
           192.1.3.209/24                  192.1.3.33/24  Owned by: raytheon.com
       2001:db8:3::209/64              2001:db8:3::33/64  NEW
          198.18.3.209/24                 198.18.3.33/24  NEW
                  |                               |
                  v                               v
192.1.3.0/24 -----+-----NICNET-----+----NICNET----+---- 2001:db8:1:3::/64  Owned by: raytheon.com
198.18.3.0/24 ----+-----NICNET-----+----NICNET----+------ 2001:db8:3::/64  NEW
                                   v
                                   |                                                  
                      2001:db8:1:3::254/64  Owned by: raytheon.com
                            192.1.3.254/24  Owned by: raytheon.com
                        2001:db8:3::254/64  NEW
                           198.18.3.254/24  NEW
                                 (eth2)
                                  NIC-[eth0]
                                 (eth1)
                      2001:db8:1:2::254/24  Owned by: raytheon.com
                            192.1.2.254/64  Owned by: raytheon.com
                        2001:db8:2::254/24  NEW
                           198.18.2.254/64  NEW
                                   |
                                   ^
192.1.2.0/24 -----+----------------+------INTERNET------+----- 2001:db8:1:2::/64  Owned by: raytheon.com
198.18.2.0/24 ----+----------------+------INTERNET------+------- 2001:db8:2::/64  NEW
                  ^                                     ^
                  |                                     |                         
     2001:db8:1:2::45/64                   2001:db8:1:2::23/64  Owned by: raytheon.com
           192.1.2.45/24                         192.1.2.23/24  Owned by: raytheon.com
       2001:db8:2::45/64                     2001:db8:2::23/64  NEW
          198.18.2.45/24                        198.18.2.23/24  NEW
               (eth1)                                (eth1)
         [eth2]-WEST-(ipsec)198.18.45.45/24    [eth2]-EAST-(ipsec)198.18.23.23/24
               (eth0)    2001:db8:45::45/64          (eth0)    2001:db8:23::23/64
     2001:db8:0:1::254/64                  2001:db8:0:2::254/64   Owned by: raytheon.com
           192.0.1.254/24                        192.0.2.254/24    Owned by: raytheon.com
      2001:db8:40::254/64                    2001:db8:2::254/64  NEW
         198.18.40.254/24                      198.182.2.254/24  NEW
                  |                                     |
                  |                                     ^
                  |       192.0.2.0/24 --EASTNET--------+-+---- 2001:db8:0:2::/64 Rename TEST-NET-1:
                  |       198.18.20.0/24 --EASTNET------+-+---- 2001:db8:20::/64  NEW
                  |                                       ^
                  ^                                       |
192.0.1.0/24 -----+-+- WESTNET--- 2001:db8:0:1::/64       |                       Owned by: elevatedcomputing.com
198.18.40.0/24 ---+-+- WESTNET--- 2001:db8:40::/64        |
                    ^                                     |
                    |                                     |
       2001:db8:0:1::15/64                   2001:db8:0:2::12/64   Owned by: elevatedcomputing.com TEST-NET-1
             192.0.1.15/24                         192.0.2.12/24   Owned by: elevatedcomputing.com TEST-NET-1
        2001:db8:40::15/64                    2001:db8:20::12/64   NEW
           198.18.40.15/24                       198.18.20.12/24   NEW
                 (eth1)                                (eth1)
            [eth2]-SET-(ipsec)198.18.15.15/24    [eth2]-RISE-(ipsec)198.18.12.12/24
                 (eth0)    2001:db8:15::15/64          (eth0)     201:db8:12::12/64
         2001:db8:1::15/64                     2001:db8:1::12/64
            198.18.1.15/24                        198.18.1.12/24
                    |                                     |
198.18.1.0/24 ------+-----------DARKNET-------------------+----- DARKNET -- 2001:db8:1::/64  (OK)

Additional old diagrams

Hand sketch of network

Hand Sketch of the Test Network

Older diagram

Network Diagram

Also

FreeSWAN’s Test Network

FreeSWAN Network Diagram

FreeSWAN Network FIG