[GH-ISSUE #77] In ubuntu 18.04, it can not startup #67

Closed
opened 2026-03-02 07:11:28 +03:00 by kerem · 5 comments
Owner

Originally created by @SOmeONee on GitHub (May 4, 2018).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/77

In container ,when run ipsec , error is :
FATAL ERROR: Failed to bind bcast socket in init_netlink() - Perhaps kernel was not compiled with CONFIG_XFRM. Errno 1: Operation not permitted

Originally created by @SOmeONee on GitHub (May 4, 2018). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/77 In container ,when run ipsec , error is : FATAL ERROR: Failed to bind bcast socket in init_netlink() - Perhaps kernel was not compiled with CONFIG_XFRM. Errno 1: Operation not permitted
kerem closed this issue 2026-03-02 07:11:29 +03:00
Author
Owner

@fl0wfr commented on GitHub (May 7, 2018):

xl2tpd is broken with kernel 4.15, see here : https://bugs.launchpad.net/ubuntu/+source/xl2tpd/+bug/1760796

<!-- gh-comment-id:387176774 --> @fl0wfr commented on GitHub (May 7, 2018): xl2tpd is broken with kernel 4.15, see here : https://bugs.launchpad.net/ubuntu/+source/xl2tpd/+bug/1760796
Author
Owner

@SOmeONee commented on GitHub (May 10, 2018):

Bad news. Thanks.

<!-- gh-comment-id:388207297 --> @SOmeONee commented on GitHub (May 10, 2018): Bad news. Thanks.
Author
Owner

@sharipov-ru commented on GitHub (May 12, 2018):

@SOmeONee

You can apply workaround from development version of xl2tpd as follows:

first, run this on your host (given your container is running):

docker exec -it ipsec-vpn-server bash

then inside a container:

apt-get install -y build-essential git libpcap0.8-dev
git clone -b 1.3.12 https://github.com/xelerance/xl2tpd.git
cd xl2tpd
make
cp xl2tpd /usr/sbin/xl2tpd
service xl2tpd restart

Then container restarts and you'll be able to connect (at least it's working for me, Ubuntu 18.04 on Digitalocean + L2TP/IPsec router client)

This is dirty workaround since it downloads a lot of packages for your container, but at least it works and may be an option for you.

Originally dev version installation instructions are posted here

<!-- gh-comment-id:388576868 --> @sharipov-ru commented on GitHub (May 12, 2018): @SOmeONee You can apply workaround from development version of xl2tpd as follows: first, run this on your host (given your container is running): ``` docker exec -it ipsec-vpn-server bash ``` then inside a container: ``` apt-get install -y build-essential git libpcap0.8-dev git clone -b 1.3.12 https://github.com/xelerance/xl2tpd.git cd xl2tpd make cp xl2tpd /usr/sbin/xl2tpd service xl2tpd restart ``` Then container restarts and you'll be able to connect (at least it's working for me, Ubuntu 18.04 on Digitalocean + L2TP/IPsec router client) This is dirty workaround since it downloads a lot of packages for your container, but at least it works and may be an option for you. Originally dev version installation instructions are posted [here](https://github.com/xelerance/xl2tpd/issues/147#issuecomment-386793985)
Author
Owner

@fl0wfr commented on GitHub (May 13, 2018):

Dirty workaround but that will make it until image gets an update.
Thanks @sharipov-ru !

<!-- gh-comment-id:388629338 --> @fl0wfr commented on GitHub (May 13, 2018): Dirty workaround but that will make it until image gets an update. Thanks @sharipov-ru !
Author
Owner

@SOmeONee commented on GitHub (May 13, 2018):

@sharipov-ru thanks very much

<!-- gh-comment-id:388660689 --> @SOmeONee commented on GitHub (May 13, 2018): @sharipov-ru thanks very much
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#67
No description provided.