LXC with LAN only address. How to access to the WAN ?

Paspao

Active Member
Aug 1, 2017
69
2
28
55
Hello,

I have always used LXC on Proxmox with bridged configuration and public IP with no issues.

Now I wanted to use an LXC with local only address but with access to the WAN (web).

My LXC has IP 10.10.10.10/24 , and default gateway the same as Proxmox host

I tried enabling IP forwarding in guest and in host, with no success.

What am I missing?

Thank you.
P
 
hi,


My LXC has IP 10.10.10.10/24 , and default gateway the same as Proxmox host
please post the configurations:
* cat /etc/network/interfaces on PVE host
* pct config CTID on PVE (replace CTID with yours)

how are you testing your internet access from the container?
from inside the container can you:
* ping the gateway and/or PVE -> if not, then your network config is probably wrong
* ping 1.1.1.1 -> if not, then maybe there's an issue routing to the outside
* ping google.com -> if not, check DNS settings for the container
 

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!