tprasadtp / protonvpn-docker

ProtonVPN Wireguard Docker Image. Supports ARMv8 (64-bit ) and x86 (64-Bit).
GNU General Public License v3.0
278 stars 25 forks source link

[BUG] - Network traffic leaks during reconnections #122

Closed Avamander closed 1 year ago

Avamander commented 2 years ago

Version of protonvpn-docker

5.2.1

Credential & Plan

System Architecture

x86_64

Running on a NAS?

No

Container Runtime

Docker with defaults

Version of Kubernetes

NA

Version of docker/podman runtime

20.10.12

Troubleshooting

Relevant log output

[WARNING ] Reconnecting... 
[ERROR   ] Failed to reconnect 
[WARNING ] Trying with a fresh connection! 
[INFO    ] resolv.conf.backup - not found 
[NOTICE  ] Using fastest server from COUNTRY: XX 
[ERROR   ] There is no OpenVPN Process!! 
[WARNING ] Reconnecting... 

Any additional info

No response

Code of Conduct & PII Redaction

mike-lloyd03 commented 1 year ago

I'm seeing this problem as well. Is there a way to kill network connectivity during reconnections to avoid leaks?

mike-lloyd03 commented 1 year ago

It seems this is exactly what the kill switch feature is intended to do. Is there any way to implement this here?

mike-lloyd03 commented 1 year ago

Looks like this has already been addressed here.

paya-cz commented 1 year ago

So what's the go-to workaround for this? Having traffic leaks for a VPN is really bad.

I guess we just have to use a single server WireGuard container instead?

Avamander commented 1 year ago

@paya-cz You can create post-up and pre-down iptables rules for it in wireguard's config.