I need to limit PTP traffic

I’ve got a client who’s buying a 512Kb connection from us. He’s got 3 computers on the network and is connecting to one of our APs using a UBNT Nanostation.

The NS has a fixed IP address and is doing NAT for the network. So all I see is traffic from the one IP address.

His children are running Vuse and eating up all his bandwidth. When he tries to access the internet, there’s nothing because everything is going down the line to the P2P program.

I want to shape his traffic so that HTTP, POP and SMTP get prioritised while PTP goes down the list.

What I did was to go to IP - Firewall - Mangle and to mark all PTP packets from his IP address.
I then created a queue and said that traffic with that packet mark should not get more than 64Kb of his allocation.
This works just fine for things like uTorrent.

Vuse just laughs at this and goes straight through with the Mangle rule not even showing any PTP traffic.

How do I shape Vuse?

I’ve been thinking of creating a http queue with a minimum rate of (let’s say) 384Kb and then letting the other protocols fight over the remaining 128Kb, but I’m not entirely sure as to how to do that.

Any help would be much appreciated.

try to do the other way, mark the known and good packets and give them high priority and big speed, and then make a rule with low priority and speed for the rest of the traffic.

This thing gave a run for my money today.

First I went out and used http://wiki.mikrotik.com/wiki/TransparentTrafficShaper.

I couldn’t understand why it wasn’t working. Eventually after a couple of hours of struggling I dropped the IP address and used the Nanostation’s MAC address.

I’m now about to shape that traffic any way I want :smiley:

Success!