New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Assigning IPv6 to VPS without IPv6 via tunnel
I know there are free tunnels avablie, but I want to build my own to experiment.
I have two VPS, one of them has the following configuration:
IPv4:A.A.A.A
IPv6 subnet:aaaa:aaaa:aaaa:aaaa::/64
IPv6 address:aaaa:aaaa:aaaa:aaaa:aaaa:1
I already know that all addresses in the /64 subnet are available, I have added and verified them via ip addr.
The other machine only has IPv4, address is B.B.B.B
Because the subnet is already /64 length, so if I use v4tunnel assignment, it may not be accessable externally, what else can I do?
Comments
if Your end goal to provide IPv6 is the IPv4 only VPS? then you can use VPN
I have considered using WireGuard, but my goal is for the IPV6 assigned to the other VPS to be accessible to the Internet.
hurricane electric tunnel i would reccomend
Look I'm not the only one that sometimes only glances over the post ok?
You can use WireGuard to achieve this rather easily. You could even assign, say, a /80 IPv6 from the /64 for the IPv4-only VPS to use. You just need to make sure IPv6 forwarding is setup correctly and that you can forward things coming from the prefix.
Configurations like this would work, supposing the IPv6-enabled VPS has the prefix
fd6b:4709:18ce:4320::/64
, and we're giving thefd6b:4709:18ce:4320:a::/80
prefix: (sorry if there's something wrong, I am doing this from memory!)IPv6-enabled VPS:
And the obvious on said VPS:
IPv4-only VPS:
Hope this helps
<
pre-shared key>
<
pre-shared key>
Unfortunately, this does have some errors, I don't know why yet, but it's a good idea.
When I use the WG NIC of the IPv4-only host to mtr outward, I can see the packets from the IPv6 host (from ip6tables), just not successfully forwarded.
The kind of setup @JeDaYoshi suggests would need for the IPv6-enabled VPS to have a fully routed v6 block. Check if that is the case as it won't work "as is" otherwise.
If I am correct about what I think you are wanting to do this could easily be setup using a gre tunnel. Hetzner have a good guide on how to set one up. https://community.hetzner.com/tutorials/linux-setup-gre-tunnel
You can configure tunneling right from ubuntu netplan configuration, refer to this article https://bugs.launchpad.net/netplan/+bug/1799487
I did exactly that yesterday.
vps9
is a WebHosting24 10x10x10 from @tomazu.Its IPv4 address is 192.0.2.1/24.
Its routed IPv6 prefix is 2001:db8:e915::/48. This has to be a routed prefix, not an on-link prefix. See Routed IPv6 Hall of Fame to find providers that offer routed IPv6 prefix.
box5
is a @VirMach 120-day temporary chicken.Its IPv4 address is 198.51.100.1/24.
Within the routed IPv6 prefix, I decide to assign 2001:db8:e915:9493::/64 to this server.
vps9
runs Ubuntu 20.04.I added the following to
/etc/netplan/01-netcfg.yaml
:Then I added these firewall rules:
box5
runs Debian 11.I added the following to
/etc/network/interfaces
:Then I added the following firewall rules:
As a result:
box5
.box5
.box5
or in its Docker containers.vps9
.box5
host itself.It's best if both servers are in the same geographical area.
In my case,
vps9
is in Munich andbox5
is in Buffalo, so that it experiences high latency for sure, and GeoDNS works against me becauseping ipv6.google.com
would go to Munich then back to New York.