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

Paspao

Active Member
Aug 1, 2017
69
2
28
56
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