diff options
author | Gabriel Oginski <gabrielx.oginski@intel.com> | 2022-07-08 07:46:32 +0000 |
---|---|---|
committer | Fan Zhang <royzhang1980@hotmail.com> | 2022-09-28 17:46:04 +0000 |
commit | 95875774bc69a81b1a17963642fc574070ba37d0 (patch) | |
tree | 3792511fa634de36caad77279f8d04c381c4474b /extras/strongswan/vpp_sswan/docker/scripts/init_docker2.sh | |
parent | 4e88e041ad47bf422bbb2a0940f77aba11ea2178 (diff) |
vpp-swan: Add scripts for testing
Added scripts to reparing setups for testing
To prepare and run containers:
sudo ./extras/strongswan/vpp_sswan/docker/run.sh prepare_containers
To prepare setups:
sudo ./extras/strongswan/vpp_sswan/docker/run.sh config
To clean-up settups:
sudo ./extras/strongswan/vpp_sswan/docker/run.sh clean
To deleted all containers and images in Docker:
sudo ./extras/strongswan/vpp_sswan/docker/run.sh deleted
Type: feature
Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com>
Change-Id: I77f01c0419dccc95f610046c8552ae825f2c7e12
Diffstat (limited to 'extras/strongswan/vpp_sswan/docker/scripts/init_docker2.sh')
-rw-r--r-- | extras/strongswan/vpp_sswan/docker/scripts/init_docker2.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extras/strongswan/vpp_sswan/docker/scripts/init_docker2.sh b/extras/strongswan/vpp_sswan/docker/scripts/init_docker2.sh new file mode 100644 index 00000000000..2e38fbabca2 --- /dev/null +++ b/extras/strongswan/vpp_sswan/docker/scripts/init_docker2.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +echo "Initialization Docker 2 - SSWAN in kernel" + +# tested only with 5.9.5 and 5.9.6 version of strongSwan +VERSION_SSWAN=5.9.6 + +curl -o ./strongswan-${VERSION_SSWAN}.tar.gz -LO https://github.com/strongswan/strongswan/archive/${VERSION_SSWAN}.tar.gz; +tar -zxof ./strongswan-${VERSION_SSWAN}.tar.gz + +cd /root/strongswan-${VERSION_SSWAN} +./autogen.sh +./configure --prefix=/usr --sysconfdir=/etc --enable-libipsec --enable-systemd --enable-swanctl --disable-gmp --enable-openssl +make -j$(nproc) +sudo make install + +sudo cp /root/vpp_sswan/docker/configs/swanctl_docker2.conf /etc/swanctl/conf.d/swanctl.conf + +sudo systemctl daemon-reload +sudo systemctl restart strongswan.service + +echo "### Loaded plugin in strogswan" +sudo swanctl --stats |