<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>HopBox | Blog</title><description/><link>https://blogs.hopbox.net/</link><language>en</language><item><title>Welcome to HopBox Blogs</title><link>https://blogs.hopbox.net/blog/welcome-blog/</link><guid isPermaLink="true">https://blogs.hopbox.net/blog/welcome-blog/</guid><pubDate>Fri, 07 Nov 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Welcome to the official HopBox blog! This is where we’ll share product updates, technical tutorials, networking insights, and stories from the team behind HopBox.&lt;/p&gt;
&lt;!--excerpt--&gt;
&lt;div&gt;&lt;h2 id=&quot;what-to-expect&quot;&gt;What to Expect&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;We’re building HopBox in the open, and this blog is part of that commitment to transparency. Here’s what you can look forward to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Product Updates&lt;/strong&gt; — New features, firmware releases, and cloud dashboard improvements.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Technical Deep-Dives&lt;/strong&gt; — Detailed posts on DNS, SD-WAN, VPN configurations, firewall management, and network architecture.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How-To Guides&lt;/strong&gt; — Step-by-step tutorials for getting the most out of your HopBox deployment.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Industry Insights&lt;/strong&gt; — Our take on trends in enterprise networking, open-source infrastructure, and network security.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;built-on-open-source&quot;&gt;Built on Open Source&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;HopBox is built entirely on Free and Open Source Software. We believe that critical network infrastructure should be transparent and auditable. Every component — from the firmware running on your device to the cloud dashboard managing it — is open for inspection and contribution.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;stay-connected&quot;&gt;Stay Connected&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;We publish new posts regularly. Whether you’re a network engineer managing hundreds of devices or an IT admin setting up your first SD-WAN, there’s something here for you.&lt;/p&gt;
&lt;p&gt;Have a topic you’d like us to cover? Reach out to us at &lt;a href=&quot;mailto:info@unmukti.in&quot;&gt;info@unmukti.in&lt;/a&gt; — we’d love to hear from you.&lt;/p&gt;
&lt;p&gt;Happy networking!&lt;/p&gt;</content:encoded><category>announcement</category></item><item><title>Healthchecks based loadbalance and failover with DNS using PowerDNS</title><link>https://blogs.hopbox.net/blog/healthcheck-based-loadbalance-and-failover-with-dns-using-powerdns/</link><guid isPermaLink="true">https://blogs.hopbox.net/blog/healthcheck-based-loadbalance-and-failover-with-dns-using-powerdns/</guid><pubDate>Sun, 29 Jun 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Nowadays many enterprise DNS providers  provide healthchecks based DNS failover solution, including from AWS Route 53. The premise of this is directing the traffic towards the available nodes only using the DNS authority chain for the records.&lt;/p&gt;

