Gang, I am having troubles with DelugeVPN establishing vpn. I am running this docker on an OpenMediaVault VM, not an UnRaid server.
My docker is unable to establish VPN and when I look far enough back in my logs I see a few interesting things. I will paraphrase...
...
getsockopt failed strangely: Operation not permitted
...
iptables v1.8.4 (legacy): can't initialize iptables table `filter': Permission denied (you must be root)
...
Thu Mar 19 11:53:58 2020 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
...
I am not running the image with --priveleged but I am running it with net_admin. I am not that familiar with arch or pacman in general but when I console in to the container it looks like sudo is not installed. Is sudo necessary to load iptables? If I try to install sudo 'pacman -S sudo' I get errors
...
error: failed retrieving file 'sudo-1.8.31-1-x86_64.pkg.tar.zst' from mirror.pseudoform.org : The requested URL returned error: 404
...
Errors occurred, no packages were upgraded.
...
I am just assuming sudo is necessary because when I try to run iptables without sudo I get an error...
[root@openmediavault /]# iptables -L
iptables v1.8.4 (legacy): can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Any assistance is greatly appreciated!!!
--------------------------------------------------
Edit: After looking through a clean supervisord.log in with debug enabled, I am seeing errors loading iptables_mangle. The script mentions loading iptables_mangle from /lib/modules/xxxxxx and sure enough /lib/modules does not even exist.
Edit: I resolved the issue. I believed I was running with net_admin capabilities but I was wrong. I am using portainer, which is kinda handy. But in all the iterations of deleting and re-creating the container I must have forgotten to enable at some point.