Problem lxc container (Not network)

Drthrax74

Well-Known Member
Apr 22, 2019
39
6
48
35
Hi,
I have a network problem on my container.

NETWORK:
- en4ps0
-> Bridge vmbr0 (192.168.1.11/24)
-> Bridge vmbr1 (192.168.10.1/24)

I have a windows server configure in 192.168.10.2 (DNS, DHCP, AD) functional. (Vmbr1)
The internet works on my server.
Everything is functional.


I want to put on the network of my server my container.
Container> WS2016> pfsense> Router> Network

The problem is that I can not get internet.

I configure my container:
- IP CIDR: 192.168.10.5/24
- Gateway: 192.168.10.2
- DNS: 192.168.10.2

i need help please.
 
What is your internet on?
Just because it works on your server. Didn't mean it should work on VMs without some intervention.
#1. If your internet is on 192.158.1.x than you need to do some forwarding or translation.
#2 if your dhcp is on .10.x segment you will need to add the vmbr0 to it and do some NATing so it works as gateway. Between .1
X segment and .10.x segment or literary between vmbr0 and vmbr1
 
DHCP WAN : 192.168.1.1 / 24
Pfsense : 192.168.1.11 / 24 (WAN) & 192.168.10.1 / 24 (LAN / NO DHCP)
DHCP SERVER: 192.168.10.1/24 with no gateway


Work with other OS but not work with container.

Can you help me
 
Ahh I see. You have pfsense as your router.
It should work than. I have a pfsense machine as a router on my home network and it works. But in my case the pfsense vm acts as all in one setup a router dns and dhcp. And it replaces a real router from my isp to my home network.