I am trying to set up the IPv6 forwarding. I indeed read through forum and searched online but anything I tried don't let me set it right.
I have a public IPv4 (single IP) and IPv6 (/121 range) on the main PROXMOX server, then I created an LXC container, which I can access by IPv4 using forwarding, however, IPv6 cannot.
I have this setup:
PROXMOX SERVER
LXC CONTAINER
I will be glad for any help.
I have a public IPv4 (single IP) and IPv6 (/121 range) on the main PROXMOX server, then I created an LXC container, which I can access by IPv4 using forwarding, however, IPv6 cannot.
I have this setup:
PROXMOX SERVER
Code:
cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address X.X.X.X/24
gateway X.X.X.1
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
iface eth0 inet6 static
address XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:0/48
gateway XXXX:XXXX:XXXX::1
autoconf 0
dns-nameservers 2606:4700:4700::1111 2606:4700:4700::1001 1.1.1.1 1.0.0.1
post-up echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp
post-up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
post-up echo 1 > /proc/sys/net/ipv6/conf/default/forwarding
# LXC
post-up ip neigh add proxy XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:3 dev vmbr0
post-up ip route add XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:3 dev eth0
post-down ip route del XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:3 dev eth0
post-down ip neigh del proxy XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:3 dev vmbr0
auto vmbr0
iface vmbr0 inet static
address 172.17.250.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
network 172.17.250.0
post-up iptables -t nat -A POSTROUTING -s 172.17.250.0/24 -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 172.17.250.0/24 -o eth0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2222 -j DNAT --to-destination 172.17.250.2:22
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 2222 -j DNAT --to-destination 172.17.250.2:22
iface vmbr0 inet6 static
address XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:1/48
post-up ip route add XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:7f dev vmbr0
post-up ip route add default via XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:7f
post-down ip route del default via XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:7f
post-down ip route del XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:7f dev vmbr0
LXC CONTAINER
Code:
cat /etc/network/interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.17.250.2/24
gateway 172.17.250.1
iface eth0 inet6 static
address XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:3/121
gateway XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:0
autoconf 0
dns-nameservers 2606:4700:4700::1111 2606:4700:4700::1001 1.1.1.1 1.0.0.1
I will be glad for any help.