Eine IPv6 zu bestehenden NAT netzwerk hinzufügen.

Sep 28, 2020
99
6
13
Hallo zusammen,

ich möchte mich langsam mal an das Thema IPv6 wagen und mein Netzwerk erweitern, aktuell habe ich 2 IPv4, eine für den Proxmox und NAT und die zweite geht direkt auf eine VM in der mailcow läuft.
Jetzt würde ich beides gerne ebenfalls für IPv6 erreichbar machen, leider bin ich nicht so fit in dem bereich und daher frage ich mal nach eurer expertise.

Ich müsste jetzt doch dem vmbr2 eine IPv6 zuweisen nur wie kann ich das dann an das interne netz weitergeben?

Hier noch meine /etc/network/interfaces:
Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp7s0
iface enp7s0 inet manual
#Netzwerkkarte

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.0.0.1/30
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        post-up   iptables -t nat -A POSTROUTING -s '10.0.0.0/30' -o vmbr2 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/30' -o vmbr2 -j MASQUERADE
#DMZ Network

auto vmbr1
iface vmbr1 inet static
        address 192.168.100.2/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#Interne Netzwerk

auto vmbr2
iface vmbr2 inet static
        address 162.55.131.56/26
        gateway 162.55.131.1
        bridge-ports enp7s0
        bridge-stp off
        bridge-fd 0
        up ip route add 162.55.131.58/32 dev virbr1
        down ip route del 162.55.131.58/32 dev virbr1
        up route add -net 162.55.131.0 netmask 255.255.255.192 gw 162.55.131.1 dev vmbr2
        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A PREROUTING -i vmbr2 -p tcp ! -s 162.55.131.58/32 -m multiport ! --dport 22,8006 -j DNAT --to 10.0.0.2
        post-up iptables -t nat -A PREROUTING -i vmbr2 -p udp ! -s 162.55.131.58/32 -j DNAT --to 10.0.0.2
 

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!