Hi,
I think this question was raised before. But either I failed to find a proper solution or it wasn't presented (or maybe even doesn't exist ATM).
So the context is, there are some mirrors that can't be accessed from some location. In my case — I live in Ukraine — russian & Belarusian server often aren't accessible (routing, not dns) due to rather well known reasons.
But mirrors resolution sometimes redirects to those servers resulting in failing to update.
I've edited some repos baseurl to `ftp.gwdg.de` instead of `download.opensuse.org` but this feels wrong. Also I should help other people to make those changes too.
So there are two questions:
1. Is it possible to create local allow/deny lists for mirrors which will be sent to mirror resolver to help make a valid redirect?
2. Is it possible to exclude russian & Belarusian mirror servers from acceptable for Ukrainian IP addresses?
BTW I currently asking in support list, not sure if question is suitable for `mirror@lists.opensuse.org` or it is more technical list. If these questions belongs there just say so and I'll repost it.
* Mykola Krachkovsky w01dnick@gmail.com [07-08-22 08:14]:
Hi,
I think this question was raised before. But either I failed to find a proper solution or it wasn't presented (or maybe even doesn't exist ATM).
So the context is, there are some mirrors that can't be accessed from some location. In my case — I live in Ukraine — russian & Belarusian server often aren't accessible (routing, not dns) due to rather well known reasons.
But mirrors resolution sometimes redirects to those servers resulting in failing to update.
I've edited some repos baseurl to `ftp.gwdg.de` instead of `download.opensuse.org` but this feels wrong. Also I should help other people to make those changes too.
so instead of *just* replacing "download.opensuse.org" with another as "ft.gwdg.de", add several *specific* mirror sites (example below). and if you continue to have problems with a particular repo, remove "download.opensuse.org" and replace it so it doesn't attempt to access russian & Belarus mirrors.
baseurl=https://download.opensuse.org/tumbleweed/repo/oss/ http://download.opensuse.org/tumbleweed/repo/oss/ https://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.ussg.iu.edu/linux/opensuse/tumbleweed/repo/oss/ http://distro.ibiblio.org/opensuse/tumbleweed/repo/oss/ http://suse.mobile-central.org/tumbleweed/repo/oss/ http://ftp.uni-erlangen.de/opensuse/tumbleweed/repo/non-oss/ http://ftp5.gwdg.de/pub/opensuse/tumbleweed/repo/oss/
пʼятниця, 8 липня 2022 р. 15:24:41 EEST Patrick Shanahan написано:
so instead of *just* replacing "download.opensuse.org" with another as "ft.gwdg.de", add several *specific* mirror sites (example below). and if you continue to have problems with a particular repo, remove "download.opensuse.org" and replace it so it doesn't attempt to access russian & Belarus mirrors.
baseurl=https://download.opensuse.org/tumbleweed/repo/oss/ http://download.opensuse.org/tumbleweed/repo/oss/ https://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.ussg.iu.edu/linux/opensuse/tumbleweed/repo/oss/ http://distro.ibiblio.org/opensuse/tumbleweed/repo/oss/ http://suse.mobile-central.org/tumbleweed/repo/oss/ http://ftp.uni-erlangen.de/opensuse/tumbleweed/repo/non-oss/ http://ftp5.gwdg.de/pub/opensuse/tumbleweed/repo/oss/
Big thanks for the tip! Only downside this still have to be done for every repo on every system. If this could be made at least once per system (even for newly created repos) — that'll be really good.
* Mykola Krachkovsky w01dnick@gmail.com [07-08-22 08:59]:
пʼятниця, 8 липня 2022 р. 15:24:41 EEST Patrick Shanahan написано:
so instead of *just* replacing "download.opensuse.org" with another as "ft.gwdg.de", add several *specific* mirror sites (example below). and if you continue to have problems with a particular repo, remove "download.opensuse.org" and replace it so it doesn't attempt to access russian & Belarus mirrors.
baseurl=https://download.opensuse.org/tumbleweed/repo/oss/ http://download.opensuse.org/tumbleweed/repo/oss/ https://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.ussg.iu.edu/linux/opensuse/tumbleweed/repo/oss/ http://distro.ibiblio.org/opensuse/tumbleweed/repo/oss/ http://suse.mobile-central.org/tumbleweed/repo/oss/ http://ftp.uni-erlangen.de/opensuse/tumbleweed/repo/non-oss/ http://ftp5.gwdg.de/pub/opensuse/tumbleweed/repo/oss/
Big thanks for the tip! Only downside this still have to be done for every repo on every system. If this could be made at least once per system (even for newly created repos) — that'll be really good.
or edit the repos on one system and copy them to another. you can always set a repo as inactive.
On Fri, 8 Jul 2022 09:59:32 -0400 Patrick Shanahan paka@opensuse.org wrote:
you can always set a repo as inactive.
Do you mean there's a way to tell the system to never use the russian mirror, for example? because I think that would solve the OP's problem.
* Dave Howorth dave@howorth.org.uk [07-08-22 11:53]:
On Fri, 8 Jul 2022 09:59:32 -0400 Patrick Shanahan paka@opensuse.org wrote:
you can always set a repo as inactive.
Do you mean there's a way to tell the system to never use the russian mirror, for example? because I think that would solve the OP's problem.
if you remove "download.opensuse.com" line from the repo and substitute and "specific" address, it will not try to access other mirrors, iiuc.