Can't access to internet in my LXC container

azrod

New Member
May 18, 2023
12
3
3
Hello everyone,

I have installed a proxmox in version 7.4-3 and i have configure it. I have create LXC container and I have not outgoing on internet.
I have follow the configuration on official website for "routed configuration" but this not working in my LXC container.

This is my network configuration on my proxmox server :

1684436710803.png
1684436659628.png
1684436684785.png




This is my network configuration on my LXC container :

1684436936168.png
1684436943404.png
1684436949296.png





This is test on my proxmox server :


1684436972294.png

1684436976112.png




This is test on my LXC container :

1684437028553.png

1684437032841.png


But ping to google.com not working.



Somebody have a solution for this problem ?
Thanks
 
  • Like
Reactions: pepex7
Why do you have an ip address on enp1s0 ?
On my proxmox server that interface is empty. I have ip address and gateway configured on vmbr0.
 
Why do you have an ip address on enp1s0 ?
On my proxmox server that interface is empty. I have ip address and gateway configured on vmbr0.
I have ip address on enp1s0 because i want to access on my proxmox with an ip address from my local network.
 
Okay, sorry. Now I see what you are trying to do here.
Your ip addresses are not public addresses but for internal networks.
Yes they are internal networks IP.
The network 192.168.1.0/24 is my local network and the 172.16.1.0/24 is my network in promox
 
Yes they are internal networks IP.
The network 192.168.1.0/24 is my local network and the 172.16.1.0/24 is my network in promox

Correct me if I'm wrong, but routed config is for running pve at a hosting provider.
If you are running pve at home on a local network than routed config is not for you.
Why do you need routed config?
 
I'm not need routed config, i just try this configuration because the default bridge configuration not worked for me.
I'll try the default configuration again and get back to you.
But with the default configuration, in section vmbr0, it's possible to set 172.16.1.0/24 network or it's just worked with my local network (192.168.1.0/24) ?
 
I'm not need routed config, i just try this configuration because the default bridge configuration not worked for me.
I'll try the default configuration again and get back to you.
But with the default configuration, in section vmbr0, it's possible to set 172.16.1.0/24 network or it's just worked with my local network (192.168.1.0/24) ?
So, with the default conf I managed to make this works.
But I can't add a second subnet who go to internet. You have a idea ?
Thanks
 
Are you trying to create seperate networks?
Maybe you can try VLANs.

You can create several vmbr Bridges, they are a sort of networkswitches, each with their own subnet.
But only one can have a Gateway (internet).
So maybe you have to add routes in your router/firewall.
 
There is no Gateway on vmbr0.
maaaaan, I lost whole evening to realize that when I set Static IP and forgot to fill this field (for future wanderers: in proxmox gui, in network tab for LXC, when you set IP4 and IP6, cant miss it;] )
thx to you, for me it solved my problem
 
Last edited:
  • Like
Reactions: x3kim and Bozz
:rolleyes:....um... you're not alone.... lol I just lost a few hours to the SAME THING.........
 
  • Like
Reactions: x3kim

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!