As I following through this tutorial I installed OpenVPN on my server https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-18-04
and I needed to limit bandwidth for the users so regarding to this tutorial I set a bandwidth limitation for the server
https://netbeez.net/blog/how-to-use-the-linux-traffic-control/ I just used 2 commands for set limit for bandwidth
apt-get install iproute2
tc qdisc add dev eth0 root tbf rate 1mbit burst 32kbit latency 200ms
Also I set sever.conf up with the underneath configuration
sndbuf 0
rcvbuf 0
and add these lines to the ovpn client file
sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"
but unfortunately my openVPN is unstable and it doesn’t work well, it just work for a few seconds and after the seconds it Interrupts the internet traffic.
so is there anything else for limiting the bandwidth for each user in DigitalOcean Droplets?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
It seems you have configured traffic control tc and buffer settings in the server and client config files. However, if you’re still facing issues, you can try the following:
/var/log/openvpn/openvpn.log or /var/log/syslog.Wondershaper (a wrapper for tc) or trickle (a standalone userspace bandwidth shaper).If you need further assistance, please refer to the OpenVPN troubleshooting guide and DigitalOcean OpenVPN tutorial.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.