For example, I would like to limit each vpn client only 2GB daily traffic,How to do that?
Thanks.
How to control the flow of clients
-
- Posts: 551
- Joined: Wed Jul 24, 2013 12:09 pm
Re: How to control the flow of clients
Assign a VLAN per user and do this in your linux operating system.
-
- Posts: 4
- Joined: Fri Aug 14, 2015 3:02 am
Re: How to control the flow of clients
kh_tsang wrote:
> Assign a VLAN per user and do this in your linux operating system.
Sorry,Can you explain it in detail?
What I imagined just like AAA(by RADIUS), but I do not know how to operate。
> Assign a VLAN per user and do this in your linux operating system.
Sorry,Can you explain it in detail?
What I imagined just like AAA(by RADIUS), but I do not know how to operate。
-
- Posts: 551
- Joined: Wed Jul 24, 2013 12:09 pm
Re: How to control the flow of clients
When you add a user in the virtual hub, you can define a VLAN ID.
You may add a tap device(e.g. tap_hub1).
Then, add one VLAN interface(e.g. tap_tap.1) for each user and bridge them using a linux bridge.
You can measure the traffic according to the adapter. If it reaches the limit, you can add an iptables rule to filter the traffic and redirect them to a web server showing a quota exceeded notice. Finally, you can record the value, flush the iptables rules every day at 00:00 and measure the traffic with reference to the last record.
You may add a tap device(e.g. tap_hub1).
Then, add one VLAN interface(e.g. tap_tap.1) for each user and bridge them using a linux bridge.
You can measure the traffic according to the adapter. If it reaches the limit, you can add an iptables rule to filter the traffic and redirect them to a web server showing a quota exceeded notice. Finally, you can record the value, flush the iptables rules every day at 00:00 and measure the traffic with reference to the last record.