Traffic limiters to country
-
My ISP gives more bandwidth within the country.
Let's assume, 20mbs inside my country and 10mbs to outside.
That's NOT 20 + 10 = 30mbs.
Overall channel is 20mbs, where 10mbs is out of country traffic.
I need to create simple traffic limiters per user taking into account above country distribution.
Also I want to prioritize external traffic over internal.I created Country alias manually. (not updating so often).
I duplicated LAN rule to exclude Mycountry alias.
Then, I created double limiters and bind them with LAN rules.
I tried different approaches switching rule positions, invert destination alias and etc.
It never goes how I want. -
What does happen when you try it?
Are those limits Upload and Download?
Is that the total allowed for each public IPs address? Do you have more than one public IP address?
-
@stephenw10 said in Traffic limiters to country:
What does happen when you try it?
I use 2 clients. One client connects to somewhere within country, the other one connects to external world.
Client within country eats up all traffic.
Client1 - 20mbs
Client2 - 0mbs
That's not what I want, cause external traffic should be prioritized. Expected result is:
Client1 - 10mbs
Client2 - 10mbs
I played with rules and sometimes it split traffic by 10mbs. However, when there is no client2, client1 expected to take 20mbs. I mean, whole internal traffic was limited to 10mbsAre those limits Upload and Download?
Yes, those limits are Upload and Download.
Is that the total allowed for each public IPs address? Do you have more than one public IP address?
That's not per IP address. It doesn't matter how much IP addresses we have, bandwidth would be the same.
-
Ok so what happens if you do not have any Limiters in place? What problem are you actually trying to solve here?
It sounds like the ISP limits the traffic anway. -
It sounds like the ISP limits the traffic anyway.
Yes, you are right.
Ok so what happens if you do not have any Limiters in place?
Traffic randomly fluctuates between users.
What problem are you actually trying to solve here?
To distribute traffic equitably among several users.
With no limiters, traffic distribution is not fair. Some users with p2p protocols ( torrents ) eat all traffic, while others unable to check the mail.
This article perfectly makes what I want. The problem comes when provider offers different bandwidth within the country.
If client surf internal internet:
Client --> Internal --> 20mbs
If client surf External internet:
Client --> External --> 10mbs
If there are 2 clients:
For internal:
Client1 --> Internal --> 10mbs
Client2 --> Internal --> 10mbs
For external:
Client1 --> External --> 5mbs
Client2 --> External --> 5mbs
If one client internal, the other external. External traffic should be prioritized.
Expected result:
Client1 --> Internal --> 10mbs
Client2 --> External --> 10mbs
What happens:
Client1 --> Internal --> 20mbs
Client2 --> External --> 0mbsSo what I want is:
Internal traffic should be at least 10mbs and at most 20mbs.
External traffic should be at least 10mbs and at most 10mbs. -
Hmm, Limiters do not have a priority like that in order that External traffic will get bandwidth.
It does have Weights but that simply divides traffic in ratio. It could help here but it won't solve it entirely.
You do need to use dynamic queues as shown in that blog post to share the bandwidth though.
You might be able to do it be using a 10M pipe for all traffic and an additional 10M pipe to Internal destinations. With both setup using dynamic queues to share bandwidth. That does mean you can never see the full 20M to an internal destination though even if there's only one client.