I NEED YOUR HELP, My container can't reach my gateway while everything seems okay ubuntu 22.0.4 template

Niklaus

New Member
Oct 12, 2024
2
0
1
Hello, I have a real problem for which I cannot find any solution. I would like to point out that I am a novice and that this is the first time that I have dealt with the concepts of LXC containers with proxmox.

I specify that my container has an Ubuntu 22.0.4 template and that the major problem is that I cannot ping any address, not even that of my gateway. My proxmox host was created and installed with virtualbox using a bridge network, with promiscuity in all. This installation went well on the console of my proxmox I can ping 8.8.8.8 and therefore go out on the wlan, ping my local machine, ping my gateway and even ping my container (the network interface is in enp0s3)

Regarding my container the interface is in eth0 it is in bridge vmbr0 and I reassure you the IP addresses are not duplicates and are on the same network range, that of my container is 192.168.1.14/24 and that of my proxmox x.x.x.13/24. I checked all the configurations as I will show you on my screens, I do not know how to copy text from a container console but the screens are complete.
The configurations are good, and I even went so far as to fill in the ubuntu .yaml file, which is actually a horror to do because you have to respect all the indentation and whitespace rules to be able to netplan apply the configuration. And you can imagine that it is well taken into account because while doing my tests I decided to modify my IP address in the .yaml file, then by trying again for the 1000th time to ping my gateway, it worked. made from the IP that I had configured on the .yaml file which means that everything else should also be taken into account, but no.

I really tried everything as far as possible, modified the iptables rules, checked the statuses of the interfaces, checked the iptables tables and their potential restrictions, and the result is that everything is compliant in my opinion. Of course I didn't go into the tests as much as possible because I hadn't accessed the commands that require an apt update as you imagine. I don't understand where the error comes from. I will now post the screens starting from VirtualBox at the proxmox host and its configuration up to that of the container, ending with the system logs.

Sorry I don't know how to copy the texts directly onto a proxmox container so I had to take screns please don't hesitate to open them for a few seconds wasted in order to understand everything about the subject, thank you in advance.

I would really like you to find a solution for me please, it's been more than 30 hours of work that I'm stuck on this point trying everything, delete it all again since the installation of the proxmox, try on another container which 'elsewhere cannot ping the first container supposed to be in the same node. I also changed template to try on Ubuntu: same result.

Here is the list of screens

virtualbox network configuration :

https://i.imgur.com/14La3or.png


Configuring Host Proxmox :

https://i.imgur.com/fBtUqtT.png

Container network summary interface :

https://i.imgur.com/Ub5KWsd.png


Ip route container :

https://i.imgur.com/XngWsRe.png

Ip a container :

https://i.imgur.com/hkkPDq0.png

Container DNS:

https://i.imgur.com/fnlIDUq.png

iptables container :

https://i.imgur.com/duaYuG6.png

Container iptables configuration:

https://i.imgur.com/37HrDZD.png

Ipshow eth0 :

https://i.imgur.com/CRSrxTD.png

Netplan configuration

https://i.imgur.com/DM0YD5X.png

Ipv4 forward :

https://i.imgur.com/1dk9VNK.png

Confirmation Ipv4forward configuration:

https://i.imgur.com/RGfPlCE.png

Ping attempt after all these checks and changes:

https://i.imgur.com/lSGCYT8.png

Container networkd service status

https://i.imgur.com/doznZ52.png


Container network logs:

https://i.imgur.com/Eqd0o5X.png


Here I hope that you will have an overall vision of what is happening within my network, and that you will be able to enlighten me and find me a solution, if I forgot to specify it the firewalls were deactivated by precaution but perhaps it is possible to push more, honestly I don't know anymore I have no more food for thought and I am counting on your help to unblock me. Thanks and my best regards to all you who are reading or trying to help me, I need to finish this théorical homework for next week and it's just the beginning of it and i'm stuck for no reason (at my point of view).
 
Someone please ? I have to finish this homework for tuesday and i'm not even close to 10% of it's completion i've lost all my time on this.
Really appreciate
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!