[GH-ISSUE #2] can't modprobe af_key in debian8 #2

Closed
opened 2026-03-02 07:04:53 +03:00 by kerem · 2 comments
Owner

Originally created by @rainysia on GitHub (Jun 1, 2016).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/2

Hi mate,

I use debian8 (jessie) amd64 version, kernel 4.1.5-x86_64-linode61.
and can't modprobe af_key,

modprobe af_key
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'

Do you know how to add this? or maybe i need to rebuild kernel and enable IPSEC?

Thanks.

Originally created by @rainysia on GitHub (Jun 1, 2016). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/2 Hi mate, I use debian8 (jessie) amd64 version, kernel 4.1.5-x86_64-linode61. and can't modprobe af_key, `modprobe af_key` `modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'` Do you know how to add this? or maybe i need to rebuild kernel and enable IPSEC? Thanks.
kerem 2026-03-02 07:04:53 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@hwdsl2 commented on GitHub (Jun 1, 2016):

Hi @rainysia. On Linode you need to use a Debian-provided kernel via GRUB instead of a Linode-provided kernel, where some modules may be missing. Please refer to [1] for detailed steps.

[1] https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-distribution-supplied-kernel-with-kvm

<!-- gh-comment-id:223026963 --> @hwdsl2 commented on GitHub (Jun 1, 2016): Hi @rainysia. On Linode you need to use a Debian-provided kernel via GRUB instead of a Linode-provided kernel, where some modules may be missing. Please refer to [1] for detailed steps. [1] https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-distribution-supplied-kernel-with-kvm
Author
Owner

@rainysia commented on GitHub (Jun 2, 2016):

Thanks @hwdsl2, It works

<!-- gh-comment-id:223181782 --> @rainysia commented on GitHub (Jun 2, 2016): Thanks @hwdsl2, It works
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#2
No description provided.