-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Internet Connection IP changed is shown, but connection did not change #667
Comments
Hi, if I change the dns, I am no longer getting the right response, the command seems to be dig -4 myip.opendns.com @resolver1.opendns.com but if I am doing dig -4 myip.opendns.com @dns.google.com I not getting the right answer. Can you help me with that? |
After checking https://askubuntu.com/questions/95910/command-for-determining-my-public-ip, it seems, that this dig command can be only used with OpenDNS to retrieve the IP. There are other options, but they are using a different command. Any suggestions? |
Hi there, Could you please try this setting?
|
Hi there, also with a different DNS provider the problem remains the same. I tried this command many times directly on the same linux server using the shell and I never got a problem. Is there anyway to take a more detailed trace on executing the command? |
Hi there, Can you post the logs with the google DNS in place? I'm starting to think that if 2 different DNS server configs produce the same result then potentially the internet is actually down during the scan. Would that be possible? |
Hi there, the error message reimains the same: 10:45:12 [INTRNT] In script I know for sure, that the internet is not down. I am working from homeoffice, if at the that time the connection was down, I would habe recognized it. NetAlertx runs on Docker on an Ubuntu 22 LTS Server, that is connected with LAN to the router. The server itself has a lot power, i7with 32 GM RAM and SSD on NVME. I have create a script in parallel that runs on the Ubuntu host itself, using the same command. And I have to admit, that sometimes I am also getting a timeout here. So far I have no idea, what causese htis problem. Since the time of occurences really vary, it might be only a very little temporary problem. At least my router does not show reconnect in this log. What do you think of sending the DIG command three times in a row and only if all three commands are failing having a corresponding messsage in the log? |
This should be available in the next release. Please have a look at the Make sure you refresh your browser cache - and click the 🔄 refresh button in the top right corner. It would be great if you could test this (backup everything first or use a new container) on your end by switching to the above image and letting me know if the issue was resolved. Thanks in advance, |
closing -> releasing in ~10min |
Hi there, sorry for coming back that late, i was on vacation and some time off. I just updated the image and will come back here, if this happens again. Thanks for fixing this. |
Is there an existing issue for this?
Current Behavior
I am getting constant messages (5-6 times a day) that the IP of my internet conncetion has changed. One message shows 0.0.0.0 as the IP the next one shows my "real" internet IP. This message shoudn't appear, since I have a static IP v4 using a cable connection (Vodafone, Germany) and the connection is not disconnected usually.
Seems the problem is related to that entry in the logs:
11:25:50 [INTRNT] DIG result : ;; communications error to 208.67.222.222#53: timed out
Why is the connection to the opendns Resolver timing out? Can I configure any other/different DNS server?
Expected Behavior
Not getting a timeout from OpenDNS when checking the internet IP.
Steps To Reproduce
No response
app.conf
docker-compose.yml
What branch are you running?
Production
app.log
This is IPChanges.log:
[2024-05-06 11:15:17] xx.134.136.yy
[2024-05-06 11:20:31] xx.134.136.yy
[2024-05-06 11:25:50] 0.0.0.0
[2024-05-06 11:30:59] xx.134.136.yy
This is app.log:
11:25:45 [Scheduler] - Scheduler run for INTRNT: YES
11:25:45 [Plugin utils] ---------------------------------------------
11:25:45 [Plugin utils] display_name: Internet-Check
11:25:45 [Plugins] CMD: python3 /app/front/plugins/internet_ip/script.py prev_ip={prev_ip} INTRNT_DIG_GET_IP_ARG={INTRNT_DIG_GET_IP_ARG}
11:25:45 [Plugin utils] Flattening the below array
11:25:45 ['xx.134.136.yy']
11:25:45 [Plugin utils] isinstance(arr, list) : True | isinstance(arr, str) : False
11:25:45 [Plugin utils] Flattened array: xx.134.136.yy
11:25:45 [Plugins] Resolved value: xx.134.136.yy
11:25:45 [Plugins] Convert to Base64: False
11:25:45 [Plugins] setTyp: text
11:25:45 [Plugins] Resolved value: -4 myip.opendns.com @resolver1.opendns.com
11:25:45 [Plugins] Convert to Base64: True
11:25:45 [Plugins] base64 value: b'LTQgbXlpcC5vcGVuZG5zLmNvbSBAcmVzb2x2ZXIxLm9wZW5kbnMuY29t'
11:25:45 [Plugins] Timeout: 30
11:25:45 [Plugin utils] Pre-Resolved CMD: python3/app/front/plugins/internet_ip/script.pyprev_ip={prev_ip}INTRNT_DIG_GET_IP_ARG={INTRNT_DIG_GET_IP_ARG}
11:25:45 [Plugins] Executing: python3 /app/front/plugins/internet_ip/script.py prev_ip={prev_ip} INTRNT_DIG_GET_IP_ARG={INTRNT_DIG_GET_IP_ARG}
11:25:45 [Plugins] Resolved : ['python3', '/app/front/plugins/internet_ip/script.py', 'prev_ip=xx.134.136.yy', "INTRNT_DIG_GET_IP_ARG=b'LTQgbXlpcC5vcGVuZG5zLmNvbSBAcmVzb2x2ZXIxLm9wZW5kbnMuY29t'"]
11:25:45 [INTRNT] In script
11:25:45 [INTRNT] INTRNT_DIG_GET_IP_ARG: -4 myip.opendns.com @resolver1.opendns.com
11:25:45 [INTRNT] - Retrieving Internet IP
11:25:50 [INTRNT] DIG result : ;; communications error to 208.67.222.222#53: timed out
xx.134.136.yy
11:25:50 [INTRNT] Current internet_IP : 0.0.0.0
11:25:50 [INTRNT] previous_IP : xx.134.136.yy
11:25:50 [INTRNT] Finished
Debug enabled
The text was updated successfully, but these errors were encountered: