<?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>VV&#039;s Corner &#187; linux</title>
	<atom:link href="http://vinoaj.com/blog/category/howtos/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinoaj.com/blog</link>
	<description>my collection of random thoughts, how-to&#039;s and code snippets</description>
	<lastBuildDate>Sat, 04 Dec 2010 15:05:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>scp Usage</title>
		<link>http://vinoaj.com/blog/2007/07/scp-usage/</link>
		<comments>http://vinoaj.com/blog/2007/07/scp-usage/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 11:34:03 +0000</pubDate>
		<dc:creator>vinoaj</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/howtos/scp-usage/</guid>
		<description><![CDATA[Secure File Copy (scp) allows you to copy files between hosts using the SSH protocol. To copy from a remote host to your current host PLAIN TEXT PERL: scp -r user@remotehost:path/to/remotefiles localtarget &#160; #-r recursive copy #you will be prompted for user's password @ remotehost To copy files from your current host across to the [...]]]></description>
			<content:encoded><![CDATA[<p>Secure File Copy (scp) allows you to copy files between hosts using the SSH protocol.</p>
<p>To copy from a remote host to your current host</p>
<div class="igBar"><span id="lperl-3"><a href="#" onclick="javascript:showPlainTxt('perl-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-3">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">scp -r user<span style="color: #0000ff;">@remotehost</span>:path/to/remotefiles localtarget</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#-r recursive copy</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#you will be prompted for user's password @ remotehost </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>To copy files from your current host across to the remote host</p>
<div class="igBar"><span id="lperl-4"><a href="#" onclick="javascript:showPlainTxt('perl-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-4">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">scp -r localfiles user<span style="color: #0000ff;">@remotehost</span>:path/to/remotetarget </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2007/07/scp-usage/&via=vinoaj&text=scp Usage&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2007/07/scp-usage/&via=vinoaj&text=scp Usage&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2007/07/scp-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and setting up bfd</title>
		<link>http://vinoaj.com/blog/2007/04/installing-and-setting-up-bfd/</link>
		<comments>http://vinoaj.com/blog/2007/04/installing-and-setting-up-bfd/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 20:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://vinoaj.com/blog/howtos/linux/linux-security/installing-and-setting-up-bfd/</guid>
		<description><![CDATA[BFD (brute force detector) is an excellent package by rfxnetworks that works hand-in-hand with the APF firewall package to automatically detect and put an end to brute force access attempts. BFD works by monitoring for excessive access attempts via ssh. If it does detect attempts, it places the offender's IP in APF's deny hosts file. [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>BFD </strong></em>(brute force detector) is an excellent package by <a href="http://www.rfxnetworks.com" title="rfxnetworks" target="_blank">rfxnetworks</a> that works hand-in-hand with the <strong>APF </strong>firewall package to automatically detect and put an end to brute force access attempts.  BFD works by monitoring for excessive access attempts via ssh.  If it does detect attempts, it places the offender's IP in APF's deny hosts file. Thus APF automatically drops packets from the offender and cuts them off from the server.</p>
<p>cd to a temp folder with exec permissions</p>
<p><code>wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz<br />
tar -xvzf bfd-current.tar.gz<br />
cd bfd*<br />
./install.sh</code></p>
<p><code>.: BFD installed<br />
Install path:    /usr/local/bfd<br />
Config path:     /usr/local/bfd/conf.bfd<br />
Executable path: /usr/local/sbin/bfd</code></p>
<p>Edit the configuration file located at <code>/usr/local/bfd/conf.bfd</code></p>
<p><code>Change ALERT_USR="0" TO ALERT_USR="1"<br />
Change EMAIL_USR="root" TO EMAIL_USR="you@yoursite.com"<br />
(if you wish to receive alert e-mails at an address other than root's)</code></p>
<p>Now add your IP address to BFD's list of ignore hosts.  This prevents you from getting locked out of your server in the future.<br />
edit <code>/usr/local/bfd/ignore.hosts</code><br />
Add any IP address that you want to be ignored from the rules - e.g. your IP, server provider's monitoring services, authorised users' IPs, etc.<br />
A good rule of thumb is to copy the list of IPs already in apf's allow_hosts.conf file.  If you are already allowing these addresses through the firewall, it is more than likely that you also want to ignore them from bfd's monitoring.</p>
<p><code>/usr/local/sbin/bfd -s</code></p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2007/04/installing-and-setting-up-bfd/&via=vinoaj&text=Installing and setting up bfd&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://vinoaj.com/blog/2007/04/installing-and-setting-up-bfd/&via=vinoaj&text=Installing and setting up bfd&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://vinoaj.com/blog/2007/04/installing-and-setting-up-bfd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

