Page 1 of 1

Howto reset user data/bandwidth usage

Posted: Thu May 18, 2017 8:27 am
by aboka
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,

Re: Howto reset user data/bandwidth usage

Posted: Wed May 31, 2017 4:53 am
by thisjun
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.

Re: Howto reset user data/bandwidth usage

Posted: Sat Oct 14, 2017 1:56 pm
by aboka
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,

Re: Howto reset user data/bandwidth usage

Posted: Thu Oct 26, 2017 6:17 am
by thisjun
Please export before edit the configuration file by 'Edit Config' on GUI.

Re: Howto reset user data/bandwidth usage

Posted: Mon Feb 20, 2023 8:52 pm
by shakibamoshiri
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