-
Notifications
You must be signed in to change notification settings - Fork 113
Since v3 not working #66
Comments
There shouldn't be anything needed. I probably just missed something when converting to nftables. Can you run this and upload the file here?
|
Thanks, that is probably the reason why the command
Does this command need to be executed before or after the upgrade? |
here the output (when executed on v3): Had to rename to |
Thanks, so I just applied this exact config in my container and it works just fine. Can you share your |
I start the container with docker compose. the compose file is this:
On none of my Synos and servers the v3 is working as it throws the error mentioned above. But on one NAS (also Syno) it even makes it ununable. |
Strange. That's basically exactly how I run it as well without issue. Can you run this inside the container AND on the host itself and share the outputs?
|
Syno1Host: Container v2.1.1: Container v3.0.0: Syno2Host: Container v2.1.1: Container v3.0.0: Is it the wrong command or is "nothing" to be expected? Command for in container is for me like this:
|
I am getting a similar error. The container restarts infinitely so I don't seem to be able to pull nf_tables. In case it matters, my vpn.conf file looks like. As far as I understand this is a standard unified format, but please let me know if I futzed something.
|
After going back to It now always says: All this, while in the logs are no errors. |
It’s the nftables change. It looks like the underlying hosts also need to be using nftables for the container to use it.
I’ll dig more into it soon. Until then, try a 2.x version.
…Sent from my iPhone
On Jun 15, 2022, at 5:26 PM, Martin Hotmann ***@***.***> wrote:
After going back to image: ghcr.io/wfg/openvpn-client:2.1.1 nothing works anymore. Even the old v2.1.1 not.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Thanks. Do we get a " BTW, working again after this command:
|
Well I did bump the major version here (2 -> 3), which indicates there are breaking changes. I can't help if people use the tag You can see the existing tags here: https://github.com/wfg/docker-openvpn-client/pkgs/container/openvpn-client |
Aaaah and I always looked at the wrong place :P |
Understandable, 2.1.1 working great here. I'll just update my compose to the effect for now. |
@MartinHotmann @mindset-tk if either one of you could try 3.0.0 once more and send me the output of |
So I seem to be having some trouble with
Finally it ends with:
My services:
vpn_bittorrent:
extends:
file: ../vpn/container-compose.yml
service: openvpn-client
container_name: vpn_bittorrent
volumes:
- /mnt/data/container_data/vpn:/data/vpn
ports:
- xxxxxx:xxxxxx
- yyyyyy:yyyyyy/udp
- 8081:8081/tcp
environment:
- SUBNETS=172.18.0.0/16
- KILL_SWITCH=on
- VPN_CONFIG_FILE=vpn_config
labels:
- "traefik.enable=true"
- "traefik.http.routers.qbittorrent.tls=true"
- "traefik.http.routers.qbittorrent.entrypoints=websecure"
- "traefik.http.routers.qbittorrent.rule=Host(`qbittorrent.$MY_DOMAIN`)"
qbittorrent:
image: ghcr.io/linuxserver/qbittorrent
container_name: qbittorrent
network_mode: service:vpn_bittorrent
environment:
- PUID=1003
- PGID=1004
- WEBUI_PORT=8081
volumes:
- /mnt/data/container_data/qbittorrent:/config
- /mnt/data/shared/incoming:/mnt/shared/incoming
restart: unless-stopped
networks:
default:
external:
name: $DEFAULT_NETWORK The common part of the container is just: services:
openvpn-client:
image: ghcr.io/wfg/openvpn-client
#build:
# context: ./docker-openvpn-client
# dockerfile: Dockerfile
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
restart: unless-stopped ghcr.io/wfg/openvpn-client:2.1.1 works for me. |
I am using docker version 20.10.17 and the host OS is Debian v11 Bullseye. I had the same issue with v3 and the container just kept restarting and I found lots of copies of .conf files (owned by root) in the config folder on my host that were time stamped from the various attempts. Normally on v2.1.1 it would copy my openvpn.conf file and create a file called openvpn.conf.modified I then did a docker stop openvpn-client, followed by a docker rm openvpn-client and finally I deleted the image using docker rmi ghcr.io/wfg/openvpn-client:latest I then modified my compose file to point to config 2.1.1 and then rebuilt the container and v2.1.1 worked as before. I then stopped the v2.1.1 container, deleted it and the image, modified the compose file to point to v3 and then rebuilt the container again. This time the v3 container came up first time and it copied my openvpn.conf file to a file called openvpn.3uqHskTH.conf (owned by root) Output from lsmod inside the v3 container is: Logfile for the v3_container is: Hope the above information helps in some way. I'll keep running the v3 container for now and let you know if I notice anything odd. |
Similar problem here. After docker start I'm getting following errors:
Going back to v 2.1.1 solves the problem. |
V3 is still working and running healthy for the last 5 days, If you are having issues, maybe try the following as it worked for me:
|
Sorry for the delay. I had to do something a little hacky to make this work, since the container wanted to reboot infinitely and prevented me from running lsmod. I set it to run the following script at startup instead of the standard entrypoint. all it does is force the container to stay running after completing the standard entry.sh that it normally calls.
then I was able to get in and run lsmod: |
I tried this, no success for me. |
There defintely seems to be an issue. In this case I did a I deleted all the VPN configs, and tried again:
I tried this with a simpler setup: services:
vpn_test:
extends:
file: ../vpn/container-compose.yml
service: openvpn-client
container_name: vpn_test
volumes:
- /mnt/data/container_data/vpn:/data/vpn
ports:
- 8123:8123/tcp
environment:
- KILL_SWITCH=on
- SUBNETS=172.18.0.0/16
- VPN_CONFIG_FILE=vpn_config_name
labels:
- "traefik.enable=true"
- "traefik.http.routers.test.tls=true"
- "traefik.http.routers.test.entrypoints=websecure"
- "traefik.http.routers.test.rule=Host(`test.$MY_DOMAIN`)"
test:
image: busybox
container_name: test
network_mode: service:vpn_test
command: httpd -f -p 8123 -h /etc/
networks:
default:
external:
name: $DEFAULT_NETWORK Things seemed to work in that.
|
So I removed the qbittorrent section, did a system prune and just had: services:
vpn_bittorrent:
extends:
file: ../vpn/container-compose.yml
service: openvpn-client
container_name: vpn_bittorrent
volumes:
- /mnt/data/container_data/vpn:/data/vpn
ports:
- 26129:26129
- 26129:26129/udp
- 8081:8081/tcp
environment:
- KILL_SWITCH=on
- SUBNETS=172.18.0.0/16
- VPN_CONFIG_FILE=vpn_config_name
labels:
- "traefik.enable=true"
- "traefik.http.routers.qbittorrent.tls=true"
- "traefik.http.routers.qbittorrent.entrypoints=websecure"
- "traefik.http.routers.qbittorrent.rule=Host(`qbittorrent.$MY_DOMAIN`)" When starting I get:
In between these tests I did a Obviously wiping everything and going back to 2.1.1 everything works as it did. |
Hi everyone, v3 seems to only work if your underlying host also uses I will try to spend time on it at the end of this week. In the meantime, stick with v2. And stop using |
Can someone that has issues with v3.0.0 please build the latest commit and test? The build script can be used like this:
which will build the image |
Yes my underlying system does use iptables, the reason for that is because of moby/moby#26824 - docker still doesn't have native nftables support. I also haven't figured out a way to make alpine linux use iptables-nft by default. Nobody seemed to know the answer. Maybe now would be a good time to switch to podman as that has it.
Can do. |
My Fedora server uses
( This also explains how You can read more about
v3.1.0 has been pushed, so you can just pull it. You don't have to build now. |
I can confirm 3.1.0 is now working for me on Synology. |
Yeah this is what Debian does, and you can change it with the I'm actually thinking of retiring Alpine Linux and using Proxmox instead as my host OS. Can then run a VM with any OS I like. I would have chosen XCP-ng but they don't yet support encrypted zfs nor does it natively support clone, destroy, snapshot and replicate features of ZFS. |
I'm confident this has been resolved in v3.1.0, so I'm going to close. |
I today updated my VPN image to v3.0.0 (just relased) and my previous setup, which workled perfectly fine is now not working anymore.
There is nothing I changed. After reverting back to 2.1.1 everything works again.
Is there something I need to do when upgrading to v3.0.0?
Errorlos just shows this:
config/nftables.conf:31:1-93: Error: Could not process rule: Invalid argument
repeatinglyThe text was updated successfully, but these errors were encountered: