<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Homelab &#8211; Other Things</title>
	<atom:link href="https://blog.adamzolo.com/category/homelab/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.adamzolo.com</link>
	<description>Blog about Things by Adam Zolotarev</description>
	<lastBuildDate>Sun, 29 Dec 2024 17:15:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Homelab Setup</title>
		<link>https://blog.adamzolo.com/homelab-setup/</link>
					<comments>https://blog.adamzolo.com/homelab-setup/#respond</comments>
		
		<dc:creator><![CDATA[Adam Zolo]]></dc:creator>
		<pubDate>Sun, 25 Aug 2024 16:22:29 +0000</pubDate>
				<category><![CDATA[Homelab]]></category>
		<guid isPermaLink="false">https://blog.adamzolo.com/?p=1064</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list">
<li>Router
<ul class="wp-block-list">
<li>PfSense running on Protectli fw4b
<ul class="wp-block-list">
<li>pfBlockerNG for whole house ads blocking</li>



<li>3 subnets: one for guest wifi, one for IoT, one for the rest of the devices</li>



<li>haproxy &#8211; a reverse proxy to help with remote access to my house cameras</li>



<li>Dynamic DNS setup with Dynu DNS</li>
</ul>
</li>
</ul>
</li>



<li>Switch
<ul class="wp-block-list">
<li>Unifi with PoE for the cameras</li>
</ul>
</li>



<li>WiFi
<ul class="wp-block-list">
<li>Unifi Access Points</li>
</ul>
</li>



<li>NAS
<ul class="wp-block-list">
<li>TrueNAS</li>
</ul>
</li>



<li>Cameras
<ul class="wp-block-list">
<li>Blue Iris running as a Windows service</li>
</ul>
</li>



<li>Home Automation
<ul class="wp-block-list">
<li>SmartThings -> migrated to Home Assistant</li>
</ul>
</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.adamzolo.com/homelab-setup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ad Blocking with ddwrt</title>
		<link>https://blog.adamzolo.com/ad-blocking-with-ddwrt/</link>
					<comments>https://blog.adamzolo.com/ad-blocking-with-ddwrt/#comments</comments>
		
		<dc:creator><![CDATA[Adam Zolo]]></dc:creator>
		<pubDate>Fri, 20 Dec 2019 22:33:48 +0000</pubDate>
				<category><![CDATA[Homelab]]></category>
		<guid isPermaLink="false">http://blog.adamzolo.com/?p=896</guid>

					<description><![CDATA[This was done on Asus RT-AC68U, running DD-WRT v3.0-r41686 std (12/10/19) Let&#8217;s start with the script. This downloads two adlists and combines them into one. Then we&#8217;re restarting the service to pick up the changes. The reason for using curl instead of wget is because wget refused to work with https on my ddwrt build&#8230;<p><a class="more-link" href="https://blog.adamzolo.com/ad-blocking-with-ddwrt/" title="Continue reading &#8216;Ad Blocking with ddwrt&#8217;">Continue reading <span class="meta-nav">&#8594;</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>This was done on Asus RT-AC68U, running DD-WRT v3.0-r41686 std (12/10/19)</p>



<p>Let&#8217;s start with the script. This downloads two adlists and combines them into one. Then we&#8217;re restarting the service to pick up the changes. The reason for using curl instead of wget is because wget refused to work with https on my ddwrt build <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f937.png" alt="🤷" class="wp-smiley" style="height: 1em; max-height: 1em;" />.</p>



<pre class="wp-block-preformatted">wget -qO /tmp/mvps http://winhelp2002.mvps.org/hosts.txt
curl -k https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts|grep "^0.0.0.0" &gt;&gt; /tmp/mvps
killall -HUP dnsmasq
stopservice dnsmasq &amp;&amp; startservice dnsmasq</pre>



<p>Go to Administration -&gt; Commands. Paste it in there and execute &#8220;Run Commands&#8221;.</p>



<p></p>



<p>Then, use the same command but execute it as Save Startup. Why? Well, I wanted to use a cron scheduler to run the script on a regular basis, but it just refused to work. Thus, I&#8217;m just scheduling a weekly reboot, which will trigger this command to update the ad lists <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f937.png" alt="🤷" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p></p>



<p>All you have left is to enable DNSMasq and Local DNS in Services tab. Then in the Additional  Dnsmasq options add this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
addn-hosts=/tmp/mvps
</pre></div>


<p>Then go to Administration->Keep Alive and schedule a weekly/monthly reboot. Although, if the cron is broken in your build, this may not work either (to check, you can ssh to your router and check the timestamp on the /tmp/mvps file). In that case, you may just have to manually rerun the script from time to time to get the latest ad list.</p>



<p></p>



<p>Update 2020: I finally switched to pfsense and using pfBlockerNG provides a much better experience. <a rel="noreferrer noopener" href="https://pi-hole.net/" target="_blank">Pi-hole</a> is another great option &#8211; also much better than tinkering with dd-wrt.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.adamzolo.com/ad-blocking-with-ddwrt/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
