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,
Howto reset user data/bandwidth usage
-
- Posts: 47
- Joined: Tue Mar 14, 2017 9:38 am
Howto reset user data/bandwidth usage
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Howto reset user data/bandwidth usage
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.
If you want to reset it, please delete the entry of the configuration file after stopping the VPN service.
-
- Posts: 47
- Joined: Tue Mar 14, 2017 9:38 am
Re: Howto reset user data/bandwidth usage
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,
> 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,
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Howto reset user data/bandwidth usage
Please export before edit the configuration file by 'Edit Config' on GUI.
-
- Posts: 289
- Joined: Wed Dec 28, 2022 9:10 pm
Re: Howto reset user data/bandwidth usage
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
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