Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent a mirror from serving a given country #54

Closed
etix opened this issue Jun 5, 2017 · 7 comments
Closed

Prevent a mirror from serving a given country #54

etix opened this issue Jun 5, 2017 · 7 comments
Milestone

Comments

@etix
Copy link
Owner

etix commented Jun 5, 2017

We have one case where a mirror in Russia doesn't allow downloads from Ukrainian users.

EDIT: Oops, it's Ukraine blocking connections to Russia.

@etix etix added this to the Soon milestone Jun 5, 2017
@etix etix changed the title Prevent a mirror for serving a given country Prevent a mirror from serving a given country Jun 5, 2017
@etix etix closed this as completed in c0eba9b Jun 7, 2017
@MartijnKaijser
Copy link

You happen to know which mirror?

@etix
Copy link
Owner Author

etix commented Jun 8, 2017

@MartijnKaijser yes, the problem occurred with Yandex but apparently it's the Ukrainian government blocking connections to some (all?) servers in Russia like Yandex.

@MartijnKaijser
Copy link

We have yandex as well but haven't really heard any issues. I'm sure it happens though

@etix
Copy link
Owner Author

etix commented Jun 8, 2017

We only got one report so far but better safe than sorry. If you can, get the latest master and set the following option an all your Russian mirrors: ExcludedCountryCodes: UA

@lazka
Copy link
Contributor

lazka commented Jul 15, 2021

How can one set ExcludedCountryCodes?

@etix
Copy link
Owner Author

etix commented Jul 15, 2021

How can one set ExcludedCountryCodes?

Use mirrorbits edit <mirror> then add the two letter country codes (ISO 3166-2) of the countries you want to exclude for this particular mirror in the ExcludedCountryCodes field separated by spaces.

@lazka
Copy link
Contributor

lazka commented Jul 15, 2021

ah, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants