This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |