[GH-ISSUE #9] centos7.2 Permission denied (you must be root) #8

Closed
opened 2026-03-02 07:11:00 +03:00 by kerem · 1 comment
Owner

Originally created by @zhanggl on GitHub (Sep 7, 2016).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/9

Please Help. Thanks.

Linux iZu1na35il8Z 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[admin@iZu1na35il8Z ~]$ sudo  docker run hwdsl2/ipsec-vpn-server

VPN credentials not set by user. Generating random PSK and password...

Trying to auto discover IPs of this server...
sysctl: setting key "kernel.msgmnb": Read-only file system
sysctl: setting key "kernel.msgmax": Read-only file system
sysctl: setting key "kernel.shmmax": Read-only file system
sysctl: setting key "kernel.shmall": Read-only file system
sysctl: setting key "net.ipv4.ip_forward": Read-only file system
sysctl: setting key "net.ipv4.conf.all.accept_source_route": Read-only file system
sysctl: setting key "net.ipv4.conf.default.accept_source_route": Read-only file system
sysctl: setting key "net.ipv4.conf.all.accept_redirects": Read-only file system
sysctl: setting key "net.ipv4.conf.default.accept_redirects": Read-only file system
sysctl: setting key "net.ipv4.conf.all.send_redirects": Read-only file system
sysctl: setting key "net.ipv4.conf.default.send_redirects": Read-only file system
sysctl: setting key "net.ipv4.conf.lo.send_redirects": Read-only file system
sysctl: setting key "net.ipv4.conf.eth0.send_redirects": Read-only file system
sysctl: setting key "net.ipv4.conf.all.rp_filter": Read-only file system
sysctl: setting key "net.ipv4.conf.default.rp_filter": Read-only file system
sysctl: setting key "net.ipv4.conf.lo.rp_filter": Read-only file system
sysctl: setting key "net.ipv4.conf.eth0.rp_filter": Read-only file system
sysctl: setting key "net.ipv4.icmp_echo_ignore_broadcasts": Read-only file system
sysctl: setting key "net.ipv4.icmp_ignore_bogus_error_responses": Read-only file system
getsockopt failed strangely: Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
getsockopt failed strangely: Operation not permitted
getsockopt failed strangely: Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
getsockopt failed strangely: Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `nat': Permission denied (you must be root)
Originally created by @zhanggl on GitHub (Sep 7, 2016). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/9 Please Help. Thanks. ``` Linux iZu1na35il8Z 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` ``` [admin@iZu1na35il8Z ~]$ sudo docker run hwdsl2/ipsec-vpn-server VPN credentials not set by user. Generating random PSK and password... Trying to auto discover IPs of this server... sysctl: setting key "kernel.msgmnb": Read-only file system sysctl: setting key "kernel.msgmax": Read-only file system sysctl: setting key "kernel.shmmax": Read-only file system sysctl: setting key "kernel.shmall": Read-only file system sysctl: setting key "net.ipv4.ip_forward": Read-only file system sysctl: setting key "net.ipv4.conf.all.accept_source_route": Read-only file system sysctl: setting key "net.ipv4.conf.default.accept_source_route": Read-only file system sysctl: setting key "net.ipv4.conf.all.accept_redirects": Read-only file system sysctl: setting key "net.ipv4.conf.default.accept_redirects": Read-only file system sysctl: setting key "net.ipv4.conf.all.send_redirects": Read-only file system sysctl: setting key "net.ipv4.conf.default.send_redirects": Read-only file system sysctl: setting key "net.ipv4.conf.lo.send_redirects": Read-only file system sysctl: setting key "net.ipv4.conf.eth0.send_redirects": Read-only file system sysctl: setting key "net.ipv4.conf.all.rp_filter": Read-only file system sysctl: setting key "net.ipv4.conf.default.rp_filter": Read-only file system sysctl: setting key "net.ipv4.conf.lo.rp_filter": Read-only file system sysctl: setting key "net.ipv4.conf.eth0.rp_filter": Read-only file system sysctl: setting key "net.ipv4.icmp_echo_ignore_broadcasts": Read-only file system sysctl: setting key "net.ipv4.icmp_ignore_bogus_error_responses": Read-only file system getsockopt failed strangely: Operation not permitted iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. getsockopt failed strangely: Operation not permitted getsockopt failed strangely: Operation not permitted iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. getsockopt failed strangely: Operation not permitted iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. iptables v1.4.21: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. iptables v1.4.21: can't initialize iptables table `nat': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded. iptables v1.4.21: can't initialize iptables table `nat': Permission denied (you must be root) ```
kerem closed this issue 2026-03-02 07:11:00 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Sep 7, 2016):

@zhanggl Your command "docker run hwdsl2/ipsec-vpn-server" is incomplete. Please carefully read and follow all instructions in the project README [1].

[1] https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/README.md

<!-- gh-comment-id:245383281 --> @hwdsl2 commented on GitHub (Sep 7, 2016): @zhanggl Your command "docker run hwdsl2/ipsec-vpn-server" is incomplete. Please carefully read and follow all instructions in the project README [1]. [1] https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/README.md
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#8
No description provided.