Linux gateway traffic control (Qos)-Linux Enterprise Application-Linux server application information. The following is a detailed description. Iptables + TC for traffic control the following is the Qos settings of a linux gateway in our subsidiary. Using iptables and TC, we feel that the effect is very good.
Instance 1:
Traffic control:
Eth0 is connected to the Intranet on the firewall, and eth1 is connected to the Internet line with a bandwidth of 2.5 M. Target:
1. Intranet users can download up to 1000 kbit/s, while 192.168.37.167 master 192.168.37.168 can download up to 1.5 Mbit/s.
2. the upload bandwidth of 192.168.37.124 and 192.168.37.140 in the Intranet is up to 1.5 MB, while that of other users is up to 150 Kbit/s.
(After such traffic control, even if someone in the Intranet uses software such as bt, It is not afraid. Because his upload can only take up to 150 Kbit/s, and download a maximum of 1000 kbit/s ^-^)
#! /Bin/sh
TC = "/sbin/tc"
LAN_IFACE = "eth0"
INET_IFACE = "eth1"
ERP1 = "192.168.37.167/32"
ERP2 = "192.168.37.168/32"
INTERNAL_LAN = "192.168.37.0/24"
Start (){
################### Qos rule on eth0 ################ ########
# $ TC qdisc add dev eth1 root tbf rate 512 kbit lantency 50 ms burst 1540
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.