Traefik in a docker(Easypanel) on Proxmox

Hi all, how can I make this setup work so I can use Traefik for the lxc containers for my (sub)domains?
I hope someone can help me out with this after a week of breaking my head over it...

My setup:
1 Proxmox v8.04 at a hosting provider
ip Proxmox: xxx.xxx.xxx.40
internal network is: 10.10.10.0/24
Bridge name of internal network:vmbr0
Gateway: 10.10.10.1

On the Proxmox I am running:
1 lxc container with Easypanel in Docker where Traefik is running in out of the box.
ip lxc container where Docker is running in with Easypanel and Traefik: 10.10.10.42
ip range in Docker: 10.0.1.0/24

Then I have the following containers
1 lxc container(no docker) with ip: 10.10.10.2
1 lxc container(no docker) with ip: 10.10.10.3
1 lxc container(no docker) with ip: 10.10.10.4

When logging in the Traefik container console in Docker I can ping all the lxc containers.
When logging in the console of the lxc containers I can ping 10.0.1.1 and 10.0.1.11 (and other Docker containers)
I am not able both way's to ping with the hostnames.

When I am using Pihole and pointing the dns to that(all the lxc containers), I am able to ping hostnames in the Traefik container console in Docker.
I am not able to ping hostnames in Docker from the lxc containers.

In Proxmox I edit: /etc/network/interfaces
and added:
post-up iptables -t nat -A PREROUTING -i ens6 -p tcp --dport 80 -j DNAT --to-destination 10.10.10.42:80
post-down iptables -t nat -D PREROUTING -i ens6 -p tcp --dport 80 -j DNAT --to-destination 10.10.10.42:80

post-up iptables -t nat -A PREROUTING -i ens6 -p tcp --dport 443 -j DNAT --to-destination 10.10.10.42:443
post-down iptables -t nat -D PREROUTING -i ens6 -p tcp --dport 443 -j DNAT --to-destination 10.10.10.42:443

With kind regards,

Charles