Infrastructure | Accessing download.gnome.org from Hong Kong and Taiwan shouldn't be redirect to mirrors in China (#560)



Title: GitLab

proletarius101 created an issue #560:

Summary

Accessing it from Hong Kong or Taiwan will redirect you to mirrors located in China (e.g. mirrors.ustc.edu.cn), which is hard to access (and they are even effectively blocking access outside China, probably by GFW).

Steps to reproduce

e.g. Access https://download.gnome.org/sources/NetworkManager-iodine/cache.json from Taiwan or Hong Kong. I use ProtonVPN to test.

What is the current bug behavior?

It's effectively redirected to https://mirrors.ustc.edu.cn/gnome/sources/NetworkManager-iodine/cache.json (I tested it in Firefox). And by curl:

curl https://download.gnome.org/sources/NetworkManager-iodine/cache.json -i
HTTP/1.1 302 Found
Server: nginx/1.18.0
Date: Tue, 06 Apr 2021 06:55:17 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Cache-Control: private, no-cache
Link: <https://gnome.mirror.digitalpacific.com.au/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=1; geo=au
Link: <https://ftp.acc.umu.se/pub/GNOME/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=2; geo=se
Link: <https://mirrors.dotsrc.org/gnome/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=3; geo=dk
Link: <https://ftp.fau.de/gnome/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=4; geo=de
Link: <https://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.gnome.org/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=5; geo=de
Link: <https://ftp1.nluug.nl/windowing/gnome/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=6; geo=nl
Link: <https://ftp2.nluug.nl/windowing/gnome/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=7; geo=nl
Link: <https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=8; geo=gb
Link: <https://fr.rpmfind.net/linux/gnome.org/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=9; geo=fr
Link: <https://fr2.rpmfind.net/linux/gnome.org/sources/NetworkManager-iodine/cache.json>; rel=duplicate; pri=10; geo=fr
Location: https://mirrors.ustc.edu.cn/gnome/sources/NetworkManager-iodine/cache.json
Set-Cookie: 901e43c8d43d3ebb75ca0f4df009b7a1=9d7e5539dc5551dda8c4a46202d44818; path=/; HttpOnly; Secure; SameSite=None
```

Then, the redirected access is timeout.

### What is the expected correct behavior?

Traffic from Taiwan and Hong Kong should be redirect to local mirrors (if any) or mirrors outside China


### Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

If you believe this issue should be marked as confidential due to the information
it contains (IPs, your full name or other personal details), please un-comment the last
line of this template.


/cc @averi @barthalion
#/confidential


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]