Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS Linux release 7.2.1511 (Core) error #8

Closed
xfree86 opened this issue Aug 20, 2016 · 8 comments
Closed

CentOS Linux release 7.2.1511 (Core) error #8

xfree86 opened this issue Aug 20, 2016 · 8 comments

Comments

@xfree86
Copy link

xfree86 commented Aug 20, 2016

docker run
--name ipsec-vpn-server
--env-file ./vpn.env
-p 500:500/udp
-p 4500:4500/udp
-v /lib/modules:/lib/modules:ro
-d --privileged
hwdsl2/ipsec-vpn-server

modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.5.5-x86_64-linode69/modules.dep.bin'
Redirecting to: /etc/init.d/ipsec start
Starting pluto IKE daemon for IPsec: Initializing NSS database

xl2tpd[1]: setsockopt recvref[30]: Protocol not available
xl2tpd[1]: This binary does not support kernel L2TP.
xl2tpd[1]: xl2tpd version xl2tpd-1.3.6 started on 6538e2d25626 PID:1
xl2tpd[1]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[1]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[1]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[1]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[1]: Listening on IP address 0.0.0.0, port 1701

docker: Error response from daemon: driver failed programming external connectivity on endpoint ipsec-vpn-server (87fb4aaf354e190bb59ecb3f5874d9be47b57ced728ebe6958784d92d8f70199): iptables failed: iptables --wait -t nat -A DOCKER -p udp -d 0/0 --dport 4500 -j DNAT --to-destination 172.17.0.2:4500 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1).

CentOS Linux release 7.2.1511 (Core)

@hwdsl2
Copy link
Owner

hwdsl2 commented Aug 20, 2016 via email

@hwdsl2
Copy link
Owner

hwdsl2 commented Aug 24, 2016

@xfree86 Closing due to inactivity.

@hwdsl2 hwdsl2 closed this as completed Aug 24, 2016
@quinnsam
Copy link

I am also on Centos 7 and am experiencing this issue. I have followed the linode steps and I already have the latest distribution-provided kernel and grub. Any suggestions?

@hwdsl2
Copy link
Owner

hwdsl2 commented Nov 10, 2016

@quinnsam Please post the output of these commands, with your VPN details removed:

uname -a
ls -l /lib/modules
docker logs ipsec-vpn-server

@quinnsam
Copy link

$ uname -a
Linux Xi 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ ls -l /lib/modules
total 20
drwxr-xr-x. 5 root root 4096 Oct 28 08:58 ./
dr-xr-xr-x. 53 root root 4096 Nov 1 21:50 ../
drwxr-xr-x. 7 root root 4096 Nov 1 17:40 3.10.0-327.36.1.el7.x86_64/
drwxr-xr-x. 7 root root 4096 Nov 1 17:40 3.10.0-327.36.2.el7.x86_64/
drwxr-xr-x. 8 root root 4096 Nov 1 21:50 3.10.0-327.36.3.el7.x86_64/

$ docker logs ipsec-vpn-server
Trying to auto discover IPs of this server...

IPsec VPN server is now ready for use!

Connect to your new VPN with these details:

Server IP: _..**.**_
IPsec PSK: ************
Username: *************
Password: **************

Write these down. You'll need them to connect!

Setup VPN clients: https://git.io/vpnclients

Redirecting to: /etc/init.d/ipsec start
Starting pluto IKE daemon for IPsec: Initializing NSS database

.
xl2tpd[1]: setsockopt recvref[30]: Protocol not available
xl2tpd[1]: This binary does not support kernel L2TP.
xl2tpd[1]: xl2tpd version xl2tpd-1.3.6 started on 5d72aa3f88b2 PID:1
xl2tpd[1]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[1]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[1]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[1]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[1]: Listening on IP address 0.0.0.0, port 1701

@hwdsl2
Copy link
Owner

hwdsl2 commented Nov 11, 2016

@quinnsam Thanks for the details. The outputs all look fine. Your VPN server should be working now. Please check.

@quinnsam
Copy link

It is thank you!

@doing-cr7
Copy link

systemctl restart docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants