There is no Internet connection on the host computer with OpenWRT installed in VirtualBox and a 4G modem

  • Hello everyone, help set up an Internet connection via OpenWRT installed in VBox on Win 10 (host machine). The Internet connection is via a 4G modem (QMI Quectel EP-06) connected via a USB port.
  • Only 1 network is installed on the Vbox via the virtual host adapter. The modem connected to the host computer is routed via USB. A modem configured inside OpenWRT gets Internet access. From the host machine (win 10) there are no problems accessing the OpenWRT configuration interface at, but I can't connect the Internet from a 4G modem on the host machine, I've tried different packages for adding additional NAT network cards, a bridge, etc., but I can't figure out how to make it work. As I understand it, if there was real hardware, there would be no problems, probably the problem is in configuring the VBox + OpenWRT package :sob:
  • My main task is to connect several 4G modems to OpenWRT and use them as a proxy server from the host computer, using the LAN IP addresses to control the modems (reboot, etc.), since the modems do not work in dhcp mode with their network card, like a regular 4g dongle modem.
  • I have these settings:

the 4g interface should probably be in the wan fw zone.

1 Like

Yes, I already had this setup.

my bad, didn't notice you had two 4G interfaces.

yes, the second one is the IPv4 interface, it has no settings

The 4G_4 interface is the one that actually holds an IP address on (or near) the Internet, it needs to be in the wan zone. Does the OpenWrt routing table show the default route is through 4G_4?

Don't you need to configure packet forwarding on Windows?

On Windows the virtualbox interface should be bridge mode, then the Windows IP stack should simply take an IP address from OpenWrt and set OpenWrt as its default gateway as if it were a real router connected by Ethernet.

All this being outside the scope of OpenWrt though.

Such settings I have now are:

If you set the bridge mode, it will cause a conflict with the connection through my main LAN, and the OpenWRT IP address will be issued from the LAN range of my real router. I need an additional network only to work with a proxy server on the OpenWRT side, as if I connected several additional routers with independent Internet access to one computer.

If you mean to manage a proxy server, then I use 3Proxy installed on the host machine.

No, I mean packet forwarding between the interfaces.
(Unrelated to OpenWrt)

I haven't thought about it, probably not :innocent: