LXD Container can't access trough host address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone,

we are trying to implement a server with various lxd container.

Nftables seems to stop packets from container to container, over the host IP:Port.
It is crucial that the container can contact each other over the main IP.


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
ping works from all sites to another - curl doesn't.

Thank you in advance.

With best regards

Franz Schneider



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux