Thanks. At the bottom of the firewall rule section, I did already include a note in italics to that effect
That’s fair. It is probably the main use case, so I will update the firewall rule section to exclude local IPs by defaultI will leave out the WAN side of things as that’s really out of scope for this tutorial
So I have now updated the firewall section. I have left the outbound NAT section as is - although on its face it has a broader operation than the firewall rule, I figured that if the firewall rule is not sending local traffic through the WG gateway then the outbound NAT rule for the WG interface won't impact it. Let me know if you disagree. Thanks again for the input
This should really be cleaned up and added as one of the official VPN walkthroughs in the manual.
Quote from: TheChickenMan on March 01, 2021, 09:17:15 pmThis should really be cleaned up and added as one of the official VPN walkthroughs in the manual.Not sure what "clean ups" you had in mind, but a PR has now been submitted for this tutorial to be added as a how-to in the OPNsense documentation: https://github.com/opnsense/docs/pull/317
I created a hosts alias for both group of PCs (PC1, PC2, & PC3), and another host alias for destinations that should be routed via VPN (e.g. UseVPN alias has YouTube.com, Amazon.com, google.com).I setup rule same as listed in main post, but instead of !RFC, I have UseVPN as destination... but this is not working. All traffic continues to go out WAN interface. But works fine when I revert back to !RFC
I'm only using YouTube.com as an example .... the destinations I'm trying to force thru VPN are simple websites that resolve to a single IP.I was able to setup rules easily on my old Asus router (via AsusWrt-Merlin firmware).So I'm hoping that achieving same thing with OPNSesne should be doable.