I don't get it, why is 127.0.0.0 in there? Why are 192.168.1.0/24 and 10.0.10.0/24 there twice? What is in the "Automatic rules" (more south on the same page...)
Now that we fixed the modem access, on to fix the VPN:
Modify your "LAN to outside rule" so that the gateway used (there is a gateway option, you need to add the gateway's IP manually under System > Gateways > Single) is the remote server's VPN address (the one you get *after* establishing the tunnel). That will force outgoing packets to go through that particular gateway and return packets (ie answers to *your* packets will have no other way but to flow through the VPN).
Make sure you don't get locked out. Check (and recheck) that there is a rule that allows OPNSense webgui access **BEFORE** your modified rule.
That modified gateway rule will direct everything over the tunnel. Assuming your provider (I see PIA mentioned there, so I'm going with private internet access) allows you to query DNS over the tunnel (it should) then the only thing left is to modify your DHCP server settings so that the DNS it gives is the PIA one and/or modify OPNSense's DNS (you really really should be using unbound in "full resolver" mode + have that go through the tunnel) and you have completed the circle. For unbound, create a rule to allow traffic from the firewall itself to the world + VPN gateway as before.
Feel free to adjust/add rules as you see fit for access. Also make sure that there is a rule that allows traffic from your LAN to your modem's subnet **before** the VPN rules.Enjoy, you are welcome
Are you sure that I need to add that gateway manually? There is already one there labeled PENVPNCLIENT_VPNV4. Besides, how do I automate retrieval of that IP address? Surely, it does not need to be added by hand each time? At any rate, I added a gateway manually using the IP address of the VPN server, and made it the gateway for the LAN rule, but no dice.
Not sure about where the last rule goes. Well, I did the above. The VPN logs shows that the "Initialization sequence is completed". So the OpenVPN client is communicating fine with theserver. From the OPNsense box, I can ping the outside world. However, I then have no internet access from th LAN. Only, if I change the gateway for "default allow LAN to any" rule back to default, do I get access, but not through the VPN.
1) Where did that gateway come from?2) I'm willing to bet you used the public IP of the VPN server instead of the tunnel IP.WRT the DNS: your setup is a disaster, let's get the VPN fixed first then we'll worry about the DNS.