perara / wg-manager

A easy to use WireGuard dashboard and management tool
MIT License
594 stars 74 forks source link

Support for IPv6 please? #20

Closed Haringstad closed 4 years ago

Haringstad commented 4 years ago

Whow! Love the interface! The only thing that it's lacking, is IPv6 support within the docker.

When I use

iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i %i -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

in the Post-up script, wg0 refuses to start. If I remove the ip6tables part, it works fine! So, please advise how I can add ip6tables support to the current docker?

perara commented 4 years ago

Do you run the docker container in ´host´ mode? If I understand correctly. IPV6 works fine if you remove the iptable forwards you mentioned?

Haringstad commented 4 years ago

I could not get it working with IPv6 at all. (Yes, connecting to the server works) But using the private IPv6 part isn't working. So, I guess it is missing ip6tables ??

Regards,

Jacco van Koll

On Tue, Jun 30, 2020 at 1:35 PM Per-Arne Andersen notifications@github.com wrote:

Do you run the docker container in ´host´ mode? If I understand correctly. IPV6 works fine if you remove the iptable forwards you mentioned?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/perara/wg-manager/issues/20#issuecomment-651737095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3YEZTBUEJ3SVEK3ZBC3SLRZHEYPANCNFSM4OMELWEA .

perara commented 4 years ago

I'll take a look on this in the near future. I have not used IPV6 myself yet, so just to confirm: The feature request here is that each client connected to the VPN should be routable via IPV6?

Haringstad commented 4 years ago

Per-Arne, Yes! Exactly! And take your time on this :-)

On Thu, Jul 2, 2020 at 7:58 AM Per-Arne Andersen notifications@github.com wrote:

I'll take a look on this in the near future. I have not used IPV6 myself yet, so just to confirm: The feature request here is that each client connected to the VPN should be routable via IPV6?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/perara/wg-manager/issues/20#issuecomment-652800778, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3YEZRAR3QKWA46TTYADETRZQOZDANCNFSM4OMELWEA .

perara commented 4 years ago

@Haringstad I've added support for IPv6. Tested OK when pinging peer-peer with ipv6 addresses.

Please test, and reopen if there are any bugs or missing features related to IPv6 :)