My plan is to provide a nextcloud container and a ONLYOFFICE container.
- I have a ubuntu LTS server system running.
- There are several LXD container running.
- I can access all container with browser via their difined ports; configured by nftables
- Container have access to internet, provided by host connection
But...
- suddenly the container can't curl each other the host IP. -> Nextcloud can't access ONLYOFFICE so this is not working.
- Even the Host can't curl to the defined ports. :-(
I think my problem is in my nftables config:
table ip my_nat {
chain my_prerouting {
type nat hook prerouting priority -100;
tcp dport{ http, https } dnat 192.168.22.3
tcp dport{ 8888} dnat 192.168.22.6:80
tcp dport{ 8889} dnat 192.168.22.6:443
}
chain my_postrouting {
type nat hook postrouting priority 0; policy accept;
oifname "eno1" masquerade
}
}
eno1 is the host port lxdbr0 is the bridge port to all container - 192.168.22.0/24