Open pcouy opened 3 months ago
Hello,
you are correct and can send a pull request.
Just to be super-pedantic, the route can be anything: if you set that value to 192.168.0.1/24
it would route every packet destined to that subnet over the wireguard interface.
Unfortunately as of today it is not possible to add more than one route; but it should be easy enough to implement this feature if needed.
Thanks a lot for filing this!
Hi ! After coming up with my own hacky solution to use the wireguard interface as the default route inside the containers, I looked into properly adding it to your plugin. That's when I noticed the
dwgd.route
option in your code.Do I understand correctly that adding the following line to my
docker-compose.yml
will route all traffic that is not local to the default docker network through my wireguard peer ?If you confirm this is correct, I will submit a pull request to document this in the README.