luscis / openlan

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

support speed limit for openvpn client. #38

Closed danieldin95 closed 6 months ago

danieldin95 commented 6 months ago

iptables -N daniel-RL
iptables -A daniel-RL -m limit --limit 1mbit/s -j ACCEPT
iptables -A daniel-RL -j DROP
iptables -A FORWARD -i tun1025 -s 169.254.1.100 -j daniel-RL
Teddy-Zhu commented 6 months ago

image

danieldin95 commented 6 months ago

@Teddy-Zhu please iptables -S to show your qos rules.

Teddy-Zhu commented 6 months ago

image

danieldin95 commented 6 months ago

OK! Please send a pull request for your patch.

danieldin95 commented 6 months ago

Please refer to ztrust to design your jump chain

image