luscis / openlan

Cloudify VPN written in Golang, and simple deployment via Kubernetes
http://vpn.luscis.cn
GNU General Public License v3.0
56 stars 24 forks source link

openvpn 上行限速失败 #73

Closed 0917shadow closed 1 month ago

0917shadow commented 1 month ago

root@openlan3-virtual-machine:~# tc -d qdisc add dev tun1198 ingress root@openlan3-virtual-machine:~# root@openlan3-virtual-machine:~# root@openlan3-virtual-machine:~# tc filter add dev tun1198 parent ffff: protocol ip prio 1 u32 match u32 0 0 police rate 1mbit burst 64k drop flowid :1 root@openlan3-virtual-machine:~# tc filter show dev tun1198 ingress filter parent ffff: protocol ip pref 1 u32 chain 0 filter parent ffff: protocol ip pref 1 u32 chain 0 fh 800: ht divisor 1 filter parent ffff: protocol ip pref 1 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid :1 not_in_hw match 00000000/00000000 at 0 police 0x1 rate 1Mbit burst 64Kb mtu 2Kb action drop overhead 0b ref 1 bind 1

root@openlan3-virtual-machine:~# root@openlan3-virtual-machine:~# root@openlan3-virtual-machine:~# root@openlan3-virtual-machine:~# tc filter show dev tun1198 parent ffff: filter protocol ip pref 1 u32 chain 0 filter protocol ip pref 1 u32 chain 0 fh 800: ht divisor 1 filter protocol ip pref 1 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid :1 not_in_hw match 00000000/00000000 at 0 police 0x1 rate 1Mbit burst 64Kb mtu 2Kb action drop overhead 0b ref 1 bind 1

root@openlan3-virtual-machine:~# root@openlan3-virtual-machine:~#

danieldin95 commented 1 month ago

fix it add ingress police.