Sitelet https://web.archive.org/web/20210108174933/https://github.com/Nyr/openvpn-install/issues/824
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

Script generates invalid server.conf file #824

Open
DemX86 opened this issue Dec 21, 2020 · 1 comment
Open

Script generates invalid server.conf file #824

DemX86 opened this issue Dec 21, 2020 · 1 comment

Comments

@DemX86
Copy link

@DemX86 DemX86 commented Dec 21, 2020 •

Ubuntu 20.04, KVM

After installation the server.conf has invalid second line (10.0.0.1) and therefore OpenVPN service doesn't start properly:

local 78.24.218.120
10.0.0.1
port 1194
proto udp

The problem comes from command at line 106 of the installation script: ip -4 addr | grep inet | grep -vE '127(\.[0-9]{1,3}){3}'. In my case it outputs following:

inet 78.24.218.120 peer 10.0.0.1/32 brd 78.24.218.120 scope global ens3

Then this string is cut by / separator but saves that 10.0.0.1 garbage.

Interesting — that garbage appears at the server.conf file no matter if I hit Enter during the first step of the installation or if I type my clear IP address manually.

If I manually remove that line, than VPN works fine.

I guess it is possible to edit regular expression to deal with this issue.

@DemX86
Copy link
Author

@DemX86 DemX86 commented Jan 1, 2021

I realized that the domain name of my VDS was invalid.
When I fixed it the problem gone.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.