Open RobHofmann opened 2 years ago
I'm having the same issue using wireguard, have not tried any openvpn configs though to see if that even works.
Did you manage to figure this out?
I'm having the same issue using wireguard, have not tried any openvpn configs though to see if that even works.
Did you manage to figure this out?
No I'm still on the OpenVPN version π€·π»ββοΈ
Hey sorry for the horrendous delay, I'm a bit very-behind on issues (it's hard to have a (/several) famous repos it turns our π).
Perhaps you are missing some kind of ip rule or ip route? You can compare both by listing them with ip rule
and ip route
.
From the top of my head, wireguard has a rule with table number 51820
But I couldn't remember why it's there π₯²
I seem to have made this work with @RobHofmann 's instructions (adjusting for my networks and using eth1 instead of eth0, that is what the macvlan interface is tied to. eth0 is a docker bridge.
ip route add default via 172.20.0.2 dev eth1 metric 1
I am however using the test image from issue #1388 . Using a bridged network and macvlan network as mentioned above.
Is this urgent?
No
Host OS
Ubuntu 20.04 LTS
CPU arch
x86_64
VPN service provider
Windscribe
What are you using to run the container
docker run
What is the version of Gluetun
Running version latest built on 2022-03-13T13:22:00Z (commit 0795008c237503dd14ff8d2dbd4e16c350148787)
What's the problem π€
I'm using gluetun as a VPN Gateway in combination with macvlan networking. I'm having multiple containers on multiple docker hosts connecting through this VPN gateway along with some other machines on the network. It seems to work. The commands i use to achieve this are the following:
The above works fine, both inside the vpn container as from outside. However i'm getting only 20MB/s with my 1gbit connection. I've read on other topics that using Wireguard might be the solution to this (other people have reported slow connections using OpenVPN). So i've tried changing the above script to the following:
This last script does not work as expected. From inside the
vpn
container, I can ping & nslookup to the internet. I also verified that the connection to the VPN provider is working by usingcurl http://ipinfo.io/ip
which gives me an IP from the VPN connection. However when I try to route traffic through this container, I dont get any connection at all. I also tried putting the iptables chains in accept (i.o.w. disable the firewall) using:This still doesn't work.
Am I doing something wrong? Am I missing some conceptual differences between Wireguard & OpenVPN?
I hope someone can help with this. Thank you in advance.
Share your logs
Share your configuration
No response