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

Add allow-duplicate-cn command-line flag #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AvaxVPN-Team
Copy link

@AvaxVPN-Team AvaxVPN-Team commented Apr 13, 2021

This pull request utilizes the Peer ID to uniquely identify each request, with the lowest cardinality possible. The Peer ID a unique ID for each connection, given by the OpenVPN itself in the log file, which is started from 0 and incremented by each new connection.

The good point of this method is that if any of the old ID's get disconnected, those empty spaces will be filled when someone new connects, this way, this number will almost always remain under the maximum client count of your server, and a cardinality of roughly n^2 could be expected where n is the maximum expected simultaneous client count. It is an opt-in feature, which will get activated by this flag: --allow-duplicate-cn.

This fixes #15.

@patrickjahns
Copy link
Owner

patrickjahns commented Feb 2, 2022

@AvaxVPN-Team - I am very sorry for the delayed response here.
Thank you very much for the contribution 🙏 - are your still keen on merging this PR? If yes would you be able to fix the remarks from the linter?

Additionally - I am thinking of adding an end-to-end test suite for the different samples. Would you be keen on taking this over as well?

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

Successfully merging this pull request may close these issues.

Sum bytes_downloaded and bytes_uploaded for duplicate common-names
2 participants