Can't download any file, all of request Permission denied

 curl -f --connect-timeout 20 --retry 5 --location --insecure https://sources.lede-project.org/libiwinfo-2018-02-15-223e09bf.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to sources.lede-project.org port 443: Permission denied
Download failed.

Likely something specific to your own setup.
Downloading works ok for me. Below console output when testing downloading (from the router itsefl). Downloading with both curl and wget works:

root@router3:/tmp# curl -f --connect-timeout 20 --retry 5 --location --insecure
https://sources.lede-project.org/libiwinfo-2018-02-15-223e09bf.tar.xz
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
root@router3:/tmp# curl -f --connect-timeout 20 --retry 5 --location --insecure
--output xx https://sources.lede-project.org/libiwinfo-2018-02-15-223e09bf.tar.x
z
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  100k  100  100k    0     0   265k      0 --:--:-- --:--:-- --:--:--  265k
root@router3:/tmp# wget https://sources.lede-project.org/libiwinfo-2018-02-15-223e09bf.tar.xz
--2018-04-07 09:23:03--  https://sources.lede-project.org/libiwinfo-2018-02-15-223e09bf.tar.xz
Resolving sources.lede-project.org... 2a01:4f8:202:43ea::3, 148.251.78.235
Connecting to sources.lede-project.org|2a01:4f8:202:43ea::3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 103044 (101K) [application/octet-stream]
Saving to: 'libiwinfo-2018-02-15-223e09bf.tar.xz'

libiwinfo-2018-02-15-223e09bf.t 100%[======================================================>] 100.63K   642KB/s    in 0.2s

2018-04-07 09:23:04 (642 KB/s) - 'libiwinfo-2018-02-15-223e09bf.tar.xz' saved [103044/103044]
root@debian8:/opt/openwrt/openwrt/dl# curl -f --connect-timeout 20 --retry 5 --location --insecure https://sources.lede-project.org/libiwinfo-2018-02-15-223e09bf.tar.xz
curl: (7) Failed to connect to sources.lede-project.org port 443: Permission denied

can't download ,Permission denied ,why ?

Are you behind any proxy? Have you configured curl to use one?

none any proxy in router,but my windows system no problme

Curl Error 7:
Failed to connect to host. curl managed to get an IP address to the machine and it tried to setup a TCP connection to the host but failed. This can be because you have specified the wrong port number, entered the wrong host name, the wrong protocol or perhaps because there is a firewall or another network equipment in between that blocks the traffic from getting through.

Are you in China? Because your government might be blocking that site...

1 Like

yes in china,but my windows system nor prob

Add a "-v" parameter on the command, and post the results here, please.