Sat Mar 09, 2024 9:48 pm
(1) Remove bridge filters is probably the most important change.
(2) Add wireguard to list members.
/interface list member
add comment=defconf interface=ether1-WAN list=WAN
add comment=defconf interface=bridge-LAN list=LAN
add interface=wireguard1 list=LAN
(3) Modify firewall rules.... Put input chain rule in right place.
Use drop all for forward chain so as to best see and control traffic flow ( aka get rid of the default dstnat rule and replace with 3 rules )
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=input comment="WireGuard VPN Allow Rule" dst-port=\
13231 protocol=udp
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=accept chain=forward comment="internet traffic" in-interface-list=LAN out-interface-list=WAN
add action=accept chain=forward comment="port forwarding" connection-nat-state=dstnat disabled=yes {enable if required}
add action=accept chain=forward comment="allow WG traffic" in-interface=wireguard1 dst-address=192.168.1.0/24
add action=drop chain=forward comment="drop all else"