{"id":172,"date":"2013-08-25T09:33:02","date_gmt":"2013-08-25T17:33:02","guid":{"rendered":"http:\/\/jacksontech.net\/?p=172"},"modified":"2017-12-14T13:42:34","modified_gmt":"2017-12-14T21:42:34","slug":"ghost-traffic-aka-other-peoples-bittorrent-traffic-aka-it-wasnt-me-officer","status":"publish","type":"post","link":"https:\/\/jacksontech.net\/index.php\/2013\/08\/ghost-traffic-aka-other-peoples-bittorrent-traffic-aka-it-wasnt-me-officer\/","title":{"rendered":"Ghost Traffic aka Other Peoples&#8217; BitTorrent Traffic aka It Wasn&#8217;t Me, Officer!"},"content":{"rendered":"<p>Earlier this week, HughesNet scheduled a maintenance outage to do whatever it is that they need to do for maintenance (which, in the past, has included replacing equipment damaged by golf-ball sized hail at the ground stations). When the connection came back up early the next morning, it was plagued by mysterious and intermittent RSTs on HTTP connections and 2% packet loss. Owch! Having approximately 320268309285049386509258 errands to run, I didn&#8217;t get to examine the connection until last night&#8230;<\/p>\n<p><!--more--><\/p>\n<p>Now, my initial reaction should have been to power cycle the modem. This tends to solve a surprising number of issues, at least temporarily. But I wanted to figure out what was going on first, and pride got in the way besides&#8211;after all, I&#8217;m a <strong>Linux<\/strong> geek, right? And Linux geeks don&#8217;t reboot things, ever. <del>Except for kernel updates. And power outages. And spontaneous fits of rage.<\/del> Rebooting things to solve a problem is a Microsoft thing, yargh! (And it would&#8217;ve solved the problem right away too, but then you wouldn&#8217;t be reading this post, so&#8230;foo on the easy way out!)<\/p>\n<p>I spent a half-hour or experimenting before I glanced at my Cacti page and saw this:<\/p>\n<p><a href=\"http:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/graph1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/graph1.png\" alt=\"WAN interface\" width=\"996\" height=\"470\" \/><\/a><\/p>\n<p>The gap between Thursday and Friday was caused by the outage. Immediately after the connection was restored, bandwidth spikes, and then&#8230;hey, what&#8217;s that constant baseline of about 60Kbit\/s? (Trust me, I zoomed in.)<\/p>\n<p>Trusty iftop revealed that, yes, I was indeed getting about 55-60Kbit\/s on WAN:<\/p>\n<div id=\"attachment_177\" class=\"wp-caption alignleft\" style=\"width: 800px\"><a href=\"http:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/iftop.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-177\" src=\"http:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/iftop.png\" alt=\"Now with pointless censorship!\" width=\"800\" height=\"451\" srcset=\"https:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/iftop.png 800w, https:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/iftop-300x169.png 300w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p class=\"wp-caption-text\">iftop &#8211; Now with pointless censorship!<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>Aside from the traffic to 192.168.0.1 (the HT1000 modem), which is probably my monitoring script, all of the other endpoints were unexpected. The WAN interface was receiving ~55Kbit\/s of traffic from the Internet. None of the traffic had been solicited by a machine inside the LAN, so the traffic hit my external firewall and was DROPped. For most people, this is no more than a nuisance&#8211;out of sight, out of mind, right?<\/p>\n<p>But satellite users are a different breed. Oh, yes. No 150GB all-you-can-eat cornucopia for us. Bandwidth is gold. Every byte that passes through the modem is counted against the precious 10GB\/month quota. (All right, it&#8217;s 20GB\/month if you manage to use the extra 10GB provided between the hours of 2AM-8AM, which is good for early risers or people who like to watch Burn Notice on Hulu to fight off early-morning insomnia.)<\/p>\n<p>55Kbit\/s (which, if you look closely at the graph, is near constant except for a brief dip around Saturday morning) is 580MB\/day, or 16.99GB\/month. Obviously, this is a problem if your ISP only provides you with 10GB\/month.<\/p>\n<p>So I dd a little more sniffing on my router&#8217;s network interfaces and established that there was zero traffic on any of the LAN ports aside from the SSH connection I was using to log in to the router. I ran a capture on the WAN interface, got up and had some tea, enjoyed a little music, and came back twenty minutes later to examine the data with Wireshark.<\/p>\n<div id=\"attachment_180\" class=\"wp-caption alignleft\" style=\"width: 800px\"><a href=\"http:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/bt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-180\" src=\"http:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/bt.png\" alt=\"bt\" width=\"800\" height=\"234\" srcset=\"https:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/bt.png 800w, https:\/\/jacksontech.net\/wp-content\/uploads\/2013\/08\/bt-300x87.png 300w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p class=\"wp-caption-text\">Wireshark 1.8.9 &#8211; Also with pointless censoring!<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>Ah.<\/p>\n<p>BitTorrent.<\/p>\n<p>More specifically, other peoples&#8217; Bittorrent traffic.<\/p>\n<p>See, I&#8217;m funny about certain things. I don&#8217;t torrent, in part because for a decade I had dialup and didn&#8217;t have the bandwidth to do it; in part because I don&#8217;t want to get grumpy letters from a grumpy ISP who got a grumpy legal document from a grumpy RIAA worker who has no other purpose in life but to make other people miserable; and in part because I find it morally undesirable for non-free copyrighted works. (Of course, BitTorrent is a great way to quickly fetch large Linux ISO files, and it eases the load on download servers too.)<\/p>\n<p>I can guarantee that no one else in this household has even <em>heard<\/em> of BitTorrent, let alone installed a BitTorrent client. (I&#8217;ve checked.) I can also guarantee that there are no foreign clients on my network. (I&#8217;ve checked.) And of course, I can guarantee that none of this BitTorrent traffic is related to me because I haven&#8217;t torrented anything since CentOS 6 (about two years ago, before I had a satellite connection) and I don&#8217;t even have a BitTorrent client on my computer.<\/p>\n<p>Now, assuming that all this mystery traffic is BitTorrent traffic based on a few BitTorrent handshakes is a stretch. However, this past March, I noticed similar &#8220;mystery&#8221; traffic, although it was only a trickle: a few BitTorrent DHT packets per minute. Of course, this time, the rate was much higher, and there were many more other hosts involved: while analyzing last night&#8217;s capture, Wireshark counted over <em><strong>2000<\/strong><\/em> IP endpoints from a 20-minute period.\u00a0 I&#8217;d say BitTorrent is a decent guess.<\/p>\n<p>The question is: why? My theory is that my modem was given a new IP address when the outage was over and the outage must have been short enough for HughesNet&#8217;s CGN system to not drop open the BitTorrent connections that had been destined for whomever had this IP address immediately prior to me.<\/p>\n<p>It makes me wonder how many Internet users are under scrutiny for the actions of the user who was previously using their dynamic IP address.<\/p>\n<p>In the end, I rebooted the modem. (Again, I should&#8217;ve done this earlier, but if I hadn&#8217;t, then you wouldn&#8217;t be reading this article.) I did the elegant thing by yanking the power cord out of the wall, waiting five minutes, and plugging it back in. When the modem reinitialized itself, it had a new IP address. Lo and behold, my idle traffic was back down to about 0Kbit\/s&#8211;where it should be. My packet loss went back to 0%, where it should be, and I have yet to see a Connection Reset message from Firefox. Now, 50KBit\/s doesn&#8217;t explain the RSTs or the packet loss. My guess here is that whatever IP Gateway (CGN box) with which the modem associated is overloaded by BitTorrent traffic. But that&#8217;s just a guess.<\/p>\n<p>Now, anything connected to the Internet is going to see <em>some<\/em> unsolicited traffic. It&#8217;s inevitable. Port scanners are a constant nuisance, for instance. Even on dialup, my router often recorded port scanning attempts. (Once, when I had made the mistake of running SSH on port 22, I found that a bot had spent a considerable amount of time trying to log in to my router with common username\/password combinations. On <em>dialup<\/em>.) However, on metered connections, this traffic is still counted.<\/p>\n<p>Maybe this is a cause of some of the &#8220;phantom download&#8221; posts on the HughesNet community support forums?<\/p>\n<p>EDIT:<\/p>\n<p>Yes, the download was counted; HughesNet reports 6-13MB\/hr last night (when nothing was running) while my baseline is usually around 80KB\/hr. Owch!<\/p>\n<p>I captured a few handshakes with a few BitTorrent &#8220;hashes&#8221; (?) inside. For your amusement, here&#8217;s what people were apparently downloading with this IP address before the outage occurred and the IP was leased to me:<\/p>\n<ul>\n<li>The Eagle&#8217;s Greatest Hits<\/li>\n<li>Sons of Anarchy, the Complete Season 5, HD<\/li>\n<li>The Ultimate Best of Pearl Jam<\/li>\n<li>The Walking Dead Season 2<\/li>\n<li>The Walking Dead Season 3 Episode 4<\/li>\n<li>John Mayer &#8211; Paradise Valley<\/li>\n<li>Philip Phillips &#8211; The World from the Side of the Moon<\/li>\n<li>Young Jeezy &#8211; TM103 Hustler&#8217;s Ambition<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Earlier this week, HughesNet scheduled a maintenance outage to do whatever it is that they need to do for maintenance (which, in the past, has included replacing equipment damaged by golf-ball sized hail at the ground stations). When the connection came back up early the next morning, it was plagued by mysterious and intermittent RSTs &#8230; <a class=\"moretag\" href=\"https:\/\/jacksontech.net\/index.php\/2013\/08\/ghost-traffic-aka-other-peoples-bittorrent-traffic-aka-it-wasnt-me-officer\/\">more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,3,4],"tags":[12,8,6],"class_list":["post-172","post","type-post","status-publish","format-standard","hentry","category-comptech","category-linux","category-networking","category-security","tag-bittorrent","tag-hughesnet","tag-satellite"],"_links":{"self":[{"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":16,"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"predecessor-version":[{"id":722,"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/posts\/172\/revisions\/722"}],"wp:attachment":[{"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jacksontech.net\/index.php\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}