Hi all,
I'am just rebuilding and rethinking my home network (includes some neighbours as well) and came to a point being a little lost what maybe the best approach.
Background: in the past (IPv4 only), I've created firewall rules based on the source of the packet / subnets (NAT disabled on the router). Ingress on the firewall was via a single (lan) interface without vlans. For the new setup I want to have (or at least design to support in near future) full IPv6 support. I get a respective /56 prefix at the wan side of the firewall from my provider. Everything is quite clear on the internal side of the router with delegating prefixes from the firewall to the router feeding clients with IPs.
Rough setup:
Internal devices / APs / Switches (spread over >10 vlans) <-> router (OpenWrt) -> firewall (OPNsense)
My problem is the way between the router and firewall. My firewall rules must be different based on the subnet they come from which is now a IPv6 one with changing prefix. And even further, the firewall is not "knowing" the prefixes of the downstream vlans (maybe /64 ones) behind the router, only the first delegated bigger subnet (e.g. a /57) from firewall to router.
Are there any best practices how to solve this or is there someone out there having a similar setup and solved this already?
My first thought, and maybe a working one, was making the way between router and firewall to a kind of a trunk port. Specific to map every vlan on the internal router side to one on the wire between it and the firewall while mapping every vlan there to a specific interface. With that, I could easily create firewall rules based in the ingress interface (kind of zone based then).
But I am struggling regarding:
- is this a good way to go?
- how the hell can I configure this. For tagging the egress packets on the router wan I have a idea. But how can I define a route linking a internal source vlan / interface with a specific outgoing interface on the wan side of the router?
I hope my direction is clear with the above and it is not to much. If something is unclear just point me in the direction where I missed details.
Thanks beforehand for any help
Robert