how have you configured the network for your vm?
@HeMaN I set everything to go through pfsense. Hence, the openwrt VM WAN is connected to static IP from pfsense 192.168.30.12. The openwrt VM LAN is 192.168.20.1/24.
first create a network connected to a physical nic and use that as wan for openwrt
then create en internal network (or use another nic) and use that as lan for openwrt.
@HeMaN Thank you for the tip. Just to make sure I understand correctly. I already have WAN and LAN networks for each NIC. But for some reason only the LAN is recognized by the Openwrt and I can not connect to the internet when I am on the LAN. I think it is a network issue this is why I decided to just follow the guide.
ps what is the use of openwrt when you already have pfsense?
both are basically routers
I love pfsense but the OS but the WIFI support lags behind. I am planning to use openwrt for WIFI access.
I have a small PC that I was using as a pfsense router/firewall. I wanted to add WIFI capability to the unit. I tested openwrt on the current hardware and it worked. Now, I virtualized the pfsense (working) and I would like to add the openwrt. There are instruction on how to install openwrt on Xen https://openwrt.org/docs/guide-user/virtualization/xen and I though this may work on xcp-ng but I need some help.
I am not sure where to place the domain configuration file
I am assuming the network configuration is done at the xcp-ng terminal, right?
brctl addbr owrt-lan ip link set owrt-lan up ip addr add 192.168.1.42/24 dev owrt-lan brctl addbr owrt-wan ip link set dev eth0 up brctl addif owrt-wan eth0 ip link set owrt-wan up
Please note I have no IT background but I love tinkering. Thanks in advance for your help and input.