Hi guys
I'm new with proxmox and i need some information.
I installed 2 Debian 10 x64 LXC containers and i managed to configure part of the network.
Some Info:
Proxmox 6.2-4
2 ipv4
1 ipv6
Host ipv4 ping: working
Host ipv6 ping: working
LXC ipv4 ping: working
LXC ipv6 ping: not working
Connection to containers (ssh): not working
So, i have 2 problems:
-I can not access my LXC containers externally using ssh (ssh is properly configured...)
-LXC containers ipv6 not pinging
I'll give more details...
HOST ( /etc/network/interfaces )
LXC CONTAINER 1 ( /etc/network/interfaces )
LXC CONTAINER 2 ( /etc/network/interfaces )
Anybody can explain me where i am not configuring correctly?
Ipv6 is not important, the most important thing is WHY I CANT ACCESS my containers from outside?
I cant find a solution...
Thanks
I'm new with proxmox and i need some information.
I installed 2 Debian 10 x64 LXC containers and i managed to configure part of the network.
Some Info:
Proxmox 6.2-4
2 ipv4
1 ipv6
Host ipv4 ping: working
Host ipv6 ping: working
LXC ipv4 ping: working
LXC ipv6 ping: not working
Connection to containers (ssh): not working
So, i have 2 problems:
-I can not access my LXC containers externally using ssh (ssh is properly configured...)
-LXC containers ipv6 not pinging
I'll give more details...
HOST ( /etc/network/interfaces )
Code:
# loopback
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
# Interface 1 (Main IPv4)
auto eno1
iface eno1 inet static
address 37.xxx.90.84/24
gateway 37.xxx.90.254
# Interface 1 (IPv6)
iface eno1 inet6 static
address 2001:xxxx:a:3d54::/64
gateway 2001:xxxx:a:3dff:ff:ff:ff:ff
post-up /sbin/ip -f inet6 route add 2001:xxxx:a:3dff:ff:ff:ff:ff dev eno1
post-up /sbin/ip -f inet6 route add default via 2001:xxxx:a:3dff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del 2001:xxxx:a:3dff:ff:ff:ff:ff dev eno1
pre-down /sbin/ip -f inet6 route del default via 2001:xxxx:a:3dff:ff:ff:ff:ff
# IPv4 Failover
auto eno1:0
iface eno1:0 inet static
address 87.xxx.82.123/24
# IPv4 Bridge 1
auto vmbr0
iface vmbr0 inet static
address 192.168.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
# IPv6 Bridge 1
iface vmbr0 inet6 static
address 2001:xxxx:a:3d54::2
netmask 64
post-up /sbin/ip -f inet6 route add 2001:xxxx:a:3d54::/64 dev vmbr0
pre-down /sbin/ip -f inet6 route del 2001:xxxx:a:3d54::/64 dev vmbr0
# IPv4 Bridge 2
auto vmbr1
iface vmbr1 inet static
address 192.168.2.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
# IPv6 Bridge 2
iface vmbr1 inet6 static
address 2001:xxxx:a:3d54::3
netmask 64
post-up /sbin/ip -f inet6 route add 2001:xxxx:a:3d54::/64 dev vmbr1
pre-down /sbin/ip -f inet6 route del 2001:xxxx:a:3d54::/64 dev vmbr1
post-up sysctl -p
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eno1 -j SNAT --to-source 37.xxx.90.84
post-up iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eno1 -j SNAT --to-source 87.xxx.82.123
LXC CONTAINER 1 ( /etc/network/interfaces )
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
LXC CONTAINER 2 ( /etc/network/interfaces )
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.2.1
Anybody can explain me where i am not configuring correctly?
Ipv6 is not important, the most important thing is WHY I CANT ACCESS my containers from outside?
I cant find a solution...
Thanks
Last edited: