I'm relative newby to Mikrotik, so this maybe a simple question, but I hope someone can help me out.
I'm trying to create a base setup that I can use in multiple environments and am currently playing around on my 750G r3 to increase my knowledge. I have setup the Filter Rules to allow access to the internet to a bridge called LAN-WIFI. Here are the rules:
Code: Select all
/ip firewall filter
add action=accept chain=input comment=\
"M7 Default Rule: Accept established, related, untracked" \
connection-state=established,related,untracked
add action=accept chain=input comment="M7 Default Rule: L2TP Ports" dst-port=\
500,1701,4500 in-interface=Internode protocol=udp
add action=accept chain=input comment="M7 Default Rule: L2TP IPSec" \
in-interface=Internode protocol=ipsec-esp
add action=accept chain=input comment="M7 Default Rule: L2TP IPSec" \
in-interface=Internode protocol=ipsec-ah
add action=accept chain=input comment="M7 Default Rule: Winbox Remote Access" \
dst-port=8291 protocol=tcp src-address-list=AllowWinboxRemotely
add action=drop chain=input comment="M7 Default Rule: Drop invalid" \
connection-state=invalid
add action=accept chain=input comment="M7 Default Rule: Accept ICMP" \
protocol=icmp
add action=accept chain=input comment=\
"M7 Default Rule: Accept to local loopback (For CAPsMAN)" dst-address=\
127.0.0.1
add action=drop chain=input comment=\
"M7 Default Rule: Drop all NOT coming from LAN" in-interface=!LAN-WIFI
add action=accept chain=forward comment=\
"M7 Default Rule: Accept established, related, untracked" \
connection-state=established,related,untracked
add action=drop chain=forward comment="M7 Default Rule: Drop Invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"M7 Default Rule: Drop all EXCEPT not DST NAT rules" \
connection-nat-state=!dstnat in-interface=Internode
I hope that makes sense.
Thanks in advance...
Duke