Jump to content
Not connected, Your IP: 216.73.217.5
Sign in to follow this  
mid-kid

Connecting to the ipv6 internet from an ipv4-only connection using wireguard

Recommended Posts

Posted ... (edited)

Hi! I've set up wireguard using wg-quick, with the following config as /etc/wireguard/wg0.conf:
 

[Interface]
Address = x.x.x.x/32,xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/128
PrivateKey = [snip]
MTU = 1320
Table = off

[Peer]
PublicKey = [snip]
PresharedKey = [snip]
Endpoint = europe.vpn.airdns.org:1637
AllowedIPs = 0.0.0.0/0,::/0
PersistentKeepalive = 15
$ curl --interface wg0 ipv6.google.com
curl: (7) Failed to connect to ipv6.google.com port 80 after 41 ms: Could not connect to server
However, when I run the following command: "curl --interface wg0 ipv6.google.com", I get the above message (the post editor doesn't allow me to rearrange it...)

Is there a way to do this, using wireguard? Am I misconfiguring something?


EDIT: I asked gemini, and it suggested I add the following settings to "[Interface]":
Table = 200
PostUp = ip -4 rule add oif %i table 200; ip -6 rule add oif %i table 200
PostDown = ip -4 rule del oif %i table 200; ip -6 rule del oif %i table 200
This seems to work correctly. For the first time ever, the port forwarding page in the client area reports the ipv6 ports that my torrent client is running on as open. Does this make sense, for what I'm doing? Edited ... by mid-kid

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...