Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payments keep counting down after client disconnected #104

Open
ronnylov opened this issue May 29, 2019 · 5 comments
Open

Payments keep counting down after client disconnected #104

ronnylov opened this issue May 29, 2019 · 5 comments

Comments

@ronnylov
Copy link

I have noticed in /opt/lthn/var/log/audit.log that payment balance for authids keep counting down to zero after client disconnected. Decided to test this.

Paid 9 LTHN to a provider that charge 0.05 LTHN/min so this should last 3 hours. Disconnected after approximately 10 minutes and the balance kept counting down until zero on exit node.

See attached logs.
Client_interaction.txt
Client_audit.log.txt
audit.log
lthnvpnd_debug.txt

@ronnylov
Copy link
Author

This makes the idea of prepaid authids to not work because it will run out of money even if not used. This must be a bug?

@mahdi-ln
Copy link

If you want to add the feature of using remaining credit, please keep your system account-free (as it's now), otherwise there would be worry for users who use your service through a 3rd party vpn, is he/she always started your program with the primary vpn on.
Actually you can do it with payment receipt IDs that are only valid if the client IP is remained same as the one that is mentioned in payment receipt (patent pending (I'm in urgent need of money otherwise I wouldn't add these lame last 2 words at end))

@limosek
Copy link
Contributor

limosek commented May 29, 2019

This is feature from design, not bug.
Authid starts spending by first session (or just after payment, according to settings) and spending is not paused at any time. It is technically very hard to make spending paused on no traffic.

@ronnylov
Copy link
Author

ronnylov commented May 29, 2019

The payment "account" is the same as the payment id used. It is possible ti reconnect using paymentid@prividerid/serviceid and continue use it as long as balance is left on thus paymentid. The problem is that money is reduced no matter if connected or not.

Hmm. So prepaying is not useful in order to use later. You need to keep adding small payments while you are connected. I was thinking like a refill option. Well you could have an intetermediate wallet for that if we keep current design.

@limosek
Copy link
Contributor

limosek commented May 29, 2019

Yes, for now, it is recommended to use small payments. Recommended way for achieving more persistent authids is to define minimal minutes longer, like 1 month for some service. So uder can use this proxy entire month regardless of usage. But, again, security is playing role. More authids means more privacy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants