techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#openhttpd

0 posts0 participants0 posts today
Stuart Longland (VK4MSL)<p>This afternoon, I got close to what I wanted to achieve in terms of load-balancing between the two <a href="https://mastodon.longlandclan.id.au/tags/AI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AI</span></a> <a href="https://mastodon.longlandclan.id.au/tags/sabots" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sabots</span></a> I have running.</p><p>I had originally planned to use <a href="https://mastodon.longlandclan.id.au/tags/OpenBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenBSD</span></a>'s <a href="https://mastodon.longlandclan.id.au/tags/OpenHTTPD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenHTTPD</span></a> or <a href="https://mastodon.longlandclan.id.au/tags/RelayD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RelayD</span></a> to do the job, but <a href="https://mastodon.longlandclan.id.au/tags/HAProxy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HAProxy</span></a> <a href="https://mastodon.longlandclan.id.au/tags/PROXY" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PROXY</span></a> protocol was the limiting factor… so I went <a href="https://mastodon.longlandclan.id.au/tags/nginx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nginx</span></a> instead.</p><p>One thing I haven't worked out yet, is how to pass the client IP by PROXY protocol to a HTTP back-end. Seems I can do it for a generic TCP stream, but not HTTP.</p><p>The alternative is to set X-Forwarded-For, and have the back-ends trust it, like they trust PROXY for the gateway's IPv4 address for <a href="https://mastodon.longlandclan.id.au/tags/sniproxy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sniproxy</span></a>.</p><p>But… it works, you can hit <a href="https://sabot.vk4msl.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">sabot.vk4msl.com/</span><span class="invisible"></span></a> and you'll either get sabot01 (which uses nepenthes) or sabot02 (which uses iocaine). Since neither cares about the URI, I can bounce the client between them.</p><p>This did get me thinking though, if enough of us did it, we could have a <a href="https://mastodon.longlandclan.id.au/tags/AISabotAsAService" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AISabotAsAService</span></a> for websites to redirect/link to when they think they're being scraped by an AI bot.</p><p>We could provide a pool of servers that would provide the link maze. Front-end proxies would just bounce you between all the pool members, feeding your bot nonsense.</p>
Stuart Longland (VK4MSL)<p>I've just thrown this little page together…</p><p><a href="http://vk4msl.com/2023-backburn/" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="">vk4msl.com/2023-backburn/</span><span class="invisible"></span></a></p><p>I'll probably get rid of it once the backburning is passed, but this is the raw data along with the current conditions. The current conditions update each minute (self-refreshing).</p><p>I might see if I can get a chart going on it, the data's there.</p><p>Data flow is from the data logger → <a href="https://mastodon.longlandclan.id.au/tags/6LoWPAN" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>6LoWPAN</span></a> mesh → <a href="https://mastodon.longlandclan.id.au/tags/CoAP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoAP</span></a> proxy → <a href="https://mastodon.longlandclan.id.au/tags/WideSky" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WideSky</span></a> back-end → <a href="https://mastodon.longlandclan.id.au/tags/pyhaystack" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyhaystack</span></a> → JSON files to be served up by <a href="https://mastodon.longlandclan.id.au/tags/OpenHTTPD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenHTTPD</span></a></p><p>The pyhaystack script runs from `cron`.</p>