Re: [Openvpn-users] OpenVPN with LZ4
Thanx Gert for the explanation. I get the following: ldd openvpn linux-vdso.so.1 => (0x7ffc2e1da000) libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x7fd04c672000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x7fd04c45c000) liblzo2.so.2 => /usr/lib/x86_64-linux-gnu/liblzo2.so.2 (0x7fd04c23b000) libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x7fd04bfda000) libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x7fd04bbe) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7fd04b9dc000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fd04b64f000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7fd04b438000) /lib64/ld-linux-x86-64.so.2 (0x7fd04c88a000) Seems that lz4 is statically linked as is it not shown above and the deb file is sufficient to deploy this new update without installing any other packages. Thanx, Abi On Thu, Aug 24, 2017 at 10:08 PM, Gert Doeringwrote: > Hi, > > this is a question better suited for openvpn-devel, really... > > On Thu, Aug 24, 2017 at 08:12:13PM +0300, Abi Askushi wrote: > > apt-get install libpam0g-dev liblzo2-dev liblz4-dev > [..] > > Then I created a deb file from the above. > > > > Do I need to install any LZ4 libraries on other devices where the > resulting > > openvpn deb file is to be installed? > > That depends on whether liblz4-dev installs a shared library (liblz4.so) > or only a static library (liblz4.a). The static library is fully embedded > into the openvpn binary, so you do not need anything "extra" - for the > dynamic library, you'll likely need "liblz4" on the target system. > > > I was thinking that Lz4 tools might not be needed and that LZ4 > compression > > will be handled from the kernel. (When installing the deb file without > > installing any LZ4 user space tools I did not receive any warning or > error > > and the VPN tunnnel was able to establish) > > OpenVPN does not use kernel side compression. > > If you can start the openvpn binary, everything that is needed is there > (so, either liblz4.so was already there on the system, or it liblz4.a > was statically linked). > > You can find out running "ldd openvpn" on your openvpn binary - if > liblz4. shows up, it needs the dynamic library. Everything > that does *not* show up is built-in (or not a direct dependency). > > gert > > -- > USENET is *not* the non-clickable part of WWW! >// > www.muc.de/~gert/ > Gert Doering - Munich, Germany > g...@greenie.muc.de > fax: +49-89-35655025g...@net.informatik.tu- > muenchen.de > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users
Re: [Openvpn-users] OpenVPN with LZ4
Hi, this is a question better suited for openvpn-devel, really... On Thu, Aug 24, 2017 at 08:12:13PM +0300, Abi Askushi wrote: > apt-get install libpam0g-dev liblzo2-dev liblz4-dev [..] > Then I created a deb file from the above. > > Do I need to install any LZ4 libraries on other devices where the resulting > openvpn deb file is to be installed? That depends on whether liblz4-dev installs a shared library (liblz4.so) or only a static library (liblz4.a). The static library is fully embedded into the openvpn binary, so you do not need anything "extra" - for the dynamic library, you'll likely need "liblz4" on the target system. > I was thinking that Lz4 tools might not be needed and that LZ4 compression > will be handled from the kernel. (When installing the deb file without > installing any LZ4 user space tools I did not receive any warning or error > and the VPN tunnnel was able to establish) OpenVPN does not use kernel side compression. If you can start the openvpn binary, everything that is needed is there (so, either liblz4.so was already there on the system, or it liblz4.a was statically linked). You can find out running "ldd openvpn" on your openvpn binary - if liblz4. shows up, it needs the dynamic library. Everything that does *not* show up is built-in (or not a direct dependency). gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025g...@net.informatik.tu-muenchen.de signature.asc Description: PGP signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users
[Openvpn-users] OpenVPN with LZ4
Hi All, I have compiled that latest openvpn 2.4.3, as below: apt-get install libpam0g-dev liblzo2-dev liblz4-dev ./configure --build=x86_64-linux-gnu --prefix=/usr --sysconfdir=/etc OPENSSL_LIBS="-L/usr/local/ssl/lib -lssl -lcrypto" OPENSSL_CFLAGS="-I/usr/local/ssl/include" --disable-debug --disable-dependency-tracking --with-crypto-library=openssl --enable-iproute2 make make install Then I created a deb file from the above. Do I need to install any LZ4 libraries on other devices where the resulting openvpn deb file is to be installed? I was thinking that Lz4 tools might not be needed and that LZ4 compression will be handled from the kernel. (When installing the deb file without installing any LZ4 user space tools I did not receive any warning or error and the VPN tunnnel was able to establish) Thanx, Abi -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users