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 multiserver capability #1040

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add multiserver capability #1040

wants to merge 1 commit into from

Conversation

aleixq
Copy link

@aleixq aleixq commented Sep 16, 2022

Adds multiple openvpn server capability, a new variable $SERVER_ID can be passed it will create then the conf in /etc/openvpn/server.$SERVER_ID.conf and all server files will be placed in /etc/openvpn/server.$SERVER_ID/ .

for example SERVER_ID=my_openvpn ./openvpn-install.sh

It covers the server creation, the removal and the client creation.

(note: also changes the way how it proposes the public ip in install server questions. it tries to detect not private ips and if cannot find it fallbacks to private ips)

There are some pending tasks:

The ipv6 address for tunnel.

The ipv4 for the tunnel is defined taking the most great second octet found in all servers configs: for example if there's a conf with 10.10.0.1 it will create the next openvpn server using 10.11.0.1.
This logic is not implemented with ipv6.

unbound

unbound part, as I don't know if it can accept multiple servers.

Adds multiple openvpn server capability, a new variable $SERVER_ID can be passed  it will create then the conf in /etc/openvpn/server.$SERVER_ID.conf and all server files will be placed in /etc/openvpn/server.$SERVER_ID/ . The only thing not covered is the unbound part, and the ipv6 address for tunnel.
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.

1 participant