Tiny Core Base > TCB Bugs

provides.sh pinging 8.8.8.8 --- bug or feature ? piCore 64 , 16.x

(1/1)

uli:
I am using piCore 64 (16.x, ... excellent!)  behind a firewall with proxy web access. All working well afaics. Except provides.db cannot be downloaded, since provides.sh tries to ping 8.8.8.8.

I cannot quite believe that this could possibly be an intended feature. There must be other places within tiny / Core where network access is being probed and confirmed successfully, even behind my firewall. Maybe trying to ping the selected mirror would be a better option ? Or whatever the default probing in other Core scripts might be...

Rich:
Hi uli
Feature. It was added to check connectivity to the outside world.
You can read about how it evolved starting around here:
https://forum.tinycorelinux.net/index.php/topic,27363.msg176244.html#msg176244

uli:
Hi Rich,
Thanks for explanation.
Fixed it for my specific use case then. Just wouldn't have thought it to be a rare case, sitting behind a somewhat restrictive firewall...

Rich:
Hi uli

--- Quote from: uli on June 17, 2025, 12:36:01 PM --- ... There must be other places within tiny / Core where network access is being probed and confirmed successfully, ...
--- End quote ---

--- Quote from: Rich on November 19, 2024, 08:41:32 PM ---Hi GNUser

--- Quote from: GNUser on November 19, 2024, 07:19:20 PM --- ... Why not go with Robert's approach (which shows up in  tc-config  and  settime.sh ):

--- Code: ---ifconfig | grep -q Bcast || return 1
--- End code ---
...
--- End quote ---
Funny you should mention it. That will detect the NIC was brought up.
It will not detect an unplugged network cable or problems upstream.
Oh, and watch this:

--- Code: ---tc@box:~$ ifconfig eth0 | grep Bcast
          inet addr:192.168.1.45  Bcast:192.168.1.255  Mask:255.255.255.0
tc@box:~$ sudo ifconfig eth0 down
tc@box:~$ ifconfig eth0 | grep Bcast
          inet addr:192.168.1.45  Bcast:192.168.1.255  Mask:255.255.255.0
tc@box:~$
--- End code ---

I also considered using this:

--- Code: ---ifconfig eth0 | grep RUNNING
--- End code ---
That will detect taking down the NIC and unplugging the network cable.
While it detects a disconnect between computer and network switch, it
won't detect a disconnect between network switch and router.
--- End quote ---
The Apps utility will hang for a minute or two if it can't connect to
the repo, a behavior we want to avoid in provides.sh.


--- Quote --- ... Maybe trying to ping the selected mirror would be a better option ? ...
--- End quote ---

--- Quote from: Rich on June 02, 2024, 08:21:47 AM ---Hi t18
Pinging the repo will temporarily lock you out:

--- Quote from: curaga on December 20, 2021, 03:05:47 AM --- ... About the ping, that's part of the port scanning protection. You essentially blocked yourself for a short time.
--- End quote ---
...
--- End quote ---


--- Quote from: uli on June 17, 2025, 02:53:11 PM --- ... Just wouldn't have thought it to be a rare case, ...
--- End quote ---
You are the first person to report this as an issue.

Navigation

[0] Message Index

Go to full version