wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

Add the possibility to choose IPv4/IPv6/dual-stack

Open angristan opened this issue 5 years ago • 7 comments

I'm talking about the WireGuard network. You can already connect using IPv4 or IPv6.

Currently each peer has an IPv4 and IPv6 address. 3 options should be available during install:

  • IPv4 only
  • IPv6 only
  • Dual stack

Thinking about https://github.com/angristan/wireguard-install/issues/3... Should this be a option asked only during the first run? Otherwise it's going to be a mess when adding more clients

angristan avatar May 05 '19 11:05 angristan

If anything it shouldn't be impossible to run a test to check what external facing IPv6/4's are on the device by default with a Curl and some variant of https://ifconfig.me or https://ifconfig.co (either have some form of api-ish things)

This way the user is a bit more assured of what options are available. Maybe it would be ideal to ask first before the check idk up to you.

Leopere avatar Jun 05 '19 14:06 Leopere

I second this. wireguard did not work until I removed all ipv6 stuff from /etc/wireguard/....

NightMachinery avatar Sep 22 '20 17:09 NightMachinery

I second this. wireguard did not work until I removed all ipv6 stuff from /etc/wireguard/....

Weird. I deployed one on Amazon Lightsail just now - no IPv6 exists there and just the standard Angristan install works fine. Did not have to remove any IPv6 related stuff.

Yes, it does assign each client an IPv6 ULA but the clients seem to just go out via IPv4 and not have any issues. This is on a network where the clients are natively IPv4 only.

mfld-pub avatar Sep 25 '20 03:09 mfld-pub

I always end up going back and deleting all the IPV6 stuff in the configs, and its annoying enough now I want to comment out the script for the IPV6 stuff.

mostdcoa avatar Oct 02 '20 02:10 mostdcoa

There will come a time where people will be only able to use ipv6

On Thu, Oct 1, 2020 at 10:10 PM mostdcoa [email protected] wrote:

I always end up going back and deleting all the IPV6 stuff in the configs, and its annoying enough now I want to comment out the script for the IPV6 stuff.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angristan/wireguard-install/issues/5#issuecomment-702489252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIE2VXDPP2WBPCRCJFBCLLSIUZDHANCNFSM4HK3AEPA .

Leopere avatar Oct 02 '20 21:10 Leopere

I always end up going back and deleting all the IPV6 stuff in the configs, and its annoying enough now I want to comment out the script for the IPV6 stuff.

Wouldn't be better to disable IPv6 at the OS level, with sysctl for example?

randshell avatar Oct 04 '20 16:10 randshell

IPv4 only config is here https://github.com/MinhThienDX/wireguard-install/blob/ipv4/wireguard-install-ipv4.sh

MinhThienDX avatar Dec 15 '21 09:12 MinhThienDX