Let’s say I have a client (laptop) with ip 192.168.2.33 (Windows XP)
My Mikrotik LAN card has ip 192.168.2.1
My email server has ip 192.168.2.4 (Windows 2003 server with hmail)
I also has domain and redirect port 80 to web servers, and port 110 and 25 to email server.
Currently I have a queue for that IP 192.168.2.33 for 50k upload 100k download, and it’s working just fine.
From outside, that laptop accesses email without being capped by mikrotik.
However, there’s a capped bandwith based on Queue I set up for that IP when that PC is accessing email server from Internal network using pop and smtp for my domain (public DNS).
Of course the simplest solution would be to change POP and SMTP setting on that particular laptop, so it points to my email server’s Windows hostname when it’s inside my network, and change it back to public DNS when it’s outside. But I don’t want that solution - it’s so inconvenient by design.
Show us your queue settings
If you are using queue simple - just create one queue with unlimited bandwidth for target address of the e-mail server and put it in the beginning of the list of queues.
If you are using queue tree - in the beginning of mangle just throw out the packets from/to e-mail server (so they won’t be marked).
Doesn’t do the trick, as local client ‘192.168.2.33’ which is using my domain name in both SMTP and POP setting is still being limited (50k upload/ 128k download).
why do you need this? Is it really necessary to masquerade everything?
I have some problems with understanding the rules .
But still the queue problem is strange. It should at least have unlimited upload, as the dst-nat (for upload packets) is done before any queueing and the packet should have dst-address 192.168.2.4 and be caught by the first queue.
Maybe unlimited queue for target-address=0.0.0.0/0 and dst-address=192.168.2.4 will change anything? (I don’t think it would make any difference, but I have no better shot).
One more - the “DKMPDC” is simple queue number 2. What are queues number 0 and 1?
One configuration item in /queue simle’ can create from 0 to 3 separate queues - one queue in global-in, one queue in global-out and one queue in global-total. If all properties of a queue have default values (no set limits, queue type is default), and queue has no children, then it is not actually created. This way, for exanple, creation of global-total queues can be avoided if only upload/download limitation is used.
Set the rate limit to 1gbps (1g/1g) instead of 0/0. All default values mean that queue doesn’t actually get created.
But when I issue print command, it somehow displays my queue as 0/0. Weird.
Edit: I’ve done extensive researches and some recommend the use of ‘mangle’. Unfortunately I’m still new in Mikrotik and don’t understand such complex feature.
Edit the queue named “DKMPDC” and set its max-limit to 1000000/1000000. Do that for each queue that is supposed to be exempt from simple queues further down the list.
I’m curious if it helps . The queue is not created for default-small without limit, but the queue simple “rule” still “catches” the packets - so you can see number of bytes downloaded and uploaded. So the packets shouldn’t be checked by the further “rules”…
I would add rule with “target-address=0.0.0.0/0 dst-address=192.168.2.4” and see if it helps .
From that laptop (192.168.2.33) I tried to send 9 MB email. It’s still limited - queue 33 displays that the upload rate for that particular machine is as defined in the rule.