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 does not work when seeip.org is unreachable #1241

Closed
gbnk0 opened this issue Aug 7, 2024 · 8 comments
Closed

Script does not work when seeip.org is unreachable #1241

gbnk0 opened this issue Aug 7, 2024 · 8 comments
Labels

Comments

@gbnk0
Copy link

gbnk0 commented Aug 7, 2024

./openvpn-install.sh

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0^C

It does a curl to ip.seeip.org . When seeip.org is down or unreachable it dos not work. I think it will tell something like "unable to get the public ip" or anything else.

I thin the concerned lines are:

			if ! PUBLIC_IP=$(curl -f --retry 5 --retry-connrefused https://ip.seeip.org); then
			if ! PUBLIC_IP=$(curl -f --retry 5 --retry-connrefused -4 https://ip.seeip.org); then

Regards

@dolbykoray
Copy link

Senin sorunuapt install iftop çözebilir denedin mi? Belkide sorununu yanlış anladım selamlar.

@gbnk0
Copy link
Author

gbnk0 commented Aug 9, 2024

The curl is trying indefinitely to hit ip.seeip.org, so in this case you can't access to the options for creating new vpn clients.
Update:

This happens only when i pass env vars in my shell before:

export MENU_OPTION=1 PASS=1 CLIENT=myclient AUTO_INSTALL=y ENDPOINT=servrer.publicip.org IPV6_SUPPORT=n PORT_CHOICE=2 PORT=4567 PROTOCOL_CHOICE=2

Regards,

@dolbykoray
Copy link

dolbykoray commented Aug 10, 2024

Can you solve my problem? or give me some ideas? https://github.com/angristan/openvpn-install/issues/1242

@ralphg6
Copy link
Contributor

ralphg6 commented Aug 10, 2024

I did a PR fixing it #1243.

Please @angristan, could you put your eyes on it?

Now the script isn't working because 'ip.seeip.org' is unreachable now.

@fmuscetra
Copy link

fmuscetra commented Aug 11, 2024

I have the same issue. My Terraform template that uses the Angristan shell script does not work anymore and it hangs when the script trying to connect to ip.seeip.org.
It worked for months without any problem.
The problem appears when AUTO_INSTALL = y

@ralphg6
Copy link
Contributor

ralphg6 commented Aug 11, 2024

The PR that I mentioned fix it!! Let's await some maintainer to put your eyes on it!

@fmuscetra, if you REALLY need it now, and you can't await the PR reviewing, you can use my fork temporarily!

https://github.com/ralphg6/openvpn-install

alaz added a commit to alaz/openvpn-in-yandex.tf that referenced this issue Aug 19, 2024
@xiahare
Copy link
Contributor

xiahare commented Oct 18, 2024

I submit a PR for this problem.
It was caused by invalid url of ip.seeip.org.
Fix: change the url of ip.seeip.org to api.seeip.org .

refer to this:
#1252

angristan added a commit that referenced this issue Nov 7, 2024
… (#1243)

The script does work when seeip.org is unreachable, so I changed the policy to define the public IP.

It solves the issue #1241

* Timeout limit on each try to solve the IP to avoid long waits;
* Extra public IP providers as failovers;
* the script only will try to solve an IP if the ENDPOINT is empty;

Co-authored-by: Stanislas <[email protected]>
@angristan
Copy link
Owner

Sorry I missed this issue 🙏 #1243 and #1252 have been merged ✅ Thanks!

@angristan angristan added the bug label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants