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 headless support #120

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

Add headless support #120

wants to merge 12 commits into from

Conversation

randshell
Copy link
Contributor

@randshell randshell commented Aug 22, 2020

I followed the style of the openvpn-install repository and used some of its code. Thanks to everyone that contributed there.

The other additions are:

  • Allow customization of IP and NIC in headless mode, useful for servers with multiple IPs. openvpn-install repo will need this change too.

To consider:

  • The headless addition of an user will block the script waiting for a free IP if the one inserted is already in use. I'd suggest to handle the IP management of the clients automatically as happens with OpenVPN and users that want a specific IP for a device can manually edit the configuration files. Other suggestions, for example exiting instead of asking again for an IP (it isn't very friendly when the script is run interactively), are welcome.

  • The headless revocation of an user isn't friendly because we ask for a client number instead of a client name. openvpn-install repo will need this change too.

Changes aren't tested. PR is a draft while waiting for feedback on the above considerations @angristan .

Fix #21

EDIT: I've pushed some commits that would help with the above issues. Phrasing can be made more clear, but it's ready for review.

@randshell randshell marked this pull request as ready for review August 23, 2020 10:12
randomshell added 2 commits September 6, 2020 08:19
Previously it wouldn't work when the HOST BIT was more than 1 digit angristan#92 (comment)
@deatharse
Copy link

@randomshell Any chance of a rebase to fix the current conflicts? @angristan Are you happy with the changes, is there anything else holding this up?

@angristan angristan added the enhancement New feature or request label Jan 22, 2023
@Pionerd
Copy link

Pionerd commented Sep 4, 2023

@angristan would love to see this included

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

Successfully merging this pull request may close these issues.

Accept environment variables as answers.
4 participants