&lt;p&gt;At &lt;a href=&quot;hopbox.net&quot;&gt;Hopbox&lt;/a&gt;, we manage a bunch of our domains in-house using BIND9 and PowerDNS. We wanted to make sure the application is actually listening and available on a server before directing the traffic  to it. In case one of the servers is not available or service is down, its IP address is removed from the DNS responses. We have chosen PowerDNS Lua Records for this purpose.&lt;/p&gt;
&lt;p&gt;Lua records are Lua statements in PowerDNS, which need to be enabled using the &lt;code dir=&quot;auto&quot;&gt;[enable-lua-records]&lt;/code&gt; &lt;a href=&quot;https://doc.powerdns.com/authoritative/settings.html#setting-enable-lua-records&quot;&gt;1&lt;/a&gt; flag in config. Lua records are quite simple to define:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;app IN LUA A ( &quot;ifportup(9001, {&apos;192.0.2.1&apos;, &apos;198.51.100.39&apos;, &apos;203.0.113.126&apos;,&quot; &quot;{selector=&apos;all&apos;}) &quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;In the above statement, an A record for the subdomain &lt;code dir=&quot;auto&quot;&gt;app&lt;/code&gt; is defined, which monitors reachability on port 9001 for three defined nodes, i.e., 192.0.2.1, 198.51.100.39 and 203.0.113.126 and returns all up nodes in response (defined by selector=’all’). &lt;a href=&quot;https://doc.powerdns.com/authoritative/lua-records/functions.html?highlight=ifportup#ifportup&quot;&gt;2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That’s a mouthful of explanation for sure. In short, for a DNS query for the subdomain app, PowerDNS would return all available nodes (based on port 9001 availability).&lt;/p&gt;
&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;selector&lt;/code&gt; can be changed based on geography as well:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;app IN LUA A ( &quot;ifportup(9001, {&apos;192.0.2.1&apos;, &apos;198.51.100.39&apos;, &apos;203.0.113.126&apos;,&quot; &quot;{selector=&apos;pickclosest&apos;}) &quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This modifies query response to direct traffic to the closest node on the basis of the requestor’s geographic distance.
Monitoring or availability checks are done in an async manner in the background, and we have observed check frequency varying from 2 to 5 seconds. The default TTL for response seems to be 120 seconds.&lt;/p&gt;
&lt;p&gt;A full list of Lua functions available in PowerDNS can be found &lt;a href=&quot;https://doc.powerdns.com/authoritative/lua-records/functions.html#functions-available&quot;&gt;here&lt;/a&gt;. Most can be combined to do fine-grained load balancing.&lt;/p&gt;
&lt;p&gt;From &lt;a href=&quot;https://doc.powerdns.com/authoritative/lua-records/index.html&quot;&gt;Lua Records documentation&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;cite&gt; This is a PowerDNS specific feature, and is not (yet) standardized by the IETF or other standards bodies. We are committed however to interoperability, and strive to turn this functionality into a broadly supported standard. &lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So AXFR is only supported to other PowerDNS secondaries only.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://static.hopbox.net/smart-dns-1-down.png&quot; alt=&quot;A diagram showing Managed DNS service using this setup&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;At Hopbox, we also provide Managed DNS services, where you can point a CNAME for your application subdomain towards us, and we manage the healthchecks (port specific too) based on DNS responses (with our diverse, highly available DNS infrastructure). You may &lt;a href=&quot;https://hopbox.net/?page_id=904&quot;&gt;Contact us&lt;/a&gt; to enquire abut how we can help optimise your application delivery.&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;further-readings&quot;&gt;Further readings&lt;/h3&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;• [PowerDNS Lua Records announcement blog](https://blog.powerdns.com/2017/12/15/powerdns-authoritative-lua-records)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;• [Lua Records documentation](https://doc.powerdns.com/authoritative/lua-records/index.html)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;</content:encoded></item><item><title>Hopbox Public GNU software mirror</title><link>https://blogs.hopbox.net/blog/hopbox-public-gnu-software-mirror/</link><guid isPermaLink="true">https://blogs.hopbox.net/blog/hopbox-public-gnu-software-mirror/</guid><pubDate>Tue, 04 Jun 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We at Hopbox have been Free Software users and contributors for more than a decade now. We were looking to contribute more to the community in a different from usual way. Downloads from GNU FTP mirrors were slow in India and there existed only 1 mirror (when we decided) for whole of India. As of 4th April 2024, we’re &lt;a href=&quot;https://download.savannah.gnu.org/mirmon/allgnu/#in&quot;&gt;only GNU mirror in India&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;GNU is an extensive collection of software packages like Bash, Emacs, Octave and various &lt;a href=&quot;https://www.gnu.org/software/coreutils/&quot;&gt;coreutils&lt;/a&gt;. So after a quick discussion, we started hosting a GNU software mirror on our locally hosted Chromebox. The mirror is available on both &lt;a href=&quot;http://mirrors.hopbox.net/gnu/&quot;&gt;http://mirrors.hopbox.net/gnu/&lt;/a&gt; and &lt;a href=&quot;https://mirrors.hopbox.net/gnu/&quot;&gt;https://mirrors.hopbox.net/gnu/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As most Free Software don’t have commercial backing and require heavy downloads, the concept of software download mirrors helps take the traffic load off of the primary server, leading to geographical redundancy, higher availability and faster download in general.&lt;/p&gt;
&lt;p&gt;At Hopbox, we regularly build a in-house customized version of OpenWrt, a GNU/Linux distribution for routers and embedded devices, which in turn uses  GNU coreutils for compilation. Having a local mirror gives us speeds faster than 1 Gbps which is many times faster than our internet speeds, as traffic gets served locally.&lt;/p&gt;
&lt;p&gt;The mirror is running on a Dell Optiplex 3020 solely dedicated for mirroring purposes behind a &lt;a href=&quot;https://hopbox.net/?page_id=17&quot;&gt;Hopbox APU&lt;/a&gt; gateway. The mirror right now is running on base Debian 12 bookworm.&lt;/p&gt;
&lt;p&gt;Presently the mirror is serving 30-50 GB of traffic daily since becoming the sole GNU FTP mirror in India with &lt;a href=&quot;https://www.gnu.org/software/emacs/&quot;&gt;Emacs&lt;/a&gt; and &lt;a href=&quot;https://octave.org/&quot;&gt;Octave&lt;/a&gt; fighting for top downloaded package. We generally see traffic from India and neighboring countries.&lt;/p&gt;</content:encoded></item></channel></rss>