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

Running in a NAT network - how to prevent using "https://api.ipify.org" for my IP address? #1565

Open
HeneryH opened this issue Mar 9, 2021 · 4 comments

Comments

@HeneryH
Copy link

HeneryH commented Mar 9, 2021

other than hacking/hardcoding my installer script in the "do not edit" section...

#
# Find correct IP.
find_correct_ip() {
  _LOC_IP=$(curl ${crlGet} https://api.ipify.org \
    | sed 's/[^0-9\.]//g' 2>&1)
  if [ -z "${_LOC_IP}" ]; then
    _LOC_IP=$(curl ${crlGet} http://ip4.icanhazip.com \
      | sed 's/[^0-9\.]//g' 2>&1)
  fi
}
@HeneryH
Copy link
Author

HeneryH commented Mar 9, 2021

Hmmm, even editing that script block doesn't work.

@HeneryH
Copy link
Author

HeneryH commented Mar 9, 2021

Uhg, there are seven instances of calls to ipify.org so it looks like the only way to install is to have a static IP on the internet?

Can the installer be re-run after a failed install after maybe changing any references to the wrong IP?

@HeneryH HeneryH closed this as completed Mar 9, 2021
@HeneryH HeneryH reopened this Mar 16, 2021
@HeneryH
Copy link
Author

HeneryH commented Mar 16, 2021

Now that I have learned that "local" installations are unsupported I need to go back to "public" installations.

Thus reopening this issue.

@omega8cc
Copy link
Owner

omega8cc commented May 8, 2023

This should be optional, indeed. We have removed the old code discovering the IP locally, but it could be done via simple config file before installation. Actually, the system already does this, we just need to document this feature.

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

No branches or pull requests

2 participants