Hallo
ich habe einen RS 4000 G9.5 und darauf Proxmox 7.3 installiert.
Ich betreibe mehrere LXC Container und möchte einigen eine GUA IPv6 Adresse verpassen.
Dazu habe ich mir über das SCP mehrere Adressen aus meinem 2a03:4000:xxxx:xxxx::/64 Präfix erzeugt und diese den LXC Containern zugewiesen.
Leider erreichen diese Adressen von den Containern nicht das Internet, der Proxmox Host jedoch schon.
Woran liegt das?
Gibt es da seitens Netcup eine Einschränkung? Eventuell auf Mac ebene?
/etc/sysctl.conf
Code
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.all.proxy_ndp=1
net.ipv6.conf.default.accept_ra=0
net.ipv6.conf.default.autoconf=0
net.ipv6.conf.all.accept_ra=0
net.ipv6.conf.all.autoconf=0
net.ipv6.conf.vmbr0.accept_ra=0
net.ipv6.conf.vmbr0.autoconf=0
net.ipv6.conf.ens3.accept_ra=0
net.ipv6.conf.ens3.autoconf=
Display More
/etc/network/interfaces (proxmox)
Code
iface lo inet loopback
iface ens3 inet manual
auto vmbr0
iface vmbr0 inet static
address 202.x.x.x/22
gateway 202.x.x.1
bridge-ports ens3
bridge-stp off
bridge-fd 0
post-up /opt/scripts/network/post-up.sh
post-down /opt/scripts/network/post-down.sh
#public net
iface vmbr0 inet6 static
address 2a03:4000:x:x:x:x:0:1/128
gateway 2a03:4000:x::2
#public net6
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
#lxc net
iface vmbr1 inet6 static
address 2a03:4000:x:x:x:x:1:1/112
#lxc net
Display More
/opt/scripts/network/post-up.sh
Bash
#!/bin/bash
# NAT
iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
iptables -t nat -A POSTROUTING -s '10.0.0.0/8' -o vmbr0 -j SNAT --to-source 202.x.x.x
# IPv6 routes
ip -6 route add 2a03:4000:x::2 dev vmbr0
ip -6 route add default via 2a03:4000:x::2 dev vmbr0
# IPv6 neighbor discovery protocol
ip -6 neigh add proxy 2a03:4000:x:x:x:x:1:2 dev vmbr0
Display More
/etc/network/interfaces (lxc container)
Code
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.2/24
gateway 10.0.0.2
iface eth0 inet6 static
address 2a03:4000:x:x:x:x:1:2/112
gateway 2a03:4000:x:x:x:x:1:1
autoconf 0
accept_ra 0
Display More
traceroute6 aus dem lxc container heraus
Code
traceroute6 2606:4700:4700::1111
1 lxc.meinedomain.de (2a03:4000:x:x:x:x:2:1) 0.078 ms 0.045 ms 0.012 ms
2 * * *
...
Danke für Hilfe