Place1/wg-access-server

can't initialize iptables table `filter': Table does not exist

fcwys opened this issue · 1 comments

fcwys commented
INFO[0000]main.go:85 starting wireguard server on 0.0.0.0:51820   
INFO[0000]main.go:99 wireguard VPN network is 10.44.0.0/24        
FATA[0000]main.go:102 failed to set ip tables rule: running [/sbin/iptables -t filter -C WG_ACCESS_SERVER_FORWARD -s 10.44.0.0/24 -d 0.0.0.0/0 -j ACCEPT --wait]: exit status 3: modprobe: can't change directory to '/lib/modules': No such file or directory
iptables v1.8.3 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded. 
[root@localhost ~]# docker run   -it   --rm   --cap-add NET_ADMIN   --device /dev/net/tun:/dev/net/tun   -v wg-access-server-data:/data   -e "WG_ADMIN_PASSWORD=$WG_ADMIN_PASSWORD"   -e "WG_WIREGUARD_PRIVATE_KEY=$WG_WIREGUARD_PRIVATE_KEY"   -p 8601:8000/tcp   -p 8600:51820/udp   place1/wg-access-server
INFO[0000]main.go:85 starting wireguard server on 0.0.0.0:51820   
INFO[0000]main.go:99 wireguard VPN network is 10.44.0.0/24        
FATA[0000]main.go:102 failed to set ip tables rule: running [/sbin/iptables -t filter -C WG_ACCESS_SERVER_FORWARD -s 10.44.0.0/24 -d 0.0.0.0/0 -j ACCEPT --wait]: exit status 3: modprobe: can't change directory to '/lib/modules': No such file or directory
iptables v1.8.3 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

You may want to try out the fork over at https://github.com/freifunkMUC/wg-access-server.

If there still are any problems, feel free to open an issue over there.