0

I am looking to setup a VPN Server in AWS EC2 instance. I do understand ec2 instances have limited bandwidth according to its instance type.

Let assume, I have a t2 medium instance on which VPN Server is configured and running but i want to implement a limit for each user to consume defined limit of bandwidth. like total bandwidth of ec2 instance is 10 Mbs and 2 users are connected to my server but they can use 2 Mbs speed each however, rest 6 Mbs will be free.

Is there any way we can do that. Does EC2 instance provide this feature to implement bandwidth division either directly on instance or by using any third party tool.

  • That is something you would do with the OS or VPN software. – Appleoddity Jun 24 '18 at 5:58
0

You can use "shaper" option if you use OpenVPN as your VPN server. If you want to set speed limits by each client, you can set the option in the client config file. However note that clients can change it.

If you set the option is server config, all clients will be treated with the same value.

Read OpenVPN man page for more info:

https://openvpn.net/index.php/open-source/documentation/manuals/65-openvpn-20x-manpage.html

Reference: Openvpn Bandwidth Limit

  • @ThilianB, Can you please provide me an example of server config with having some limit on downrate and uprate for each client. – Chandan Kashyap Jul 11 '18 at 3:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.