
This course contains the use of artificial intelligence.
IPsec is the standard way to join two networks over the internet with an encrypted tunnel, and IKEv2 is the protocol that sets the tunnel up. Many beginners find IPsec confusing because of the many words: security associations, ESP, proposals, traffic selectors. This course teaches IPsec and IKEv2 from zero with a simple method: a short explanation with a diagram, and then a real lab on real Linux servers.
Every lab runs for real on Rocky Linux 9.7 with strongSwan 6.0.6 and on Ubuntu 24.04 with strongSwan 5.9.13. The labs use two gateways, each with a pretend LAN, so you can see a real tunnel carry traffic from one LAN to the other. The videos show the real terminal output and the small differences between the two systems, such as package commands, firewall and file paths.
You will learn: how IPsec, ESP and security associations work; what IKEv2 does in its four first messages; installing strongSwan and reading swanctl.conf; opening the firewall; a site-to-site ipsec vpn with a pre-shared key and testing it from LAN to LAN; seeing ESP traffic and port 4500; xfrm state and policy; proposals, lifetimes and rekeying; dead peer detection; traffic selectors; reading errors for a wrong key or wrong ID; making a CA and certificates with openssl and using them for site-to-site; certificate problems; IKEv2 remote access with a server pool and a user login, where strongSwan is also the client; logs, monitoring, MTU problems, troubleshooting drills and security basics.
The course has 31 lectures with about 1 hour 58 minutes of video in total as delivered. The course includes a lab guide, command scripts and lab files for every lab video; every command and every result is also on the screen, and nothing is paywalled inside the course. The narration voice is AI generated.
Please know before you buy: you need two small Linux servers, either cloud servers or local virtual machines. The Windows, macOS, iOS and Android VPN clients were not tested in this course, so the course does not claim them; the remote access labs use strongSwan on Linux as the client. There is no full-tunnel routing lab: the remote access labs send only the traffic for the server LAN through the tunnel. The MSS clamping rule was not tested. The lectures are video only, and the course includes a lab guide, command scripts and lab files for every lab video; every command and every result is also on the screen, and nothing is paywalled inside the course. The narration voice is AI generated.
The course is written for beginners: aspiring network and security engineers, Linux and system administrators, and students who want to understand how an IPsec VPN with IKEv2 really works.
This course contains the use of artificial intelligence.
Curriculum Outline
Welcome and what you will build
Lab preparation: servers, tools and AI help
What IPsec is: tunnel, ESP, security associations
What IKEv2 does: two phases in four messages
Install strongSwan on Rocky 9 and Ubuntu 24.04
The parts of swanctl.conf
Open the firewall for IPsec
Your first tunnel with a pre-shared key
Test the tunnel: ping from LAN to LAN
See the traffic: ESP and port 4500
Look inside: xfrm state and policy
Start, stop and restart the tunnel
IKE and ESP proposals: choose algorithms
Lifetimes and rekeying
Dead peer detection and auto reconnect
Traffic selectors: more than one subnet
Wrong key, wrong ID: read the errors
Why certificates: the limits of a pre-shared key
Make a CA and certificates with openssl
Site to site with certificates
Certificate problems: wrong name, untrusted C A, expired
IKEv2 remote access: the idea
Remote access server: pool and EAP users
Remote access client: connect and get a virtual IP
Wrong password and removing a user
Logs and debugging with charon
Monitoring: counters and ip xfrm monitor
MTU and MSS problems
Troubleshooting drills
Security basics: strong algorithms, PFS, key handling
Cleanup, cheat sheet and outro