Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: peppi001 on February 20, 2025, 02:42:51 AM

Title: PiCore v14.1 443 port not working
Post by: peppi001 on February 20, 2025, 02:42:51 AM
Hi,  I've got some problem with PiCore v14.1 a few days ago.
I can't download with wget from github.
Connecting to github.com (140.82.121.4:443)
wget: download timed out

The git clone command doesn't work either.

It's not a network error, because on the same network with my desktop PC can download from github.
And I've got the same problem with the same setup on another location.
Title: Re: PiCore v14.1 443 port not working
Post by: Juanito on February 20, 2025, 03:59:04 AM
Is the time set properly?

If not run "sudo getTime.sh" and "date" to check.
Title: Re: PiCore v14.1 443 port not working
Post by: ovacikar on February 20, 2025, 06:22:48 AM
No problems on picore 15

Code: [Select]
wget https://github.com
Connecting to github.com (140.82.112.3:443)
saving to 'index.html'
index.html           100% |********************************|  274k  0:00:00 ETA
'index.html' saved
Title: Re: PiCore v14.1 443 port not working
Post by: peppi001 on February 20, 2025, 07:25:51 AM
Date is ok:
Code: [Select]
tc@xxx:/mnt/mmcblk0p2/tce/tmp/download$ wget [url]https://github.com[/url]
Connecting to github.com (140.82.121.3:443)
wget: download timed out
tc@xxx:/mnt/mmcblk0p2/tce/tmp/download$ date
Thu Feb 20 13:24:08 CET 2025
Title: Re: PiCore v14.1 443 port not working
Post by: peppi001 on February 20, 2025, 09:25:06 AM
This is the problem:
Code: [Select]
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.8.0.1        128.0.0.0       UG    0      0        0 tun0
default         OpenWrt.home    0.0.0.0         UG    0      0        0 eth0

There are 2 default gateways.
But I don't know now how to resolve this error.
Title: Re: PiCore v14.1 443 port not working
Post by: Rich on February 20, 2025, 09:50:18 AM
Hi peppi001
I'm guessing you want to remove the 10.8.0.1 entry.
Try this:
Code: [Select]
sudo route del -net 10.8.0.1 netmask 128.0.0.0
Title: Re: PiCore v14.1 443 port not working
Post by: peppi001 on February 20, 2025, 10:16:21 AM
This command worked:
Code: [Select]
sudo route delete default gw 10.8.0.1 netmask 128.0.0.0 tun0
But this is a temporary solution I think.
I must check the VPN settings.
THX
Title: Re: PiCore v14.1 443 port not working
Post by: ovacikar on February 20, 2025, 11:49:03 AM
In order to send all traffic through VPN you need to add a specific route for your VPN server IP to use eth0
only after that you can remove the eth0 default gateway and add the tun0 default gateway

Code: [Select]
sudo route add <VPN server IP>/32 gw <default gw for eth0>



Title: Re: PiCore v14.1 443 port not working
Post by: peppi001 on February 21, 2025, 02:05:44 AM
I don't want to send all traffic through VPN. (This is my problem)
Title: Re: PiCore v14.1 443 port not working
Post by: peppi001 on February 21, 2025, 02:31:26 AM
On VPN server side I commented out this line:
#push "redirect-gateway def1 bypass-dhcp"
and now everything working fine.

But I don't know how to worked so far :)

Thanks for all your help.