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

Submissions must comply to all GSoC rules.

You will likely find the document What is Google Summer of Code?, that is part of the GSoC Guides, far more digestible. It even includes a section on Writing A Proposal.

We strongly urge you to read up on the previous student projects.

But first lets get that gnarly question out the way …

A.I. Policy

It’s recommended that we have an A.I. Policy. So this it is.

Don’t be lazy, the result won’t impress:

First Step

Next steps

Submissions that tend to be accepted and successful are those that show from the start that the student is putting in the time to understand the concepts (you don’t have to be an expert already). Mentors like to see students that have put in some work to understand and try things. It is the only reliable metric we have for new people to indicate how serious they are to take on a project for the summer. If implementing an RFC, read the RFC and ask us any questions you have.

Glossary

What do we mean by Difficulty?

Easy (90 hours)

There’s a narrow skill set, and the project is relatively self contained.

For instance, a project modifying the build system, has no expectation that you come up-to-speed with the internals of Libreswan.

Except for Proof-Of-Concepts, we don’t anticipate problems when merging the completed project into mainline.

Medium (175 hours)

The project is technical.

We assume time will be spent coming up to speed both with Libreswan’s code and, where needed, concepts from Recommended Skills list. For the most part, the work should be able to leverage existing code (and not involve major internal changes). Since the mentors have a good grasp of the work involved, they can provide plenty of guidance.

Except for Proof-Of-Concepts, we don’t anticipate significant problems when merging the completed project into mainline.

Hard (350 hours)

The project is technically challenging.

The work will involve research, design, and significant changes to Libreswan (and potentially, other libraries). While the mentors have a broad understanding of the technical area, they are looking for you to flesh out the details, come up with working and tested code, and provide recommended next steps.

Since a successful project may identify additional changes to Libreswan (pluto), merging may not be straight forward.

For instance, before merging the Session Resumption project we changed the way Libreswan (pluto) implements an exchange, and before merging Extend RFC-7427 Signature Authentication support to IKEv2 with EDDSA we changed the way Signature Message Authentication Code (MAC) is computed.

What do we mean by Skills?

Each project lists both required and recommended skills. If you’re wondering what we mean, see below.

Required Skills
C

In addition to writing new code, we’re looking for experience understanding and modifying existing code.

UNIX programming

We’re looking for experience with developing software on, and targeted at, UNIX like systems (Linux, *BSD); some of the tools we use are Make, /bin/sh, the C library, text editors, git, pthreads, libevent, libnss (mozilla), so any familiarity in these areas is useful.

We’re looking for some familarity. More importantly we’re looking for a willingness to learn.

Network protocols

The IKE protocol is built on IP; we’re looking for familiarity with networking concepts in general, and specific protocols such as UDP (often covered by a Networking course)

Cryptographic fundamentals

The IKE protocol relies on cryptography; we’re looking for familiarity with basic concepts such as Integrity, Security, and Authentication (if you’ve completed an Introduction to Cryptography course then you’re more than qualified). Libreswan uses the NSS library from Mozilla.

RFC interpretation

RFCs (Request For Comment) documents are both low-level and technically detailed; we’re looking for experience understanding and implementing code using technical specification as the reference.

BSD networking
Linux networking

Familiarity with using command line networking tools, for instance to configure network interfaces and manage routes.

PFKEY_V2

This is the kernel interface that Libreswan uses on BSD; FreeBSD, NetBSD, and OpenBSD all have their differences which is why we suggest focusing on one of the BSDs initially

XFRM

This is the kernel interface that Libreswan uses on Linux.

Finally, good luck, and happy coding.