forked from extern/shorewall_code
Don't create ingress qdisc for device with IN-BANDWIDTH == 0 -- Take 2
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4832 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
2a94144472
commit
e4524b7a96
@ -1982,8 +1982,9 @@ Invariant Sections, with no Front-Cover, and with no Back-Cover Texts.
|
||||
You want this mainly if you have a DSL or Cable
|
||||
connection to avoid queuing at your providers side.
|
||||
|
||||
If you don't want any traffic to be dropped set this
|
||||
to a value faster than your interface.
|
||||
If you don't want any traffic to be dropped, set this
|
||||
to a value to zero in which case Shorewall will not
|
||||
create an ingress qdisc.
|
||||
|
||||
Use kbit or kbps(for Kilobytes per second) for
|
||||
speed, and make sure there is NO space between the
|
||||
|
@ -193,7 +193,7 @@ setup_traffic_shaping()
|
||||
save_command "${dev}_mtu=\$(get_device_mtu $device)"
|
||||
run_tc "class add dev $device parent $devnum: classid $devnum:1 htb rate $outband mtu \$${dev}_mtu"
|
||||
|
||||
if [ ${inband} -gt 0 ]; then
|
||||
if [ $(rate_to_kbit ${inband}) -gt 0 ]; then
|
||||
run_tc qdisc add dev $device handle ffff: ingress
|
||||
run_tc filter add dev $device parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${inband} burst 10k drop flowid :1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user