<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Networks on Sinodun Internet Technologies</title>
    <link>https://sinodun.com/tags/networks/</link>
    <description>Recent content in Networks on Sinodun Internet Technologies</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright 2026 Sinodun IT</copyright>
    <lastBuildDate>Fri, 01 Mar 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sinodun.com/tags/networks/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Junos DHCPv6 DNS Search List</title>
      <link>https://sinodun.com/post/junos-dhcpv6/</link>
      <pubDate>Fri, 01 Mar 2019 00:00:00 +0000</pubDate>
      <guid>https://sinodun.com/post/junos-dhcpv6/</guid>
      <description>&lt;p&gt;I have been looking at the DHCPv6 server in JUNOS 15.1X49-D160.2. It is easy enough to setup Note: Step 5 is wrong, the first two instructions should have dhcpv6 as the last argument e.g.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;set security zones security-zone untrust interfaces ge-0/0/0.0 host-inbound-traffic system-services dhcpv6&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It would be nice to configure the DNS Search List option. The option code for this is 24. So I tried this&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;set access address-assignment pool my-pool family inet6 dhcp-attributes option 24 array string [ &amp;#34;sinodun.com&amp;#34; &amp;#34;ipv4.sinodun.com&amp;#34; ]&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;but it didn’t work. There appears to be no examples of how to do this correctly so after reading RFC3315 section 8 and RFC1035 section 3.1 I realised it had to be in uncompressed wire format like this&lt;/p&gt;</description>
    </item>
    <item>
      <title>More on Debian Jessie/Ubuntu Trusty packet capture woes</title>
      <link>https://sinodun.com/post/more-pcap/</link>
      <pubDate>Tue, 27 Jun 2017 00:00:00 +0100</pubDate>
      <guid>https://sinodun.com/post/more-pcap/</guid>
      <description>&lt;p&gt;Back in September I wrote about a problem we’d come across when capturing traffic with &lt;code&gt;pcap_dispatch()&lt;/code&gt; or &lt;code&gt;pcap_next_ex()&lt;/code&gt; on Ubuntu Trusty or Debian Jessie. When the traffic was slow, we saw packets not being captured.&lt;/p&gt;&#xA;&lt;p&gt;We’ve since done a bit more digging. The problem, we think, is a bug in the Linux kernel &lt;code&gt;select()&lt;/code&gt; system call. With both &lt;code&gt;pcap_dispatch()&lt;/code&gt; and&#xA;&lt;code&gt;pcap_next_ex()&lt;/code&gt; we’re using a central loop that is basically:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;pcap_dispatch();&#xA;select(pcapfd, timeout);&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The length of timeout in the select() call shouldn’t matter. But it does. In our test scenario, set it to 1ms and every packet in a ping to an otherwise idle network connection will be captured. Set it to 2s and most or all will be missed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Compressing pcap files</title>
      <link>https://sinodun.com/post/compress-pcap/</link>
      <pubDate>Thu, 08 Jun 2017 00:00:00 +0100</pubDate>
      <guid>https://sinodun.com/post/compress-pcap/</guid>
      <description>&lt;p&gt;Here at Sinodun Towers, we’re often dealing with &lt;code&gt;pcap&lt;/code&gt; DNS traffic capture files created on a far distant server. These files need to be compressed, both to save space on the server, and also to speed transfer to our machines.&lt;/p&gt;&#xA;&lt;p&gt;Traditionally we’ve used &lt;code&gt;gzip&lt;/code&gt; for quick but basic compression, and &lt;code&gt;xz&lt;/code&gt; when space was more important than CPU and we really needed the best compression we could get. At a recent conference, though, an enthusiastic Facebook employee suggested we take a look at &lt;code&gt;zstd&lt;/code&gt;. We’d looked at it quite some time ago, but our contact said it has improved considerably recently. So we thought we’d compare the latest &lt;code&gt;zstd (1.2.0)&lt;/code&gt; with current &lt;code&gt;gzip (1.8)&lt;/code&gt; and &lt;code&gt;xz (5.2.3)&lt;/code&gt; and see how they stack up when you’re dealing with pcap DNS traffic captures.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Packet capture woes with libpcap on Ubuntu Trusty and Debian Jessie</title>
      <link>https://sinodun.com/post/packet-capture/</link>
      <pubDate>Thu, 29 Sep 2016 00:00:00 +0100</pubDate>
      <guid>https://sinodun.com/post/packet-capture/</guid>
      <description>&lt;p&gt;Usually when you’re using libpcap to capture network traffic, your chief worry will be whether or not your application will keep up with the flow of traffic.&lt;/p&gt;&#xA;&lt;p&gt;Today, though, I’ve stubbed my toe on a problem with traffic that’s too slow. It happens with both Ubuntu Trusty and Debian Jessie. If there’s a gap between packets of more than about 50 milliseconds, the first packet to arrive after the gap will be dropped and you’ll never see it. I was capturing DNS queries and responses, and found that with a query rate of under 20 queries per second you start dropping queries. By the time you’re down to 15 queries per second, nearly every query is dropped.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Juniper SRX mucking with DNS</title>
      <link>https://sinodun.com/post/junos-dns/</link>
      <pubDate>Mon, 25 Mar 2013 00:00:00 +0000</pubDate>
      <guid>https://sinodun.com/post/junos-dns/</guid>
      <description>&lt;p&gt;I was getting some strange DNS answers on the servers in a trust zone on my SRX. All the servers are statically NAT’d to external IP’s and run their own caching resolvers but when I tried to query for the servers A RR I kept getting the internal IP address. No name server either internal or external was serving that A RR. Eventually I realised that it was the SRX changing the answer section of the DNS response. I don’t know if it is on by default, or if I switched it on by mistake but it was the DNS Application Layer Gateway (ALG) trying to help by making use of what it knew about the static NATs. Switching DNS ALG off solved the issue. For a detailed description of what the ALG does see the Junos OS Security Configuration Guide.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
