[Openswan Users] OpenSwan on CentOS Container

Sid Ray sid.ray90 at gmail.com
Sun Mar 17 15:56:16 EDT 2019


Hello,
I am working on installing OpenSwan on CentOS container but am gettings
errors. I followed the steps as below:
- Create a systemd base docker image using instructions from (see
section - Dockerfile
for systemd base image):
https://hub.docker.com/_/centos/
docker build --rm -t local/c7-systemd .


- Then using the Dockerfile (attached) created an image with OpenSwan:

docker build --rm -t local/c7-systemd-openswan .


- Run the container using:

docker run --privileged=true -ti --tmpfs /tmp --tmpfs /run -v
/sys/fs/cgroup:/sys/fs/cgroup:ro -p 506:506 local/c7-systemd-openswan sh


Still getting the DBUS error - Any ideas as why this is happening although
this is a systemd enabled image and is running in the priv mode?

Hello World

Making changes to kernel for network module

Making changes to the ipsec.conf. Putting in the network addresses of
clusters for VPN tunneling.

net.ipv4.conf.all.send_redirects = 0

net.ipv4.conf.all.accept_redirects = 0

net.ipv4.ip_forward = 1

Failed to get D-Bus connection: Operation not permitted

Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket:
No such file or directory

Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket:
No such file or directory

Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket:
No such file or directory

Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket:
No such file or directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openswan.org/pipermail/users/attachments/20190317/b5ce1cee/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dockerfile
Type: application/octet-stream
Size: 583 bytes
Desc: not available
URL: <http://lists.openswan.org/pipermail/users/attachments/20190317/b5ce1cee/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.sh
Type: text/x-sh
Size: 2203 bytes
Desc: not available
URL: <http://lists.openswan.org/pipermail/users/attachments/20190317/b5ce1cee/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: env.list
Type: application/octet-stream
Size: 118 bytes
Desc: not available
URL: <http://lists.openswan.org/pipermail/users/attachments/20190317/b5ce1cee/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipsec.conf
Type: application/octet-stream
Size: 478 bytes
Desc: not available
URL: <http://lists.openswan.org/pipermail/users/attachments/20190317/b5ce1cee/attachment-0002.obj>


More information about the Users mailing list