If this is for an ad-hoc VPN connection, you should be able to build and run it inside `toolbox`. Otherwise, as Nick said: run it in a container. Because it requires the ability to create tun/tap devices, it will need to be a privileged container with access to at least `/dev`, and you may need to add `ExecStartPre=/usr/sbin/modprobe tun` in your systemd/fleet unit for it.
It looks like it only links to libraries which are present in CoreOS, though, so if you do have to run it bare, for some reason, you can probably copy the binary over from Ubuntu: ~/d/v/vpnc-0.5.3 $ ldd vpnc linux-vdso.so.1 (0x00007ffe1647d000) libgcrypt.so.20 => /usr/lib64/libgcrypt.so.20 (0x00007f410eabd000) libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007f410e8aa000) libc.so.6 => /lib64/libc.so.6 (0x00007f410e50d000) /lib64/ld-linux-x86-64.so.2 (0x00007f410eda0000) On Thu, Jul 7, 2016 at 6:51 PM Nick Owens <[email protected]> wrote: > On 07/07/2016 03:26 PM, Derek Mahar wrote: > > How could I build and run vpnc < > https://www.unix-ag.uni-kl.de/~massar/vpnc/> on > > CoreOS? Could I build it on Ubuntu and then install the binary on > CoreOS? > > is there any reason you can't run it in a rkt or docker container? > > if you really cannot, then the binary should be statically linked. > dynamically linked binaries from other systems either will not work > because of missing libraries, or will potentially crash at runtime due > to ABI problems, so it's not a very good idea. > > > > > Derek > > > -- Seán C McCord CyCore Systems, Inc +1 888 240 0308 PGP/GPG: http://cycoresys.com/scm.asc
