<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>firewall — LowEndSpirit</title>
        <link>https://lowendspirit.com/index.php?p=/</link>
        <pubDate>Thu, 04 Jun 2026 06:24:51 +0000</pubDate>
        <language>en</language>
            <description>firewall — LowEndSpirit</description>
    <atom:link href="https://lowendspirit.com/index.php?p=/discussions/tagged/firewall/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Reinventing the ApisCP WAF</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/9700/reinventing-the-apiscp-waf</link>
        <pubDate>Sat, 21 Jun 2025 01:34:00 +0000</pubDate>
        <category>Technical</category>
        <dc:creator>nem</dc:creator>
        <guid isPermaLink="false">9700@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Long time since I've posted, and this one's a fun one. I'd like to pick your brains.</p>

<p>ApisCP based its original WAF on <a rel="nofollow" href="https://github.com/jzdziarski/mod_evasive">mod_evasive</a>. It's a simple counter that tracks inbound requests per process. Evasive is easily circumvented if keep-alives are disabled or the client explicitly closes a connection. A "200 OK" CSS request is just as significant as a 404 that flows through to a dispatcher, like WordPress, and serves out a dynamic - fully loaded - WordPress site. As of late, I've seen changes in bot request patterns that makes this solution inadequate.</p>

<p><a rel="nofollow" href="https://forums.apiscp.com/t/mod-shield-next-gen-http-dos-protection-early-testing/859">mod_shield</a> rethinks this approach. It's a full rewrite of Evasive.</p>

<h3>Features</h3>

<ul>
<li><p><strong>Hits are shared across processes</strong></p>

<ul>
<li>Records are fixed at 176 bytes allowing for 3k unique hits over a 2 minute window at 512 KB</li>
<li>Autoexpire, autoeviction w/ LRU policy</li>
<li>Cache resizable</li>
<li>Can be stored to <a rel="nofollow" href="https://httpd.apache.org/docs/2.4/mod/mod_socache_memcache.html">memcached</a> or <a rel="nofollow" href="https://httpd.apache.org/docs/trunk/mod/mod_socache_redis.html">Redis</a> providers to share hits across servers</li>
</ul></li>
<li><p><strong>HTTP statuses and page loads are scorable</strong></p>

<ul>
<li>Status points may penalize 404s allowing for faster blacklisting of random probes</li>
<li>Works with custom HTTP status codes, e.g. returning 499 from backend could score 10000000 resulting in immediate block.</li>
<li>Fast loads remove decrease points while slow loads may add to point total</li>
<li>Complex scoring is possible, e.g. 1s &lt; load &lt; 2s = 5 pts, 2s &lt;= x &lt; 10s = 7 pts, load &gt;= 10s = 10 pts</li>
<li>Addresses DoS situations where bots hit database-heavy requests, like search</li>
</ul></li>
<li><p><strong>Blocks counted per event</strong></p>

<ul>
<li>For each block application, the duration may be longer than previously applied</li>
<li>Counted for life of system service process</li>
<li>Both <a rel="nofollow" href="https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.3">RFC7231</a> "Retry-After" + <a rel="nofollow" href="https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/">RateLimit</a> headers are sent to guide a compliant client</li>
</ul></li>
<li><p><strong>Proxy support</strong></p>

<ul>
<li>Pierces Cloudflare's tunnel in which the edge address cannot be blocked without disrupting Cloudflare usage</li>
<li>Works with any other downstream proxy as defined using <a rel="nofollow" href="https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html">mod_remoteip</a></li>
</ul></li>
<li><p><strong>Fast, Minimal Overhead</strong></p>

<ul>
<li>Occurs early in processing axis, ~13% faster than mod_evasive <img src="https://lowendspirit.com/plugins/emojiextender/emoji/twitter/blush.png" title=":blush:" alt=":blush:" height="18" /></li>
<li>Requires 3 separate memory chunks for per-site, per-page, and active-blocks.</li>
</ul></li>
<li><p><strong>Improved logging</strong></p>

<ul>
<li><p>Status handler executive summary<br />
<img src="https://futz.net/5f7332fb641d327b18f97446cc3f2ec6b116a54b.png" alt="epsilon-status-handler|669x500" /></p></li>
<li><p>Diagnostics, get a better idea of how things score and why. Doubles as a telemetry module without blocking.</p></li>
</ul></li>
</ul>

<pre><code>    [Fri Jun 20 17:27:18.044384 2025] [shield:info] [pid 2241388:tid 2241454] [client 35.196.24.130:58136] Request status 301 flagged with score 25
    [Fri Jun 20 17:27:18.626983 2025] [shield:info] [pid 2241388:tid 2241452] [client 35.196.24.130:58136] Request status 404 flagged with score 50
    [Fri Jun 20 17:27:22.265283 2025] [shield:info] [pid 2241388:tid 2241455] [client 35.196.24.130:60824] blocking period started for IP: 35.196.24.130 (expiry: 1750541242264768)
    [Fri Jun 20 17:31:46.372136 2025] [shield:info] [pid 2246513:tid 2246541] [client 103.205.211.78:47894] Request status 302 flagged with score 25
    [Fri Jun 20 17:31:47.559982 2025] [shield:info] [pid 2246566:tid 2246607] [client 103.205.211.78:40392] Request status 301 flagged with score 25, referer: http://x.com/xmlrpc.php
    [Fri Jun 20 17:31:48.719776 2025] [shield:info] [pid 2246513:tid 2246539] [client 103.205.211.78:40530] Request status 404 flagged with score 50, referer: https://x.com/xmlrpc.php
    [Fri Jun 20 17:32:03.948083 2025] [shield:info] [pid 2241389:tid 2241464] [client 138.117.18.67:52430] Request status 404 flagged with score 50
    [Fri Jun 20 17:39:03.452497 2025] [shield:info] [pid 2246566:tid 2246607] [client 193.203.10.164:32349] Request status 404 flagged with score 50
    [Fri Jun 20 17:41:51.467151 2025] [shield:info] [pid 2246513:tid 2246540] [client 177.10.34.242:13784] Request status 404 flagged with score 50
    [Fri Jun 20 17:43:28.093184 2025] [shield:info] [pid 2246513:tid 2246535] [client 177.204.39.240:58988] Request status 404 flagged with score 50
    [Fri Jun 20 18:18:46.574231 2025] [shield:notice] [pid 2241388:tid 2241446] [client 114.119.128.58:36383] Request round-trip 1069 ms exceeds limit 1000 ms. Scoring 1 /dsc_hdr-copy/ (proto: HTTP/1.1), referer: https://x.com/dsc_hdr-copy/
</code></pre>

<hr />

<h3>Ideas so far</h3>

<ul>
<li><p><strong>GeoIP blocking</strong></p>

<ul>
<li>I'm not a fan, works contrary that this firewall works adaptively based upon malicious traffic. Bad actors should be blocked organically.</li>
</ul></li>
<li><p><strong>JS challenge to unblock</strong></p>

<ul>
<li>Will be added in a later release. For now, blocks can be done within ApisCP's panel.</li>
</ul></li>
</ul>

<p>What else would you like to see added?</p>

<p>Running ApisCP already? You can swap to Shield today: <br />
<code>dnf --enablerepo=apnscp-testing update -y mod_shield</code></p>

<p>Module is RC stage. It'll be part of the next major ApisCP release <img src="https://lowendspirit.com/plugins/emojiextender/emoji/twitter/+1.png" title=":+1:" alt=":+1:" height="18" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Home Network Advice Please: Firewall/Router, WiFi Access Points/Multiple SSIDs, Switches and VLANs?</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/6261/home-network-advice-please-firewall-router-wifi-access-points-multiple-ssids-switches-and-vlans</link>
        <pubDate>Thu, 03 Aug 2023 11:44:13 +0000</pubDate>
        <category>Help</category>
        <dc:creator>xleet</dc:creator>
        <guid isPermaLink="false">6261@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>I need to replace my home network. I have had enough of Sophos and their free UTM (for home users).</p>

<p>WHAT I HAVE: <br />
I have a direct Ethernet bridge (cable modem) with DHCP to the internet. I get one public IPv4 address and a typical IPv6 (/64?) home connection. Ethernet cables go between the office closet and all rooms in the house. There are switches in some rooms that have multiple devices. There are four WiFi access points in various rooms to yield full coverage of the house and backyard.</p>

<p>WHAT I NEED:</p>

<ul>
<li>Firewall / Router that supports the network. I have an 8 port "SG135" Sophos appliance, but do not mind wiping it and installing other software on that same hardware.</li>
<li>Four WiFi access points that support multiple SSIDs. I want to isolate home appliances and devices from the primary LAN that personal computers use. That requires multiple SSIDs. A "guest network" is not sufficient. I assume it would use a separate VLAN for each SSID.</li>
<li>Small VLAN-capable switches in a few of the rooms.</li>
<li>A VLAN-capable switch in the office closet.</li>
<li>The access points and VLAN switches must be reasonably easy to manage and configure. I understand that it is complex, but some models of access points and VLAN switches make the problem much harder.</li>
</ul>

<p>I bought some very cheap TP-Link switches. Not only are they not secure, but they are nearly impossible to configure. It becomes a real "bootstrap" nightmare trying to configure access points with SSIDs on VLANs, then the TP-Link cheap switches, and then the office closet equipment without cutting something off accidentally. It is a nightmarish bootstrap process. The TP-Link switches run HTTP with open passwords on the network. No more of that, please.</p>

<p>This is a home network, not a business. I do not want to spend excessive amounts, nor do I want any license "subscriptions" or "renewals".</p>

<p>-&gt; What would you recommend? I need access points, smart switches, and a good firewall/router to put it all together.</p>
]]>
        </description>
    </item>
    <item>
        <title>OpenSense Hardening  &amp; sunnyvalley.cloud referral</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/5906/opensense-hardening-sunnyvalley-cloud-referral</link>
        <pubDate>Thu, 11 May 2023 19:10:54 +0000</pubDate>
        <category>Help</category>
        <dc:creator>hornet</dc:creator>
        <guid isPermaLink="false">5906@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>I have been reading about and watching pfSense and OpenSense videos for one year.  Time to pull the trigger.</p>

<p>Looking to have a rock-hard residential connection.  Which setup tweaks do you recommend?  Plug-ins?</p>

<p>Anyone have a sunnyvalley.cloud referral link?</p>
]]>
        </description>
    </item>
    <item>
        <title>LowEnd Segmented Wireless and Wired VLAN Networks</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/4603/lowend-segmented-wireless-and-wired-vlan-networks</link>
        <pubDate>Sat, 17 Sep 2022 17:44:33 +0000</pubDate>
        <category>Technical</category>
        <dc:creator>xleet</dc:creator>
        <guid isPermaLink="false">4603@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>I would like to segment my home network into separate VLANs. The goal is to prevent appliances like doorbell cameras and video streaming devices from accessing the LAN that residents use for their personal computers and phones.</p>

<p>That means several WiFi SSIDs that are on separate LAN segments. I have switches that support 802.1q VLAN tagging, but they are still operating as unmanaged switches.</p>

<p>Which firewall would you recommend that supports this kind of networking with VLAN tagging? <br />
Which access points would you recommend that support multiple SSIDs (say 8 different ones) with appropriate VLAN tagging?</p>
]]>
        </description>
    </item>
    <item>
        <title>New WAF by Cloudflare.. will you bite?</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/2736/new-waf-by-cloudflare-will-you-bite</link>
        <pubDate>Wed, 31 Mar 2021 12:44:23 +0000</pubDate>
        <category>Industry News</category>
        <dc:creator>vyas</dc:creator>
        <guid isPermaLink="false">2736@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Preference (of course ) for paid tier.</p>

<p><a href="https://blog.cloudflare.com/new-cloudflare-waf/" rel="nofollow">https://blog.cloudflare.com/new-cloudflare-waf/</a></p>

<p>Or will you go DIY route?</p>
]]>
        </description>
    </item>
    <item>
        <title>Linode Firewall (Beta)</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/1967/linode-firewall-beta</link>
        <pubDate>Sat, 24 Oct 2020 00:17:39 +0000</pubDate>
        <category>General</category>
        <dc:creator>vyas</dc:creator>
        <guid isPermaLink="false">1967@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>I came across a post talking about Linode Firewall that is in beta. One has to apply to the program to use but...</p>

<p>My question : is this different (or better ) than standard / cli tools ?</p>

<p><a href="https://www.linode.com/products/firewall/" rel="nofollow">https://www.linode.com/products/firewall/</a></p>
]]>
        </description>
    </item>
    <item>
        <title>General Setup for MMO and Firewall</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/1512/general-setup-for-mmo-and-firewall</link>
        <pubDate>Mon, 27 Jul 2020 00:19:14 +0000</pubDate>
        <category>Technical</category>
        <dc:creator>kind</dc:creator>
        <guid isPermaLink="false">1512@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Hello guys, its me again.<br />
As im progress with the setup, new doubts are comming.<br />
First of all, im gonna tell you about my setup and why I rent a dedicated server.<br />
I have 2 servers of MMORPG, and, usually we (the ppl who has this kind of servers) rent vps, problem is most of the ppl who rent related to this game don't have a clue about nothing, and oversell resources af. So, since my 2 vps cost around 35USD monthly, I decided to take the leap and move to soyoustart.<br />
My goal is to setup 4 vps with Windows Server (2 operationals and 2 for test). <br />
This is the specs of my server: SYS-LE-2 Server - Intel Xeon E5-1620v2 - 32GB DDR3 ECC 1600MHz - 2x 800GB SSD SATA Soft RAID and it has Proxmox VE 6.2.</p>

<p>That being said, I have a couple of general questions:<br />
1. OVH Monitor isn't enabled for SYS right?<br />
2. Do you recommend to have RAID setup for this use? Currently I have one of the SSD unmounted.<br />
3. What its the best configuration for Windows regarding VM options. Screen: <img src="https://i.imgur.com/KYz8227.png" alt="" title="" /></p>

<p>And about Firewall (the same topic since setup is relevant):<br />
1. Is there a file config to see all the rules that has been applied? Im aware of iptables -S<br />
2. Do you really see crucial to add a rule for SSH and GUI access only from 1 ip? Im from Argentina, and all the companies here use dynamic ip, or its enough with anti brute rules?<br />
3. All the rules I apply to main server in SSH would be apply to my VM's if network firewall is enabled?<br />
4. Need to limit connection ammount per IP and per time, I read this tutorial (hope isn't againts the rules share the link) <a href="https://javapipe.com/blog/iptables-ddos-protection/" rel="nofollow">https://javapipe.com/blog/iptables-ddos-protection/</a> with a bit of tweaks could be exactly what I need, only if I can add a ban to the ip that exceed the limite, for 30mins lets said.<br />
5. Is there a way to add a whitelist IP for certain rules only? Like for example, I wanna limit connections with the rules from the link above, to 15 connections over 30sec.</p>

<p>Think that would be all. Thanks to all for reading, sorry for all the questions and the bad english ^^</p>
]]>
        </description>
    </item>
    <item>
        <title>Do you block traffic from China?</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/468/do-you-block-traffic-from-china</link>
        <pubDate>Thu, 09 Jan 2020 10:15:19 +0000</pubDate>
        <category>Technical</category>
        <dc:creator>havoc</dc:creator>
        <guid isPermaLink="false">468@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>From reading various things on the intertubes at least some people seem to do this. On the basis that a lot of the traffic is not legit and/or malicious.</p>

<p>Thoughts on this? yay/nay</p>

<p>Also, anybody know a clean way of managing this type of stuff. I know one can download country IP blocks and funnel it into iptables but not sure how to remove/manage</p>
]]>
        </description>
    </item>
   </channel>
</rss>
