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

support speed limit for openvpn client. #38

Closed danieldin95 closed 7 months ago

danieldin95 commented 8 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 7 months ago

image

danieldin95 commented 7 months ago

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

Teddy-Zhu commented 7 months ago

image

danieldin95 commented 7 months ago

OK! Please send a pull request for your patch.

danieldin95 commented 7 months ago

Please refer to ztrust to design your jump chain

image