Hi all,
sorry to bring this topic again as we have a lot of threads about this but i couldn't find my example.
I've checked this Link already and i think my setup is correct but somehow the internet connection for the containers is not working.
https://pve.proxmox.com/pve-docs/ch..._nat_with_span_class_monospaced_iptables_span
Setup:
3 Physical Servers with proxmox
All Servers have a 10GBit connection between each other via the physical NIC eno2
2 Servers have the "public" containers with a public IP Address for webservers etc.
The 3rd Server is for "internal" containers. They should not be reachable from outside, but the need an internet connection.
Usual way would be to forward and MASQUERADE the traffic, but this somehow doesn't work.
I have the setup based on the examples:
This setup you find in the proxmox networking examples, but with one difference: bridge-ports eno2
The Bridge has a physical nic behind for the communication between the other proxmox server / containers.
The container network config looks like this:
i don't get an internet connection - can you help me here ?
Thanks, Andre
sorry to bring this topic again as we have a lot of threads about this but i couldn't find my example.
I've checked this Link already and i think my setup is correct but somehow the internet connection for the containers is not working.
https://pve.proxmox.com/pve-docs/ch..._nat_with_span_class_monospaced_iptables_span
Setup:
3 Physical Servers with proxmox
All Servers have a 10GBit connection between each other via the physical NIC eno2
2 Servers have the "public" containers with a public IP Address for webservers etc.
The 3rd Server is for "internal" containers. They should not be reachable from outside, but the need an internet connection.
Usual way would be to forward and MASQUERADE the traffic, but this somehow doesn't work.
I have the setup based on the examples:
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address <public ip>
netmask 32
gateway <public gateway>
iface eno1 inet6 static
address <public ipv6>
netmask 64
gateway <public gateway v6>
iface eno2 inet manual
auto vmbr0
iface vmbr0 inet static
address 172.16.18.138
netmask 23
bridge-ports eno2
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '172.16.18.0/23' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '172.16.18.0/23' -o eno1 -j MASQUERADE
iface eno3 inet manual
iface eno4 inet manual
This setup you find in the proxmox networking examples, but with one difference: bridge-ports eno2
The Bridge has a physical nic behind for the communication between the other proxmox server / containers.
The container network config looks like this:
i don't get an internet connection - can you help me here ?
Thanks, Andre
Last edited: