Server Adjustments

Collapse
X
Collapse
  •  

  • Server Adjustments

    Click image for larger version  Name:	capture_5100700.jpg Views:	0 Size:	72.8 KB ID:	2350980It's been an eventful two weeks, but it seems we are definitely now back to baseline performance, and maybe a little better..

    Nerd-talk warning...

    I'd been using Apache's mod_evasive module to try and trap the bots, but that didn't distinguish between a page load and an image load within a page. People reading a screenshot thread or doing a file search with lots of thumbnails to display would hit the limits in place to catch the bots largely because of the image loading.

    As of about 24 hours ago, I've moved to a different tool called mod_qos (quality of service), which is able to focus only on base page reuests, and can exclude images, stylesheets, scripts, etc. from that equation. The result seems to be working as I'm not hearing of any new reports since that was turned on and evasive was turned off.

    What all that means in simple terms....

    I've changed the screening method a bit to help balance out the needs for regular users and throw some harder limits at the bad actors.
    • Global Cap: the server is currently throttled to 200 simultaneous open user connections. Visitor 201 may have to wait until one of the existing threads is done.
    • Per-IP Limits: To keep single users (or an aggressive bot / scraper) from eating up all the available bandwidth, each IP address will be capped to 15 simultaneous connections -- each page load uses about 4-8 connections over a second or three until a page is fully loaded. If you do manage to blow thru that cap... you might wind up in server jail for up to 60 seconds.
    • Page Limits: Every IP will be limited to around 10 page requests per minute. If you blow thru that cap... you might wind up in server jail for up to 60 seconds.
    These limits are all IP based, and not based on your user login here. If you happen to share an IP address with someone else (e.g. you're in a college dorm, sharing a router with others, or on the same VPN as someone else), the combined activity will add up.

    For 99% of you just browsing or downloading files, you’ll probably never notice these guardrails.

    For the automated scrapers and bad-actors.... they're going to get slowed down, and hopefully give up because us hitting the brakes every 60 seconds is going to tie up -their- resources.

    For the really bad actors... those firing off random page addresses hoping to find a hole... I did enable a separate module called Fail2Ban, which focuses on various failed transaction attempts. As of a few minutes ago, that had banned a dozen or so IP's for a much longer timeframe... 24 hours.

    If you do find that you ran into the 24 hour ban... please send an email to ipban@trainsim.com with your IP address and I'll make sure it's unblocked.

    Hopefully this puts up enough of a defense that we don't see a recurrence anytime soon.
    Last edited by eric; 08-13-2026, 19:15.

    • linkj
      #1
      linkj commented
      Editing a comment
      Thank you Eric for your intensive efforts to keep us all on line. Well done!

      Aloha, Jeff Link

    • EldoradoRailroad
      #2
      EldoradoRailroad commented
      Editing a comment
      Eric,

      Yeah, Fail2Ban can kick some butt, even if it is a bit of a cruder instrument. But this is war, and thus the enemy better expect to be clobbered. What I often see these days are attempts from IPV4 A.B.C.0/24 at random but continuous. I concur with the trouble and effort, but it seems to work!

      Steve

    • TrainSimJack
      #3
      TrainSimJack commented
      Editing a comment
      Nice work as always Eric!
    Posting comments is disabled. Try logging in if you are browsing as a Guest.

Latest Articles

Collapse

  • State of the Site - September 2026
    by eric

    Hard to believe, but the leaves are already starting to change and drop here in East Tennessee. A year ago, we were just starting construction on our house, and with all that behind us, it's time to enjoy the important things in life: NFL football. Green Bay had an embarrassing loss in the Week 1 opener at Minnesota, but there were also a few glimmers of hope in that game, and Week 2 had an overtime win after an almost just as embarrassing first three quarters against the Jets..

    Regardless...
    Today, 00:17 by eric
  • Server Adjustments
    by eric

    It's been an eventful two weeks, but it seems we are definitely now back to baseline performance, and maybe a little better..

    Nerd-talk warning...

    I'd been using Apache's mod_evasive module to try and trap the bots, but that didn't distinguish between a page load and an image load within a page. People reading a screenshot thread or doing a file search with lots of thumbnails to display would hit the limits in place to catch the bots largely because of the image loading....
    08-17-2026, 09:30 by TrainSimJack
  • State of the Site - July 2026
    by eric

    Hope everyone's having a great summer. Ours has definitely had a little adventure and drama.

    We currently live above a Norfolk Southern mainline, lovingly referred to as the Rathole but officially known as the CNOTP Second District. One of our resident historians, Jerry Sullivan, spent many hours inspecting these tracks when he worked for the Southern Railroad. The railroad has been good neighbors to us, and last month they took things to a new level -- a 24+ hour bonfire, complete...
    07-24-2026, 10:59 by landnrailroader
  • State of the Site - May 2026
    by eric

    Is it just me, or has the year been flying by?... Numbers rarely lie, and yes, there's been a slight uptick in activity as we see every time schools close for the academic year... And sure enough, I noticed that the warning lights in town are dark for the school zone. Starting in a few days, we'll have a few less trips to pick up grandkids from school (they get out much later than other districts around us).

    A few of us pack up and leave for the summer, sometimes to do other jobs,...
    05-29-2026, 16:47 by landnrailroader
  • State of the Site - April 2026
    by eric

    I know, I should have posted something yesterday for April Fools, but the reality of Amtrak merging with Greyhound just didn't seem too far off anymore. Nor would telling people I sold the site to SpaceX who was going to now reform this as SpaceSim.com or something with an X in it.

    Truth is I've been a bit busy the last eight weeks, mostly with finishing up stuff that needed to be done around our property. After almost a year of planning and construction, we finally moved into our...
    04-02-2026, 18:53 by eric
  • State of the Site - Jan 2026
    by eric

    A slightly belated Happy New Year... and a happy Snowmaggedon if you happen to be in the current storm Fern's path. The site's servers should be unaffected, so feel free to download as long as you have power & internet...

    I was ready to write this up two weeks ago, until the stunning loss in the first round of the NFL playoffs of my beloved Green Bay Packers to the soon to be Gary or Arlington Heights Bears, which had me in a mandatory mourning period.

    That period...
    01-27-2026, 20:05 by eric
Working...