I just upgraded some Mikrotiks to 2.9.23 that are covering an apartment complex. Does anyone have some good firewall and bandwidth limiting examples that they want to share. The rules in the docs are very basic. I assume that I also need to limit connections per client? If there is some information out there I can use with my Mikrotik, I would greatly appreciate it.
Are you using RADIUS to authenticate clients and PPPoE? You can set the bandwidth limiting preferences through the RADIUS controls. If they are static, a simple queue per user will suffice.
As far as firewalling goes, it is going to be best to firewall the whole box. I am not sure how to do dynamic firewall rules on PPPoE, or if it is even possible. This could be tested with the ascend packet in/out filters, but the question still is will it work at all? Anybody else have an answer for this?
Some basic rules can be created for your firewall if you want to give an example of what all you are trying to block inbound. Outbound filters are very similar, but include what you are looking for.
The bottom line is that the question is too vague.
The network is pretty open. I’m allowing all access but I wanted to limit download speed per user to about 512Kand upload to about 128K. Then within that, limit P2P traffic to 64k up and down, and also block numerous connection to limit virus/spyware activity. Any suggestions on this specifically?
I’m trying to set up like what you are requesting but unfortunately, no success. And as far as I know, no one has done that. I’m trying to set up PCQ 1.5Mbps/256Kbps per connection and within that, limit P2P down to 128K/128K.
oh by the way, if you want to just limit per connection to 512Kb/128Kb, you can use simple queue or queue tree.
Add two PCQ queue type
download-limit 512K
upload-limit 128K
In simple queue, add target-address subnet (your client ip subnet say 123.123.123.0/24), setup Upload Limit queue type to “upload-limit” and Download-Limit queue type to “download-limit”.
Now your client is limited.
As for viruses, use filter to drop the viruses.
queue tree, you’ll need to mangle your packets but for simple queue, all you need is ip address subnet.
I need some help before now my network was very bad untill us use the config below it work but there are some site that don’t just work and are not able to sign in to http://www.mail.yahoo.com hotmail .com gmail.com and yahoo messenger when i increase the pcq rate thelink will be slow and can’t even open a webpage
/ queue type