OpenVPN / ovpn-dco

OpenVPN Data Channel Offload in the linux kernel
101 stars 23 forks source link

SSL warning, problem with signing kernel module and "missing 'System.map'" #25

Closed purum-pum-pum closed 1 year ago

purum-pum-pum commented 1 year ago

I have VPS with Ubuntu 22/04 I started making install of openvpn and ovpn-dco by this intsruction - https://github.com/purum-pum-pum/openvpn-DCO-conf

After compiling DCO module, I started installation/ I got an error:

root@srv1677959661:/home/ovpn-dco# sudo make install
/home/ovpn-dco/gen-compat-autoconf.sh /home/ovpn-dco/compat-autoconf.h
make -C /lib/modules/5.15.0-67-generic/build M=/home/ovpn-dco PWD=/home/ovpn-dco REVISION=0.2.20230313 CONFIG_OVPN_DCO_V2=m INSTALL_MOD_DIR=updates/ modules_install
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-67-generic'
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
  INSTALL /lib/modules/5.15.0-67-generic/updates//drivers/net/ovpn-dco/ovpn-dco-v2.ko
  SIGN    /lib/modules/5.15.0-67-generic/updates//drivers/net/ovpn-dco/ovpn-dco-v2.ko
At main.c:167:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  /lib/modules/5.15.0-67-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-67-generic'
depmod -a

Help me please. Maybe you can edit make configs to do more easy process of installation from src

cron2 commented 1 year ago

Hi,

On Thu, Mar 16, 2023 at 01:27:28PM -0700, Andrew R. wrote:

At main.c:167:

  • SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
  • SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75 sign-file: certs/signing_key.pem: No such file or directory

This is not really an error, it just tells you "you have no key to sign the modules" - which is optimal, unless you have secure boot active.

DEPMOD /lib/modules/5.15.0-67-generic Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-67-generic' depmod -a`

Not sure about that one, but it should also work without.

What happens if you do "modprobe ovpn-dco-v2"? If that works, everything is ready to go (and you need openvpn from git as well, to work with v2 kernel).

gert -- "If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany @.***

ordex commented 1 year ago

Closing due to inactivity.