HP-UX IPQoS Configuration File Examples

Example 4: Limit ftp Bandwidth

Example 4: Limit ftp Bandwidth

In this example, a policy is set up to limit ftp bandwidth to 150kb/s. Since ftp operates on consecutive ports 20 and 21, the policy can use a port number range.

####

#Sample file for limiting ftp bandwidth

filter limit_ftp { srcportlo 20 srcporthi 21 priority 1

}

policy limit_ftp {

uses limit_ftp max 150K

}

adapter lan0 { uses limit_ftp

}

adapter lan1 { uses limit_ftp

}

####

In this policy, the filter and policy have the same name, limit_ftp. This naming scenario, can be confusing. However, using the same name for the filter and the policy can denote that they go together. The parser keeps the filter and policy separate, so it is a matter of individual preference.

Appendix B

123