Hello,
I have a VLAN Setup using one shared Bridge and VLAN-Interfaces (see below) to the cpu.
Since this is a router i want it to route between the different VLANS and this works as expected.
To control the traffic between the VLANS i use the firewall of the router.
Is it now best practice in this setup to use the VLAN interfaces (V11_Config, V10_Lan) of the router, as source/destination identification for firewall rules?
Or is it recommended to use address spaces (10.10.10.0/24)? Or even just address lists (this seems not very practical)?
I have seen and tried them all successfully. Which one is most secure and recommended one or is it indeed irrelevant?
I would guess that using the VLAN-Interface is the best readable and scalable option.
Am i right that it is not possible to spoof Addresses from an other VLAN because the router would not be accessible as gateway on the respective interface?
Thank you for your opinion.
# model = RB750UPr2
##ADD shared Bridge
/interface bridge add name=bridge_VLAN vlan-filtering=yes
##ADD Vlan interfaces on VLAN-Bridge for Router IP-Interface
/interface vlan add interface=bridge_VLAN name=V10_Lan vlan-id=10
/interface vlan add interface=bridge_VLAN name=V11_Config vlan-id=11
/ip address add address=10.10.11.1/24 interface=V11_Config network=10.10.11.0
/ip address add address=10.10.10.1/24 interface=V10_Lan network=10.10.10.0
##DHCP-Server on LAN and CONFIG Vlan
/ip pool add name=dhcp_pool_LAN ranges=10.10.10.20-10.10.10.30
/ip pool add name=dhcp_pool_Config ranges=10.10.11.10-10.10.11.20
/ip dhcp-server add address-pool=dhcp_pool_LAN disabled=no interface=V10_Lan name=dhcp_Lan
/ip dhcp-server add address-pool=dhcp_pool_Config disabled=no interface=V11_Config name=dhcp_Config
/ip dhcp-server network add address=10.10.10.0/24 dns-none=yes gateway=10.10.10.1
/ip dhcp-server add address=10.10.11.0/24 dns-none=yes gateway=10.10.11.1
##TRUNK at eht1
##AccessPort VLAN11 on eth4
##AccessPort VLAN10 on eht5
/interface bridge port add bridge=bridge_VLAN interface=ether1
/interface bridge port add bridge=bridge_VLAN interface=ether4 pvid=11
/interface bridge port add bridge=bridge_VLAN interface=ether5 pvid=10
/interface bridge vlan add bridge=bridge_VLAN tagged=bridge_VLAN,ether1 untagged=ether4 vlan-ids=11
/interface bridge vlan add bridge=bridge_VLAN tagged=ether1,bridge_VLAN untagged=ether5 vlan-ids=10