Wednesday, April 20, 2011

block p2p with streamyx modem qos

just some sharing here smile.gif

1. Go to "Advanced Setup - WAN" and make sure the QoS for interface "ppp_0_0_35_1" is enabled. If it is disabled, edit it and tick the enable QoS there. Service category is UBR without PCR. Save.

2. Under "Quality of Service" (QoS -- Queue Management Configuration) page and tick the enable QoS there. Save.

3. Add queue at "Quality of Service - Queue Config".
- Queue Configuration Status: Enable
- Queue: PVC0/0/35
- Queue Precedence: 1
Repeat step 3 twice for queue precedence 2 and queue predence 3. Save.

4. Add rules In "Quality of Service - QoS Classification"
The important fields
- Traffic Class Name: is the name you want to give to the rule
- Rule order: order of the rule to be run
- Rule status: enable
- Assign Classification Queue:
.....traffic that need higher priority (like gaming, voip, icmp, dns) you can classify under PVC0/0/35&Prec1&Queue9
.....normal traffic (like https http) classify under PVC0/0/35&Prec2&Queue10
.....bulk traffic (p2p, ftp, heavy downloads) classify under PVC0/0/35&Prec3&Queue11

Traffic classification rules is the condition of the traffic packet you are looking for. Different application uses different port.
You can configure in such a way that certain physical port/LAN IP address/MAC address/protocol&port/destination of the IP packet rank higher than another.

Example configuration - classify by protocol and port number used by different application
Attached Image
i've left out some blank columns.

Source refers to LAN side, destination refers to WAN side.

5. after everything is done just save and reboot.
hope it helps.