Rules for virtual machine with wireguard vpn running inside it?

Started by hcker2000, July 28, 2023, 04:00:09 AM

Previous topic - Next topic
I have a computer 192.168.1.5 that has a virtual box VM running and inside that it has an outbound connection to a wireguard VPN. I'm seeing that the firewall is blocking all traffic thats trying to come back in over the VPN connection.

See attached for whats being blocked. The real issue is I don't know for sure what that vpn ip is going to be each time I connect.

I have also enabled the upnp plugin with no luck. It is working as I see some services have created ports in the status page.

I was able to fix this by:


  • Switching virtual box network for the vm from NAT to Bridged
  • Setting a static ip in opnsense for the new connection
  • Adjusting other software to use the new ip