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

start.sh : change ping target in testing internet connection #57

Open
alexxtasi opened this issue Jul 3, 2019 · 1 comment
Open

start.sh : change ping target in testing internet connection #57

alexxtasi opened this issue Jul 3, 2019 · 1 comment

Comments

@alexxtasi
Copy link

Hi all
About the case that in the beginning of start.sh there is an internet connection testing, by pining to google.com ...

  • there are network environments where net admins do filter icmp traffic to google (maybe not in the field, but while testing gateways in laboratories)
  • there is a workaround to this problem by ralphtheninja's pull request here and reixd 's suggestion

wouldn't be more generic to test gateway's connectivity by pinging to a more TTN related url, and what would that be ?
I believe this should be less possible to be filtered and if no ping to it, then the gateway is facing a real connectivity problem !!

regards

@gonzalocasas
Copy link
Member

@alexxtasi I agree with changing icmp checks to something else, but changing google's endpoint with ttn might not be that meaningful, chances of google being down are lower than ttn's website being down.

A different way of checking instead of icmp would be something like:

if nc -zw1 google.com 443; then
  # all is good, ready to start concentrator
fi

but right now I don't have the time to test it and put it on the installer, if you do, please send a PR.

cheers

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

No branches or pull requests

2 participants