Hello,
I can´t figure out how to get this done.
What i have:
I have one public IP on a Rootserver connected to PVE via ens3 bridged to vmbr0 where Gateway and IP are set.
I also created a new network to masquerade vmbr0 to vmbr1 for connection between Containers on Subnet 10.10.10.1/24
Now i can assign CT100 to IP 10.10.10.2 and it´s connected to the Internet.
Problem:
As soon as i enable the Firewall on the node Level allowing Port 80,443,8006,22 i´m no longer able to ping from out the CT100 or any other container using vmbr1.
All three Firewalls are set to Allow outgoing and Drop incoming Traffic and the Rules mentioned above.
Could someone tell me what i´m doing wrong?
Kind Regards
Mergim
I can´t figure out how to get this done.
What i have:
I have one public IP on a Rootserver connected to PVE via ens3 bridged to vmbr0 where Gateway and IP are set.
I also created a new network to masquerade vmbr0 to vmbr1 for connection between Containers on Subnet 10.10.10.1/24
Code:
auto lo
iface lo inet loopback
iface ens3 inet manual
auto vmbr0
iface vmbr0 inet static
address 202.61.228.211/22
gateway 202.61.228.1
bridge-ports ens3
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
Now i can assign CT100 to IP 10.10.10.2 and it´s connected to the Internet.
Problem:
As soon as i enable the Firewall on the node Level allowing Port 80,443,8006,22 i´m no longer able to ping from out the CT100 or any other container using vmbr1.
All three Firewalls are set to Allow outgoing and Drop incoming Traffic and the Rules mentioned above.
Could someone tell me what i´m doing wrong?
Kind Regards
Mergim