<div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="arial, helvetica, sans-serif">Hello,</font><div><font face="arial, helvetica, sans-serif">I am working on installing OpenSwan on CentOS container but am gettings errors. I followed the steps as below:</font></div><div><font face="arial, helvetica, sans-serif">- Create a systemd base docker image using instructions from (see section - <span style="color:rgb(69,69,69)">Dockerfile for systemd base image</span>):</font></div>
<div><font face="arial, helvetica, sans-serif"><a href="https://hub.docker.com/_/centos/">https://hub.docker.com/_/centos/</a><br></font></div><div><div><font face="arial, helvetica, sans-serif">docker build --rm -t local/c7-systemd .</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">- Then using the Dockerfile (attached) created an image with OpenSwan:</font></div><div><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><font face="arial, helvetica, sans-serif"><span style="color:black">docker build --rm -t
local/c7-systemd-openswan .</span><span style="color:black"></span></font></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><span style="color:black"><font face="arial, helvetica, sans-serif"><br></font></span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><span style="color:black"><font face="arial, helvetica, sans-serif">- Run the container using:</font></span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><font face="arial, helvetica, sans-serif"><span style="color:black">docker run </span><span style="color:black;border:1pt none windowtext;padding:0in;background:yellow">--privileged=true </span><span style="color:black">-ti
--tmpfs /tmp --tmpfs /run -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 506:506
local/c7-systemd-openswan sh</span></font></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><span style="color:black"><font face="arial, helvetica, sans-serif"><br></font></span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt"><span style="color:black"><font face="arial, helvetica, sans-serif">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?</font></span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Hello World</span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Making changes to kernel for network module</span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Making changes to the ipsec.conf. Putting in the network addresses of clusters for VPN tunneling.</span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">net.ipv4.conf.all.send_redirects = 0</span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">net.ipv4.conf.all.accept_redirects = 0</span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">net.ipv4.ip_forward = 1</span></p><p class="gmail-p1" style="margin:0px;font:18px "Andale Mono";color:rgb(40,254,20);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Failed to get D-Bus connection: Operation not permitted</span></p><p class="gmail-p2" style="margin:0px;font:18px "Andale Mono";color:rgb(255,59,30);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory</span></p><p class="gmail-p2" style="margin:0px;font:18px "Andale Mono";color:rgb(255,59,30);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory</span></p><p class="gmail-p2" style="margin:0px;font:18px "Andale Mono";color:rgb(255,59,30);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory</span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt">
</p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Andale Mono";color:rgb(255,59,30);background-color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Error: DBUS_ERROR: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory</span></p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Andale Mono";color:rgb(255,59,30);background-color:rgb(0,0,0)"><br></p></div><div><br></div></div></div></div>