Skip to content

Instantly share code, notes, and snippets.

@dm0-
dm0- / test-ipsec.sh
Created March 10, 2017 00:28
Test IPSec between two containers
#!/bin/bash -ex
# Test IPSec with a tunnel between two containers.
# Provide /proc/net/pfkey since af_key.ko apparently isn't autoloaded.
sudo modprobe af_key
# Start and prepare the containers.
for host in left right
do
docker run \