Howto reset user data/bandwidth usage

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
aboka
Posts: 47
Joined: Tue Mar 14, 2017 9:38 am

Howto reset user data/bandwidth usage

Post by aboka » Thu May 18, 2017 8:27 am

hi, anyone know howto reset the data usage(Transfer Bytes/Packets) of a single user - back to 0? we are running the latest SoftEther on Centos 7

thank you,
You do not have the required permissions to view the files attached to this post.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Howto reset user data/bandwidth usage

Post by thisjun » Wed May 31, 2017 4:53 am

These data is recorded in configuration file.
If you want to reset it, please delete the entry of the configuration file after stopping the VPN service.

aboka
Posts: 47
Joined: Tue Mar 14, 2017 9:38 am

Re: Howto reset user data/bandwidth usage

Post by aboka » Sat Oct 14, 2017 1:56 pm

thisjun wrote:
> These data is recorded in configuration file.
> If you want to reset it, please delete the entry of the configuration file
> after stopping the VPN service.

hi, sorry just notice your reply. can you pls point us to the config file location? and which entry should we delete?

regards,

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Howto reset user data/bandwidth usage

Post by thisjun » Thu Oct 26, 2017 6:17 am

Please export before edit the configuration file by 'Edit Config' on GUI.

shakibamoshiri
Posts: 285
Joined: Wed Dec 28, 2022 9:10 pm

Re: Howto reset user data/bandwidth usage

Post by shakibamoshiri » Mon Feb 20, 2023 8:52 pm

the worst way
stopping the SE server :|
modify vpn_server.config file manually :|
starting the server

the worse way
modify vpn_server.config file manually
using "vpncomd" and "ConfigSet" again

- ConfigGet - Get the current configuration of the VPN Server
- ConfigSet - Write Configuration File to VPN Server
- Flush - Save All Volatile Data of VPN Server / Bridge to the Configuration File

the better way
https://github.com/SoftEtherVPN/SoftEth ... pc-clients
using RPC-JSON
- GetUser date and save it
- Convert GetUser date to CreateUser
- DeleteUser
- CreateUser using converted date from GetUser
- Flush

the right way
there should have been a "vpncmd" command or RPC-JSON API but unfortunately there is none

Post Reply