i’m facing an issue with my firewall setup,
when i activate the FW rules the internet connection gets very slow that people can’t work.
here’s the setup i have:
/ip firewall address-list
add address=192.168.0.0/24 list=kcwlan
/ip firewall filter
add action=drop chain=input connection-state=invalid disabled=no
add chain=input comment=“Allow Access From LAN” disabled=no src-address-list=kcwlan
add chain=input comment=“Accept establishes connection on input chain” connection-state=established disabled=no
add chain=input comment=“Allow related traffic on the router itself” connection-state=related disabled=no
add action=drop chain=input comment=“Drop All other traffic” disabled=no
add action=drop chain=forward comment=“Block Forwarding of invalid packages” connection-state=invalid disabled=no
add chain=forward comment=“Accept new connections from our bridge-lan” connection-state=new disabled=no src-address-list=kcwlan
add chain=forward comment=“Accept established connections” connection-state=established disabled=no
add chain=forward comment=“Accept related connections like: ftp, etc” connection-state=related disabled=no
add action=drop chain=forward comment=“drop all other traffic” disabled=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
Put established, related into one rule and put this rule as first of each chain. Also create the same fasttrack rule and put it in front of forward chain. You need to have at least 6.29 and it will bypass the queues, if used.
There is nothing wrong with your firewall setup, its pretty straightforward. Go to tools\profile and from there you can check what is going on with firewall CPU usage.
Hi All, i have been busy and crazy for will all this problems to solve.
I really want to thank you guys/girls for your time, that’s what makes the forums valuable.
One thing i like about difficulties or problems is that they often bring to us new ways of looking to the things, and that’s what happened to me.
i kept digging and found some interesting discussions:
A firewall connection-state has only 1 status:
it is either new,established,related, OR invalid.
A single packet can not be more than one of these states.
that is like summarize the discussion on the second link:
Hi Jarda, thank you for this input,
i have tried to do this but it seems that router OS doesn’t allow me to do that (Winbox or command line),
can you explain me how to make it possible.
If you do not use simple queues etc. you can enable Fasttrack to increase your speed (ROS 6.29 and newer).
Just put this rule above other firewall rules:
Hi, Any tips on Qos or preventing users on consuming all the bandwith alone?
if you could advise on a book/manual/tutorial or even posts, that explain what’s happening (on QoS) i glad already.