<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Network Security with tcpwrappers (hosts.allow and hosts.deny)</title>
	<atom:link href="http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/</link>
	<description>Enhancing your Ubuntu experience!</description>
	<lastBuildDate>Fri, 11 May 2012 05:04:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Christer Edwards</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-11152</link>
		<dc:creator>Christer Edwards</dc:creator>
		<pubDate>Tue, 08 Jun 2010 23:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-11152</guid>
		<description>I don&#039;t believe the commas are proper syntax. I generally break my lines up, for readability:

&lt;code&gt;
ALL : 127.0.0.1 : allow
ALL : 3.21. : allow
ALL : 23.10 : allow
&lt;/code&gt;

The allow appended to the end is not required, but technically the hosts.deny file is deprecated so it is &quot;proper&quot; to define :allow or :deny explicitly for each line.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t believe the commas are proper syntax. I generally break my lines up, for readability:</p>
<p><code><br />
ALL : 127.0.0.1 : allow<br />
ALL : 3.21. : allow<br />
ALL : 23.10 : allow<br />
</code></p>
<p>The allow appended to the end is not required, but technically the hosts.deny file is deprecated so it is &#8220;proper&#8221; to define :allow or :deny explicitly for each line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sjoshi</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-11150</link>
		<dc:creator>sjoshi</dc:creator>
		<pubDate>Tue, 08 Jun 2010 22:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-11150</guid>
		<description>I am troubleshooting a networking problem and i wand to find out if the following line in the hosts.allow is correct or not?
ALL:127.0.0.1,3.21.,23.10.:allow

One thing I don&#039;t understand is why is there &quot;:allow&quot; at the end?  What if I remove it?  It is a typo?
Thanks.</description>
		<content:encoded><![CDATA[<p>I am troubleshooting a networking problem and i wand to find out if the following line in the hosts.allow is correct or not?<br />
ALL:127.0.0.1,3.21.,23.10.:allow</p>
<p>One thing I don&#8217;t understand is why is there &#8220;:allow&#8221; at the end?  What if I remove it?  It is a typo?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: texaslabrat</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-9321</link>
		<dc:creator>texaslabrat</dc:creator>
		<pubDate>Wed, 29 Jul 2009 15:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-9321</guid>
		<description>@Paul:

No, in Ubuntu (at least in 8.04, anyway) the binary is actually called apache2 as noted in the article:

texaslabrat@ratnest:~$ which httpd
texaslabrat@ratnest:~$ which apache2
/usr/sbin/apache2
texaslabrat@ratnest:~$ ls -asl /usr/sbin/apache2
412 -rwxr-xr-x 1 root root 414016 2009-07-10 13:57 /usr/sbin/apache2

@Gary:
Have you tried putting your work IP address in the hosts.allow file?  The allow file is searched first, and tcpwrappers stops at the first match.  And I don&#039;t know about your implementation, but my denyhosts database appears to be in /var/lib/denyhosts:
texaslabrat@ratnest:/var/lib/denyhosts$ ls
hosts             hosts-root   offset             users-hosts    users-valid
hosts-restricted  hosts-valid  suspicious-logins  users-invalid
texaslabrat@ratnest:/var/lib/denyhosts$ cat hosts-restricted 
117.102.90.158:0:Tue Jul 28 21:47:10 2009
149.217.72.19:0:Mon Jul 27 05:32:37 2009
...</description>
		<content:encoded><![CDATA[<p>@Paul:</p>
<p>No, in Ubuntu (at least in 8.04, anyway) the binary is actually called apache2 as noted in the article:</p>
<p>texaslabrat@ratnest:~$ which httpd<br />
texaslabrat@ratnest:~$ which apache2<br />
/usr/sbin/apache2<br />
texaslabrat@ratnest:~$ ls -asl /usr/sbin/apache2<br />
412 -rwxr-xr-x 1 root root 414016 2009-07-10 13:57 /usr/sbin/apache2</p>
<p>@Gary:<br />
Have you tried putting your work IP address in the hosts.allow file?  The allow file is searched first, and tcpwrappers stops at the first match.  And I don&#8217;t know about your implementation, but my denyhosts database appears to be in /var/lib/denyhosts:<br />
texaslabrat@ratnest:/var/lib/denyhosts$ ls<br />
hosts             hosts-root   offset             users-hosts    users-valid<br />
hosts-restricted  hosts-valid  suspicious-logins  users-invalid<br />
texaslabrat@ratnest:/var/lib/denyhosts$ cat hosts-restricted<br />
117.102.90.158:0:Tue Jul 28 21:47:10 2009<br />
149.217.72.19:0:Mon Jul 27 05:32:37 2009<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vidyadhara</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-8138</link>
		<dc:creator>vidyadhara</dc:creator>
		<pubDate>Fri, 13 Mar 2009 06:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-8138</guid>
		<description>I need a script for automatic backup. I want to take a backup different ip address like this is my server ip 192.168.0.2 so i need to put a backup to 192.168.0.71.</description>
		<content:encoded><![CDATA[<p>I need a script for automatic backup. I want to take a backup different ip address like this is my server ip 192.168.0.2 so i need to put a backup to 192.168.0.71.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-7973</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 02 Mar 2009 22:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-7973</guid>
		<description>The reason you can&#039;t find apache2 in libwrap is because there is no such thing. The executable for Apache 2 is httpd.</description>
		<content:encoded><![CDATA[<p>The reason you can&#8217;t find apache2 in libwrap is because there is no such thing. The executable for Apache 2 is httpd.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gary</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-5736</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Tue, 02 Sep 2008 14:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-5736</guid>
		<description>I installed two packages Rootkit Hunter and  Chkrootkit on ubuntu 8.04 ever since that it keeps updating my /etc/hosts.deny file with a valid ip address so I cannot loggin from my work to my home server. I tried the following below but ubuntu 8.04 does not have a /usr/share/denyhosts/data/* directory
 
1. Stop DH daemon. /etc/init.d/denyhosts stop
2. Remove usr&#039;s IP from /etc/hosts.deny
3. Grep DH&#039;s data directory for usr&#039;s IP. grep &#039;xxx.xxx.xxx.xxx&#039; /usr/share/denyhosts/data/*
4. Here&#039;s the best part... Remove usr&#039;s IP from all the files that grep showed in step 3.
5. Start DH daemon. /etc/init.d/denyhosts start
6. Ask usr to log in now.

Step 1-5 does not work in ubuntu becuase there is no /usr/share/denyhosts/data/*

Please help 
Thanks
gary</description>
		<content:encoded><![CDATA[<p>I installed two packages Rootkit Hunter and  Chkrootkit on ubuntu 8.04 ever since that it keeps updating my /etc/hosts.deny file with a valid ip address so I cannot loggin from my work to my home server. I tried the following below but ubuntu 8.04 does not have a /usr/share/denyhosts/data/* directory</p>
<p>1. Stop DH daemon. /etc/init.d/denyhosts stop<br />
2. Remove usr&#8217;s IP from /etc/hosts.deny<br />
3. Grep DH&#8217;s data directory for usr&#8217;s IP. grep &#8216;xxx.xxx.xxx.xxx&#8217; /usr/share/denyhosts/data/*<br />
4. Here&#8217;s the best part&#8230; Remove usr&#8217;s IP from all the files that grep showed in step 3.<br />
5. Start DH daemon. /etc/init.d/denyhosts start<br />
6. Ask usr to log in now.</p>
<p>Step 1-5 does not work in ubuntu becuase there is no /usr/share/denyhosts/data/*</p>
<p>Please help<br />
Thanks<br />
gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-2321</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 04 Sep 2007 22:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-2321</guid>
		<description>You missed the coolest function of tcpwrappers and that is the spawn command. Try something like this:

sshd: ALL: spawn (echo &quot;Attempt from %h %a to %d at `date` by %u&quot; &#124; tee -a /var/log/sshd.log)</description>
		<content:encoded><![CDATA[<p>You missed the coolest function of tcpwrappers and that is the spawn command. Try something like this:</p>
<p>sshd: ALL: spawn (echo &#8220;Attempt from %h %a to %d at `date` by %u&#8221; | tee -a /var/log/sshd.log)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThaddeusQ</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-2320</link>
		<dc:creator>ThaddeusQ</dc:creator>
		<pubDate>Tue, 04 Sep 2007 15:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-2320</guid>
		<description>Joe - really good security people always believe in security in layers. Having an additional layer of security doesn&#039;t hurt and in many cases can help. Maybe my iptables rules get borked some how. In that case, it&#039;s helpful to have tcp wrappers implemented.

I think it is worth mentioning the strings command as well. Some versions of portmap use tcpwrappers, but, if you run ldd against them, you won&#039;t see that it does. Also nagios is compiled the same way.
i.e.:
strings /path/to/binary &#124; grep hosts
will show that it checks the hosts.allow and hosts.deny files.</description>
		<content:encoded><![CDATA[<p>Joe &#8211; really good security people always believe in security in layers. Having an additional layer of security doesn&#8217;t hurt and in many cases can help. Maybe my iptables rules get borked some how. In that case, it&#8217;s helpful to have tcp wrappers implemented.</p>
<p>I think it is worth mentioning the strings command as well. Some versions of portmap use tcpwrappers, but, if you run ldd against them, you won&#8217;t see that it does. Also nagios is compiled the same way.<br />
i.e.:<br />
strings /path/to/binary | grep hosts<br />
will show that it checks the hosts.allow and hosts.deny files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ubuntu Tutorials</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-2323</link>
		<dc:creator>Ubuntu Tutorials</dc:creator>
		<pubDate>Sun, 02 Sep 2007 22:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-2323</guid>
		<description>Joe - yes, iptables is a much more powerful solution.  Let&#039;s give people something they can walk with before they run with iptables :)</description>
		<content:encoded><![CDATA[<p>Joe &#8211; yes, iptables is a much more powerful solution.  Let&#8217;s give people something they can walk with before they run with iptables <img src='http://ubuntu-tutorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Terranova</title>
		<link>http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/#comment-2322</link>
		<dc:creator>Joe Terranova</dc:creator>
		<pubDate>Sun, 02 Sep 2007 21:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://ubuntu-tutorials.com/?p=433#comment-2322</guid>
		<description>Though not as user-friendly, ip tables is a much more efficient solution; it works at a layer lower, and also doesn&#039;t depend on tcp wrappers.</description>
		<content:encoded><![CDATA[<p>Though not as user-friendly, ip tables is a much more efficient solution; it works at a layer lower, and also doesn&#8217;t depend on tcp wrappers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (User agent is rejected)
Database Caching using disk: basic
Object Caching 318/319 objects using disk: basic

Served from: ubuntu-tutorials.com @ 2012-05-24 14:53:24 -->
