You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when doing systemctl list-dependencies scionlab.target neither [email protected] not [email protected] are visible (respectively on the client and AP).
The main issue in here is the fact that membership in a target is defined in the source service, not in the target itself. Therefore what requires a modification is /lib/systemd/system/[email protected] which is shipped by openvpn package.
This is strictly forbidden for us to modify this file directly, but we can use systemd killer feature of drop-ins, i.e. create /etc/systemd/system/[email protected]/override.conf(or ... @server.service.d ... for the AP) with the content as follows
[Install]
WantedBy=scionlab.target
Not to be so easy, there is a caveat with this - as we are using super old Ubuntu 16.04 with super old systemd there, we cannot override [Install] section in the drop-in file. The following commit in systemd enables overriding this section -- systemd/systemd@caa45f5, however Ubuntu 16.04 does not seem to backport this.
TLDR; Ubuntu 16.04 + systemd 229 do not allow solving this issue in an elegant way
This adds dependency on the network interface lan0. Please note it should be added in the scionlab.target thus the change should be done in the scion-builder repository
Currently when doing
systemctl list-dependencies scionlab.target
neither[email protected]
not[email protected]
are visible (respectively on the client and AP).The main issue in here is the fact that membership in a target is defined in the source service, not in the target itself. Therefore what requires a modification is
/lib/systemd/system/[email protected]
which is shipped byopenvpn
package.This is strictly forbidden for us to modify this file directly, but we can use systemd killer feature of drop-ins, i.e. create
/etc/systemd/system/[email protected]/override.conf
(or... @server.service.d ...
for the AP) with the content as followsNot to be so easy, there is a caveat with this - as we are using super old Ubuntu 16.04 with super old systemd there, we cannot override
[Install]
section in the drop-in file. The following commit in systemd enables overriding this section -- systemd/systemd@caa45f5, however Ubuntu 16.04 does not seem to backport this.TLDR; Ubuntu 16.04 + systemd 229 do not allow solving this issue in an elegant way
Linked-issue: https://gitlab.inf.ethz.ch/OU-PERRIG/scionlab/scion-builder/issues/13
The text was updated successfully, but these errors were encountered: