[SOLVED] IPV4-Pakete über IPV-6-Only Server? Gibt's einen Trick?

ThomasH

Member
Jun 4, 2019
27
5
23
58
Moinsens,

hab meinen Server bei Hetzner und die haben bekanntlich seit neuestem utopische Einrichtungsgebühren für IPV4-Adressen. Wie auch immer, ich habe mich entschieden einen IPV6-only Server aufzusetzen und hier, wenn überhaupt IPV4 nur IPs aus dem ehemals benannten C-Netz, also 192.168... oder auch 10.... zu benutzen.

Die virtuellen Maschinen laufen einwandfrei unter IPV6, sind erreichbar, alles könnte chic sein, wäre da nicht der Wunsch der Einbindung einer web.de-Emailadresse auf einer Groupware.. :)

Nun habe ich schon viel gelesen, weiss, dass beide Protokolle inkompatibel sind und dass es "eigentlich" nicht geht.

Ich kam auf die Idee, dem vmbr0 eine IP-Adresse zuzuweisen 10.0.0.254/32, dem Gast 10.0.0.2/32, es können sich beide aber nicht mal gegenseitig anpingen. :) von extern wollen wir noch garnicht sprechen...

/etc/network/interfaces des Hosts:
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

# device eno1
auto eno1
iface eno1 inet static
        address 99.888.777.666
        netmask 255.255.255.255
        pointopoint 99.888.777.655
        gateway 99.888.777.655

iface eno1 inet6 static
        address 2a01:abc:de:efgh::2
        netmask 128
        gateway fe80::1
        up sysctl -p

auto vmbr0
iface vmbr0 inet static
        address 99.888.777.666
        netmask 255.255.255.255
        bridge-ports none
        bridge-stp off
        bridge-fd 0

iface vmbr0 inet6 static
        address 2a01:abc:de:efgh::2:1
        netmask 64
        up ip -6 route add 2a01:abc:de:efgh::/64 dev vmbr0

auto vmbr1
iface vmbr1 inet static
        address 10.0.0.254
        netmask 255.255.255.255
        bridge-ports none
        bridge-stp off
        bridge-fd 0

iface vmbr1 inet6 static
        address 2a01:abc:de:efgh::2:2
        netmask 64
        up ip -6 route add 2a01:abc:de:efgh::/64 dev vmbr1

Gastsystem:

Code:
auto lo
iface lo inet loopback

auto ens18

iface ens18 inet6 static
    address 2a01:abc:de:efgh::2:3
    netmask 64
    gateway 2a01:abc:de:efgh::2:1

iface ens18 inet static
    address 10.0.0.2
    netmask 255.255.255.255
    gateway 10.0.0.254

die /etc/resolv.conf enthält 3 DNS-Adressen, zwei IPV6, eine IPV4.

Die oben gezeigten Confs funktionieren aber nicht. IPV6 lässt sich pingen, IPV4 natürlich nicht. Habe Ihr eine andere, bessere, vielleicht ganz ganz andere Idee? :)

Gruß

Thomas
 
So, ich konnte es lösen:

alles oben beschriebene ist quasi Quatsch. Es ist viel einfacher:

Nutzt einen öffentlichen NAT64-Nameserver wie beispielsweise https://nat64.dresel.systems/ aber auch den von Google.
Tragt in der /etc/resolv.conf zum Beispiel ein

nameserver 2a0b:f4c0:4d:53::1
nameserver 2a01:4f8:221:2d08::213

und speichert es ab. Damit könnt ihr auch IPV4-Adressen erreichen von einem IPV6-only Server
 
  • Like
Reactions: datschlatscher

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!