Pihole IP: 192.168.0.8
LAN filtered: 192.168.0.0/20
100-Casa: vlan100 (LAN Filterd =>192.168.0.0/20)
sfp-sfpplus1: provider-vlan and all-vlan (casa, mamma, guest) (from a manage-switch)
veth1: container PiHole
Code: Select all
/interface list member
add interface=provider-pppoe list=WAN
add interface=provider-vlan list=WAN
add interface=BR-Capsman list=LAN
add interface=BR-Pihole list=LAN
Code: Select all
/interface bridge port
add bridge=BR-Pihole interface=veth1
add bridge=BR-Capsman interface=sfp-sfpplus1
add bridge=BR-Pihole interface=100-Casa
Code: Select all
/ip firewall address-list
add address=192.168.0.0/20 comment="Casa NET" list=net_casa
add address=10.255.255.0/24 comment="Mamma NET" list=net_mamma
add address=172.16.0.0/20 comment="Guest NET" list=net_guest
add address=10.255.255.0/24 comment="Excluded from PiHole" list=excluded
add address=172.16.0.0/20 comment="Excluded from PiHole" list=excluded
add address=192.168.0.8 comment="Excluded from PiHole" list=excluded
Code: Select all
/ip firewall filter
add action=accept chain=forward comment=PiHole dst-address=192.168.0.8 \
src-address=192.168.0.0/20
add action=accept chain=input comment=PiHole dst-port=53 protocol=tcp \
src-address=192.168.0.0/20
add action=accept chain=input comment=PiHole dst-port=53 protocol=udp \
src-address=192.168.0.0/20
Code: Select all
/ip firewall nat
add action=masquerade chain=srcnat src-address=192.168.0.0/20
add action=masquerade chain=srcnat src-address=10.255.255.0/24
add action=masquerade chain=srcnat src-address=172.16.0.0/20
add action=dst-nat chain=dstnat comment=PiHole dst-port=53 in-interface-list=\
LAN protocol=tcp src-address-list=!excluded to-addresses=192.168.0.8 \
to-ports=53
add action=dst-nat chain=dstnat comment=PiHole dst-port=53 in-interface-list=\
LAN protocol=tcp src-address-list=!excluded to-addresses=192.168.0.8 \
to-ports=53
Thanks