diff options
author | Rosy Song <rosysong@rosinson.com> | 2018-11-10 20:47:23 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2018-11-10 20:47:23 +0200 |
commit | 07c2d29859dc1f4e40f9e367fa6aa9cc77f8538d (patch) | |
tree | a6f55a9a95bb656acd997503afc93a2afd4b36d7 /net/nft-qos/files | |
parent | 665c44ea976272737f8691fa04c8ebf62ebe3a98 (diff) |
nft-qos: use prerouting chain rather than input
Using the input chain can only limit the upload rate in local network.
Since to do the limit rate on both native and remote, we have to
replace the input hook with prerouting.
Signed-off-by: Rosy Song <rosysong@rosinson.com>
(Added Makefile version bump)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'net/nft-qos/files')
-rw-r--r-- | net/nft-qos/files/lib/static.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/nft-qos/files/lib/static.sh b/net/nft-qos/files/lib/static.sh index cb56b4925..95d3162b1 100644 --- a/net/nft-qos/files/lib/static.sh +++ b/net/nft-qos/files/lib/static.sh @@ -43,7 +43,7 @@ qosdef_flush_static() { # static limit rate init qosdef_init_static() { local unit_dl unit_ul rate_dl rate_ul - local limit_enable limit_type hook_ul="input" hook_dl="postrouting" + local limit_enable limit_type hook_ul="prerouting" hook_dl="postrouting" uci_validate_section nft-qos default default \ 'limit_enable:bool:0' \ @@ -63,7 +63,7 @@ qosdef_init_static() { [ -z "$NFT_QOS_HAS_BRIDGE" ] && { hook_ul="postrouting" - hook_dl="input" + hook_dl="prerouting" } qosdef_appendx "table $NFT_QOS_INET_FAMILY nft-qos-static {\n" |