Jump to content
Not connected, Your IP: 216.73.217.99
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...