<?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>IPv4 &#8211; Roumazeilles.net</title>
	<atom:link href="https://www.roumazeilles.net/news/en/wordpress/tag/ipv4/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.roumazeilles.net/news/en/wordpress</link>
	<description>Technology opinions and others</description>
	<lastBuildDate>Sun, 22 Nov 2020 18:40:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Raspberry Pi as a local DNS/DHCP server</title>
		<link>https://www.roumazeilles.net/news/en/wordpress/2020/11/23/raspberry-pi-as-a-local-dns-dhcp-server/</link>
					<comments>https://www.roumazeilles.net/news/en/wordpress/2020/11/23/raspberry-pi-as-a-local-dns-dhcp-server/#respond</comments>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Mon, 23 Nov 2020 19:21:56 +0000</pubDate>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Routers & networks]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[IPv4]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://www.roumazeilles.net/news/en/wordpress/?p=15038</guid>

					<description><![CDATA[For a local network supporting a small company or an Internet-active family, it is always possible to rely totally on an Internet Service Provider (ISP) which will provide basic network services straight from the Internet box/router (fibre or ADSL). But, if &#8211; like me &#8211; you want to have more flexibility, you&#8217;d prefer to setup [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">For a local network supporting a small company or an Internet-active family, it is always possible to rely totally on an Internet Service Provider (ISP) which will provide basic network services straight from the Internet box/router (fibre or ADSL). But, if &#8211; like me &#8211; you want to have more flexibility, you&#8217;d prefer to setup your own services.</p>



<p class="wp-block-paragraph">I noticed the market emergence of nano-computers like Android boxes or Raspberry Pi which allow to easily setup services that may have been prohibitely expensive in the past.</p>



<p class="wp-block-paragraph">So, I decided to pruchase a Raspberry Pi 3 B+ (a rather cheap network little box, with low power consumption, able to stay online permanently, and easily configurable). I wanted to start by deploying the minimal network services to give me maximum agency.</p>



<p class="wp-block-paragraph">Minimum feature set included:</p>



<ul class="wp-block-list"><li>A <strong>DHCP </strong>server (to assign IP addresses on the local network with ability to fix some of them in a static list, for easier management)</li><li>A <strong>DNS </strong>server providing<ul><li>DNS request cache (to speed up the overall Internet access of my Internet users)</li><li>Delivery of local network names</li><li>Capacity to allow future DNS filtering (I don&#8217;t care much about adult-content filtering, but I&#8217;d like to stop some of the phishers, even if these two activities are technically identical)</li></ul></li></ul>



<p class="wp-block-paragraph">In the future, some more services may come handy (nothing of this has been studied here):</p>



<ul class="wp-block-list"><li>An NTP server (for time)</li><li>A WINS Windows names server</li></ul>



<h2 class="wp-block-heading">Comparison</h2>



<p class="wp-block-paragraph">As a matter of fact, I noticed that two serveurs seemed able to simultanesouly provide DHCP and DNS: <a href="https://nlnetlabs.nl/projects/unbound/about/">Unbound</a> and <a href="https://wiki.debian.org/dnsmasq">dsnmasq</a>.</p>



<p class="wp-block-paragraph">Unbound highlights:</p>



<ul class="wp-block-list"><li>Lightweight server</li><li>DNSSEC support</li><li>rather security-oriented</li><li>No DNS authoritative server (but able to handle a local domain)</li></ul>



<p class="wp-block-paragraph">dnsmasq highlights:</p>



<ul class="wp-block-list"><li> Lightweight server</li><li>DNSSEC support</li><li>DHCP and DNS are integrated in the same server</li><li>May use /etc/hosts to feed DNS</li><li>No DNS recursive server (only forward to an authoritative/recursive like 8.8.8.8 or 9.9.9.9 or your ISP DNS server)</li><li>No DNS authoritative server (but able to handle a local domain) </li></ul>



<p class="wp-block-paragraph">I chose dnsmasq, mainly because of the DNS + DHCP integration.</p>



<h2 class="wp-block-heading">Some surprising discoveries</h2>



<p class="wp-block-paragraph">Première information vite découverte : les serveurs NAS Synology sont tout à fait incompatibles avec le filtrage de DNS de CleanBrowsing. Celui-ci compte synology.me (service nécessaire pour le DDNS de Synology) dans les domaines à risque. De nombreux services du NAS cessent immédiatement de fonctionner.</p>



<p class="wp-block-paragraph">Je n&#8217;ai pas vérifié mais il est probable que de nombreux autres services DDNS (Dynamic DNS) soient black-listés pour les mêmes raisons : devant le nombre de petits serveurs Synology (ou autres) mal configurés, ces DDNS renvoient sans doute vers une forte proportion de domaines qui ont été pris en otage par les hackers.</p>



<p class="wp-block-paragraph">Il faut donc pouvoir gérer cela plus finement si vous avez vous-même votre propre NAS Synology (et sans doute d&#8217;autres marques).</p>



<h2 class="wp-block-heading">Observations</h2>



<p class="wp-block-paragraph">After a few months of  dnsmasq use on Rapsberry Pi, it is time to comment and share my experience.</p>



<p class="wp-block-paragraph">First, this worked really well. Even if I had one case of locked down DHCP server (no warning, no error, but killed). I tried finding why, but it was far easier to reboot the server box (On-Off switch) to restore the service. Of course, a few minutes of digging into logs did bring me some worried looks from another network user&#8230;</p>



<p class="wp-block-paragraph">The DNS filter setup to remove access to some risky domains work perfectly well. But, I have to admit that nothing seems to have triggered that (except my tests). Since this is not the only security barrier on my network, this may be OK. For the record, here is the filter creation script I use:</p>



<pre class="wp-block-preformatted">#!/bin/sh
#Dated 2020-11-10 1.0 Addition of --quiet to wget (to reduce clutter to /var/mail/pi)
#                     *** STABLE RELEASE ***

cd /var/lib/work

#Get anti-phishing filter lists from Internet
wget -q -O ./isc-low.txt 'https://isc.sans.edu/feeds/suspiciousdomains_Low.txt'
wget -q -O ./isc-med.txt 'https://isc.sans.edu/feeds/suspiciousdomains_Medium.txt'
wget -q -O ./isc-hig.txt 'https://isc.sans.edu/feeds/suspiciousdomains_High.txt'
wget -q -O ./yoyo.dnsmasq.txt 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;hostformat=nohtml&amp;showintro=0&amp;mimetype=plaintext'
#Remodel the lists into DNSmasq filters
catcherIP='192.168.1.250'
inputfile="./isc-med.txt"
tmpfile="/tmp/.adlist.$$"
tmpconffile="/tmp/.dnsmasq.conf.$$"
configfile="/etc/dnsmasq.filter.conf"
configheader="/etc/dnsmasq.filter.header"

#Start with putting our own header
    [ -f "$configheader" ] &amp;&amp; cat $configheader &gt;&gt; $tmpconffile
#check if TmpFile could be init'd with header
if [ ! -s $tmpconffile ]
then
    echo "temp fil '$tmpconffile' could not be found or is empty; quitting"
    exit
fi
#Remove list headers
cat $inputfile | grep -v "^#" | grep -v "^Site$" &gt; $tmpfile
#Buid list to DNSmasq format, and add it to the file
sed "s/(.*)/address=\/\1\/${catcherIP}/" $tmpfile &gt;&gt; $tmpconffile
#Move the final list to destination
sudo cp $tmpconffile $configfile</pre>



<p class="wp-block-paragraph">One of the advantages of this server is its speed. I may have been slightly worried (or attentive) before knowing the Raspberry Pi, but there was no reason. Maybe because of the low workload (despite an HTTP server, some distant connexions, and a few local scripts) and because of the good power developed by the CPU, everything is fine and dandy even when a dozen clients are pounding the DNS server (the iPhones are quite insistant in using the netowrk on a continuous basis)).</p>



<p class="wp-block-paragraph">dnsmasq is perfectly able t manageIPv6 DHCP, and correspondingIPv6 DNS. Documentation about this is terse (if not simply lacking), but it works well and I learned quite a few things. The Raspberry Pi was so reliable that it was IPv6 proxy during some of my tests without any perceptible impact. (I was rightfully impressed).</p>



<p class="wp-block-paragraph">After initially using dynamic address allocation, I moved the DHCP server into a nearly exclusively static configuration (my own choice in order to have easier local client identification). No big deal, neither in IPv4 nor in IPv6.</p>



<p class="wp-block-paragraph">Conclusion: Totally positive.</p>



<p class="wp-block-paragraph">In the future, I may be tempted to deploy more powerful servers for DHCP and DNS for a wider support (maybe or maybe not) and to try a network spy like SNORT or SURICATA. But this is a completely different story. And, in this case, I may be tempted to go to a really powerful solution (I have an Avenger96 under initial trial, but its software support seems to be a real mess).</p>



<h2 class="wp-block-heading">A few other interesting links</h2>



<ul class="wp-block-list"><li>A few other solutions for a DHCP server:<ul><li><a href="https://www.isc.org/dhcp-tools/"></a><a href="https://www.linux.com/tutorials/dnsmasq-easy-lan-name-services/">DNSmasq installation</a> (DHCP only)</li><li>Dragon: <a href="https://blogging.dragon.org.uk/howto-setup-dnsmasq-as-dns-dhcp/">DNSmasq installation</a> (DHCP + DNS)</li><li>Instructables: <a href="https://www.instructables.com/id/Running-your-own-DNSDHCP-Server-the-Easy-way/">installation for DNSmasq</a> (DHCP &amp; DNS)  </li><li><a href="https://wiki.debian.org/DHCP_Server">ISC-DHCP server on Debian</a></li><li><a href="https://www.tecmint.com/install-dhcp-server-in-ubuntu-debian/">ISC-DHCP server on Ubuntu</a></li><li><a href="https://wiki.debian.org/DHCP_Server">Tools designed to work with ISC-DHCP</a></li><li><a href="https://wiki.debian.org/DHCP_Server">Fast instructions for installing DHCP, DNS, </a><a href="http://www.raspberry-pi-geek.com/Archive/2014/03/Setting-up-Raspberry-Pi-as-a-DHCP-NTP-and-DNS-server">and NTP on Raspberry Pi</a></li></ul></li><li>Some data about installation of another DNS server:<ul><li><a href="https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-private-network-dns-server-on-debian-9">BIND local-mode DNS server on Debian 9</a></li><li><a href="https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-an-authoritative-only-dns-server-on-ubuntu-14-04">BIND authoritative DNS server on Ubuntu</a></li><li><a href="https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-caching-or-forwarding-dns-server-on-ubuntu-14-04">BIND &#8220;caching&#8221; or &#8220;forward-only&#8221; DNS server on Ubuntu</a></li></ul></li><li>DNS filters:<ul><li><a href="https://www.gmass.co/blog/domain-blacklists-comprehensive-guide/">THE guide on cleaning DNS from public domain lists</a></li></ul></li><li>Setup of a LaSynology NAS or router:<ul><li><a href="https://www.synology.com/fr-fr/knowledgebase/DSM/tutorial/Network/How_to_set_up_your_domain_with_Synology_DNS_Server">Configuration of a DNS server on DSM</a></li></ul></li><li>Server comparisons:<ul><li><a href="https://computingforgeeks.com/bind-vs-dnsmasq-vs-powerdns-vs-unbound/">BIND vs. dnsmasq vs PowerDNS vs Unbound</a><br><br> <br><br> </li></ul></li></ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.roumazeilles.net/news/en/wordpress/2020/11/23/raspberry-pi-as-a-local-dns-dhcp-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Synology on a sub-domain (with a dynamic IP address)</title>
		<link>https://www.roumazeilles.net/news/en/wordpress/2014/09/28/synology-on-a-sub-domain-with-a-dynamic-ip-address/</link>
					<comments>https://www.roumazeilles.net/news/en/wordpress/2014/09/28/synology-on-a-sub-domain-with-a-dynamic-ip-address/#respond</comments>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Sun, 28 Sep 2014 18:58:44 +0000</pubDate>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Routers & networks]]></category>
		<category><![CDATA[CNAME]]></category>
		<category><![CDATA[DDNS]]></category>
		<category><![CDATA[DiskStation]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[IP addreess]]></category>
		<category><![CDATA[IPv4]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[Synology]]></category>
		<guid isPermaLink="false">https://www.roumazeilles.net/news/en/wordpress/?p=13644</guid>

					<description><![CDATA[My problem: I&#8217;ve got a Fiber connexion to the Internet (at Numéricable, one of the main ISP in France) which is forcing a dynamic IP address on me (no fixed IP address, even with a premium; They&#8217;ve settled in the XXth century). This would not be very serious except that I host a RAID server [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3>My problem:</h3>
<p>I&#8217;ve got a Fiber connexion to the Internet (at Numéricable, one of the main ISP in France) which is forcing a dynamic IP address on me (no fixed IP address, even with a premium; They&#8217;ve settled in the XXth century). This would not be very serious except that I host a RAID server from Synology (a DS413j DiskStation with 4 hard drives in RAID-5 redundant mode) which provides several services I would like to share with the Internet (while I&#8217;m travelling with my iPhone or my laptop, I&#8217;d like to get access to my files through FTP, or my email server).</p>
<p>So, I decided to set things right in order to appropriately locate the Synology DiskStation in a sub-domain of my own (e.g. <code>mail.roumazeilles.net</code>).</p>
<h3>The solution I opted for:</h3>
<h4>Dynamic IP addess:</h4>
<p>Since my IP address is dynamic, there&#8217;s no way I can progress until I solved this single issue. I chose to use the DDNS service DDNS from Synology. Since I use DSM 5.0 (the most recent software version from Synology), I can reach the appropriate option through the control panel and the &#8220;External access&#8221; menu. I just added a DDNS, selecting Synology as a service supplier, and I recorded the name I wanted (let&#8217;s say <code>ds</code>). From this point, despite the IP address changes, my DiskStation is always accessible at <code>ds.synology.me</code>.</p>
<h4>DNS subdomain:</h4>
<p>After that, I need to point <code>mail.roumazeilles.net</code> onto <code>ds.synology.me</code>. This is slightly more complex because my <code>roumazeilles.net</code> domain nam is reserved atz <a href="http://www.gandi.net/" title="Gandi">Gandi</a> and it is pointed toward a server hosted by <a href="http://www.ovh.net/" title="OVH">OVH</a>. It&#8217;s the hosted server (rented from OVH) which includes all the information relating to <code>roumazeilles.net</code>. So, I went to my server control panel and, in its DNS configuration, I modified (in your case, you may need to add) a CNAME record.</p>
<p><code>mail 10800 IN CNAME ds.synology.me.</code> <em>(Don&#8217;t forget the final dot/period in your CNAME entry, or it won&#8217;t work!) </em><br />
Since I am lucky, my control panel at OVH includes an easy way to get the correct syntax (it&#8217;s safer): I tell it the <code>mail</code> subdomain is described by a <code>CNAME</code> record pointing to <code>ds.synology.me</code> (a bit terse, but not difficult).</p>
<p>Then, I only had to wait for the DNS information to &#8220;propagate&#8221; (from a few minutes to a few hours, sometimes up to 24-48 hours). And a little check using <code>ping mail.roumazeilles.net</code> confirmed that it answered from my Numéricable IP address.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.roumazeilles.net/news/en/wordpress/2014/09/28/synology-on-a-sub-domain-with-a-dynamic-ip-address/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Google goes IPv6</title>
		<link>https://www.roumazeilles.net/news/en/wordpress/2008/06/13/google-goes-ipv6/</link>
					<comments>https://www.roumazeilles.net/news/en/wordpress/2008/06/13/google-goes-ipv6/#comments</comments>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Fri, 13 Jun 2008 10:12:29 +0000</pubDate>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Routers & networks]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web sightings]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[IPv4]]></category>
		<guid isPermaLink="false">https://www.roumazeilles.net/news/en/wordpress/2008/06/13/google-goes-ipv6/</guid>

					<description><![CDATA[As you certainly already know if you follow regularly this web site, the Internet addresses will soon be depleted (all used). The end of the Internet world as we know it should be reached around 2011 or 2012. That is the reason why some companies are working to push out the most common Internet protocol [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>As you certainly already know if you follow regularly this web site, the Internet addresses will soon be depleted (all used). The end of the Internet world as we know it should be reached around 2011 or 2012. That is the reason why some companies are working to push out the most common Internet protocol (IPv4) and to make space for its successor (IPv6).</p>
<p>This is why, while the Internet Engineering Task Force (IETF) was preparing a night without IPv4 to reach the largest possible public, Google launched a version of its search engine reserved to IPv6: <a href="http://ipv6.google.com/">ipv6.google.com</a> (If you are like almost everybody, you will not see anything at the end of the link).</p>
<p>Now, we all have to switch as soon as possible.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.roumazeilles.net/news/en/wordpress/2008/06/13/google-goes-ipv6/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>IPv6 starts tomorow</title>
		<link>https://www.roumazeilles.net/news/en/wordpress/2008/02/03/ipv6-starts-tomorow/</link>
					<comments>https://www.roumazeilles.net/news/en/wordpress/2008/02/03/ipv6-starts-tomorow/#respond</comments>
		
		<dc:creator><![CDATA[Yves Roumazeilles]]></dc:creator>
		<pubDate>Sun, 03 Feb 2008 06:00:31 +0000</pubDate>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[IPv4]]></category>
		<guid isPermaLink="false">https://www.roumazeilles.net/news/en/wordpress/2008/02/03/ipv6-starts-tomorow/</guid>

					<description><![CDATA[For most of us, IPv6 has been a little more than vaporware. But in order to fight the upcoming lack of Internet addresses (as IPv4 addresses are more easily known), there is this new protocol, IPv6. It is steadily progressing and tomorrow, February 4th, several of the major international routers of the Internet backbone will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>For most of us, IPv6 has been a little more than vaporware. But in order to fight the upcoming lack of Internet addresses (as IPv4 addresses are more easily known), there is this new protocol, IPv6. It is steadily progressing and tomorrow, February 4th, several of the major international routers of the Internet backbone will start routing IPv6 packets.</p>
<p>It means that IPv6 will become a reality in most regions of the world, even if a lot more is to be done to make it overwhelmingly present.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.roumazeilles.net/news/en/wordpress/2008/02/03/ipv6-starts-tomorow/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
