<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #843: 8.8.8.8 (US/United States/google-public-dns-a.google.com) blocked for port scanning</title>
    <link>http://localhost:8080/trac/ticket/843</link>
    <description>&lt;p&gt;
Never seen this before:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Date: Tue,  7 Apr 2015 23:46:09 +0100 (BST)
From: root@puffin.webarch.net
To: chris@webarchitects.co.uk
Subject: lfd on puffin.webarch.net: 8.8.8.8 (US/United States/google-public-dns-a.google.com) blocked for port scanning
Time:    Tue Apr  7 23:46:09 2015 +0000
IP:      8.8.8.8 (US/United States/google-public-dns-a.google.com)
Hits:    20
Blocked: Temporary Block
Sample of block hits:
Apr  7 23:45:36 puffin kernel: [19823338.636822] Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=00:16:3e:19:68:02:00:12:1e:13:6c:db:08:00 SRC=8.8.8.8 DST=81.95.52.103 LEN=162 TOS=0x00 PREC=0x00 TTL=45 ID=65064 PROTO=UDP SPT=53 DPT=48825 LEN=142
&lt;/pre&gt;&lt;p&gt;
I thought set the Google DNS servers for the machine via   /etc/resolv.conf but that contains:
&lt;/p&gt;
&lt;pre class="wiki"&gt;# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
&lt;/pre&gt;&lt;p&gt;
There is /etc/resolvconf/resolv.conf.d/original containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;nameserver 8.8.8.8
nameserver 8.8.4.4
&lt;/pre&gt;&lt;p&gt;
But I don't know what DNS resolver BOA has installed and the server is using.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/843</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 07 Apr 2015 23:24:18 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/843#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/843#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Following &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#Falsepositives"&gt;wiki:PuffinServer#Falsepositives&lt;/a&gt; I have unblocked Google's DNS server:
&lt;/p&gt;
&lt;pre class="wiki"&gt;csf -g 8.8.8.8
Chain            num   pkts bytes target     prot opt in     out     source               destination
DENYIN           101    172 20183 DROP       all  --  !lo    *       8.8.8.8              0.0.0.0/0
Temporary Blocks: IP:8.8.8.8 Port: Dir:in TTL:3600 (lfd - *Port Scan* detected from 8.8.8.8 (US/United States/google-public-dns-a.google.com). 20 hits in the last 101 seconds)
csf -dr 8.8.8.8
csf: 8.8.8.8 not found in csf.deny
 csf -g 8.8.8.8
Chain            num   pkts bytes target     prot opt in     out     source               destination
DENYIN           101    173 20211 DROP       all  --  !lo    *       8.8.8.8              0.0.0.0/0
Temporary Blocks: IP:8.8.8.8 Port: Dir:in TTL:3600 (lfd - *Port Scan* detected from 8.8.8.8 (US/United States/google-public-dns-a.google.com). 20 hits in the last 101 seconds)
&lt;/pre&gt;&lt;p&gt;
So that didn't work... tried editing /etc/csf/csf.allow to add:
&lt;/p&gt;
&lt;pre class="wiki"&gt;8.8.8.8 # google.com dns see https://trac.transitionnetwork.org/trac/ticket/843
&lt;/pre&gt;&lt;p&gt;
And restarted:
&lt;/p&gt;
&lt;pre class="wiki"&gt;csf -r
&lt;/pre&gt;&lt;p&gt;
But no joy:
&lt;/p&gt;
&lt;pre class="wiki"&gt;iptables -v -L -n --line-numbers | grep 8.8.8.8
1        0     0 ACCEPT     all  --  !lo    *       8.8.8.8              0.0.0.0/0
1        0     0 ACCEPT     all  --  *      !lo     0.0.0.0/0            8.8.8.8
101      0     0 DROP       all  --  !lo    *       8.8.8.8              0.0.0.0/0
iptables -D INPUT 101
iptables: Index of deletion too big.
&lt;/pre&gt;&lt;p&gt;
I'm at a bit of a loss here, will see if it resolves itself to save spending too much time on this...
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 09 Apr 2015 10:13:02 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/843#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/843#comment:2</guid>
      <description>
        &lt;p&gt;
The temp block of the Google DNS server was lifted:
&lt;/p&gt;
&lt;pre class="wiki"&gt;iptables -v -L -n --line-numbers | grep 8.8.8.8
1      142 16403 ACCEPT     all  --  !lo    *       8.8.8.8              0.0.0.0/0
1      167 13104 ACCEPT     all  --  *      !lo     0.0.0.0/0            8.8.8.8
&lt;/pre&gt;&lt;pre class="wiki"&gt; csf -g 8.8.8.8
Chain            num   pkts bytes target     prot opt in     out     source               destination
ALLOWIN          1      142 16403 ACCEPT     all  --  !lo    *       8.8.8.8              0.0.0.0/0
ALLOWOUT         1      167 13104 ACCEPT     all  --  *      !lo     0.0.0.0/0            8.8.8.8
&lt;/pre&gt;&lt;p&gt;
I still have no idea why the Google DNS server tried to connect, multiple times, to port 45 via UDP.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 15 Apr 2015 13:42:13 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/843#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/843#comment:3</guid>
      <description>
        &lt;p&gt;
Other people have had issues with CSF/LFD and DNS servers, see &lt;a class="ext-link" href="https://github.com/omega8cc/boa/issues/685"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/omega8cc/boa/issues/685&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 16 Apr 2015 12:28:10 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/843#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/843#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
When we upgrade to the next version of BOA, on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/844" title="maintenance: Stable BOA 2.4.2 Release (closed: fixed)"&gt;ticket:844&lt;/a&gt;, then we will get a new, checked, version of csf/lfd from BOA's servers rather than &lt;a class="ext-link" href="http://www.configserver.com/cp/csf.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;configserver.com&lt;/a&gt;, see &lt;a class="ext-link" href="https://github.com/omega8cc/boa/commit/66ee7236e835363440f4dec98eb7b884eb425fee"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;this diff&lt;/a&gt;. In anticipation of that solving this issue I'm closing this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>