/repos/ mirror

Поиск
Список
Период
Сортировка
Искать

/repos/ mirror

От:
Garrett Wollman <wollman@csail.mit.edu>
Дата:
Hi, folks, I'm not sure who to contact about this.

Over the past few months, our mirror server has been the subject of an
apparent DDoS.  Today I tracked it down to millions of attempted
downloads from `http://postgres.csail.mit.edu/repos/` and I have
configured the server to return a 403 error for that part of the site;
we are happy to provide a mirror service for humans to use but we did
not sign up for 720,000 (and counting) random Linux machines around
the world to abuse our server and interfere with our own local access
to the archives.

I have no idea how or why anyone got the idea to put
postgres.csail.mit.edu into their apt or dnf configuration, but we
can't and won't allow that.

-GAWollman
for sysadmin@csail.mit.edu



Re: /repos/ mirror

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Garrett Wollman  writes:
> Over the past few months, our mirror server has been the subject of an
> apparent DDoS.  Today I tracked it down to millions of attempted
> downloads from `http://postgres.csail.mit.edu/repos/` and I have
> configured the server to return a 403 error for that part of the site;
> we are happy to provide a mirror service for humans to use but we did
> not sign up for 720,000 (and counting) random Linux machines around
> the world to abuse our server and interfere with our own local access
> to the archives.

That is very strange.  What did you have stored there --- was it a
mirror of our source code, or executables, or ???

> I have no idea how or why anyone got the idea to put
> postgres.csail.mit.edu into their apt or dnf configuration, but we
> can't and won't allow that.

I can assure you that the Postgres project didn't do that nor
encourage anyone else to do so.  I'm kind of mystified why anyone
would have chosen csail as a source for our stuff, though.

			regards, tom lane


Re: /repos/ mirror

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Garrett Wollman  writes:
> On Wed, 15 Jul 2026 15:36:53 -0400, Tom Lane  said:
>> That is very strange.  What did you have stored there --- was it a
>> mirror of our source code, or executables, or ???

> It is -- or I guess was, I had not realized that the rsync was
> commented out -- a mirror of rsync.postgresql.org::pgsql-ftp.

Yeah, we shut down rsync support last year [1].  Sounds like somebody
disabled the rsync at your end as a band-aid, and never went back
to fix it properly.

> Now that I've learned that the mirror hasn't been updated in at least a
> year, I'm going to completely unconfigure it.

Agreed; evidently nobody legitimate was using it, or they'd have
complained about it being out of date.

> We're up to 930,000 unique IPs banging on this so far today.

Wow.  I'd have to agree that that's a DDoS attempt, hard to see
a legitimate reason for pulling so many copies of PG source code.

			regards, tom lane

[1] https://www.postgresql.org/message-id/CA+OCxoz3p4LqyE4aNb3M8gs2GND25ET=EMQ-KSrZ+B1WRSdT4Q@mail.gmail.com


Re: /repos/ mirror

От:
Magnus Hagander <magnus@hagander.net>
Дата:


On Wed, 15 Jul 2026 at 21:57, Garrett Wollman <wollman@csail.mit.edu> wrote:
<<On Wed, 15 Jul 2026 15:36:53 -0400, Tom Lane <tgl@sss.pgh.pa.us> said:

> Garrett Wollman <wollman@csail.mit.edu> writes:
>> Over the past few months, our mirror server has been the subject of an
>> apparent DDoS.  Today I tracked it down to millions of attempted
>> downloads from `http://postgres.csail.mit.edu/repos/` and I have
>> configured the server to return a 403 error for that part of the site;
>> we are happy to provide a mirror service for humans to use but we did
>> not sign up for 720,000 (and counting) random Linux machines around
>> the world to abuse our server and interfere with our own local access
>> to the archives.

> That is very strange.  What did you have stored there --- was it a
> mirror of our source code, or executables, or ???

It is -- or I guess was, I had not realized that the rsync was
commented out -- a mirror of rsync.postgresql.org::pgsql-ftp.  Now
that I've learned that the mirror hasn't been updated in at least a
year, I'm going to completely unconfigure it.

That has indeed been discontinued. If you want to mirror the different repos (apt/yum) for internal use you can use the tools from those toolchains to mirror over https. There isn't really any point in keeping a public mirror today, given CDNs.



We're up to 930,000 unique IPs banging on this so far today.

Not bad. As comparison, the main postgres repos get about 1.3-1.6 million unique IPs per day, so you're catching up fast. It certainly sounds like your hostname got listed as an official mirror in some package somewhere, maybe a docker build or something?

Can you see the user-agent being used on the requests? That might give you a hint..

//Magnus

Re: /repos/ mirror

От:
Garrett Wollman <wollman@csail.mit.edu>
Дата:
< said:

> Not bad. As comparison, the main postgres repos get about 1.3-1.6 million
> unique IPs per day, so you're catching up fast. It certainly sounds like
> your hostname got listed as an official mirror in some package somewhere,
> maybe a docker build or something?

Seems likely, although the traffic was for both RPM and Deb format
packages.

> Can you see the user-agent being used on the requests? That might give you
> a hint..

Unfortunately we don't log that, and now that I've removed the
virtual host from the DNS, the traffic has just evaporated.  (Still
getting traffic for other mirrors that we still maintain but not
enough to cause the web server to be unable to keep up with incoming
TCP connections.)

-GAWollman



FAQ