<?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>Setup &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/setup/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Wed, 23 Feb 2022 11:08:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Setup &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Configure and Properly Set Up Fail2ban on Debian 11</title>
		<link>https://help.hostry.com/knowledge-base/how-to-configure-and-properly-set-up-fail2ban-on-debian-11/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-configure-and-properly-set-up-fail2ban-on-debian-11/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 23 Feb 2022 11:08:08 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4742</guid>

					<description><![CDATA[Fail2Ban is a great and very useful tool that scans log files (eg /var/log/apache/error_log ) and blocks IP addresses that show signs of malware &#8211; too many bad passwords, search for exploits and others. This article will focus on a Linux server running on Debian 11. Preliminary Actions First you [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.fail2ban.org/wiki/index.php/Main_Page">Fail2Ban</a></strong> is a great and very useful tool that scans log files (eg /var/log/apache/error_log ) and blocks IP addresses that show signs of malware &#8211; too many bad passwords, search for exploits and others. This article will focus on a Linux server running on Debian 11. </p>



<h2 id="preliminary-actions" >Preliminary Actions</h2>



<p>First you need to update your server. To do this, enter a simple command:</p>



<pre class="wp-block-code"><code>apt update &amp;&amp; upgrade</code></pre>



<p>It is worth noting that the installation is not difficult, since <strong>Fail2Ban</strong> is already included in the repositories of your Debian 11. Installation is easy, just enter the command:</p>



<pre class="wp-block-code"><code>apt install fail2ban</code></pre>



<p>After you set it up, please check. The verification step is extremely important for making future adjustments:</p>



<pre class="wp-block-code"><code>systemctl status fail2ban</code></pre>



<p>If <strong>Fail2ban</strong> is not running on your instance, you need to run it. This can be done with the following command:</p>



<pre class="wp-block-code"><code>systemctl start fail2ban</code></pre>



<p>Next, move on to configuring <strong>Fail2ban</strong>. This is necessary for proper launch. Enter the following command:</p>



<pre class="wp-block-code"><code>systemctl enable fail2ban</code></pre>



<h2 id="configuring-fail2ban" >Configuring Fail2Ban</h2>



<p>If the first installation step was successfully completed and verified, then you can proceed to the Fail2ban configuration. Fail2ban is installed bundled with a default configuration file. This file contains configurable settings in Fail2ban. The file location is as follows:</p>



<pre class="wp-block-code"><code>/etc/fail2ban/jail.conf</code></pre>



<p>The file contains settings known as filters for configuring Fail2ban. This tool also has many options in its configuration file. These options can be useful for specific scripts and services that work with each other on your Linux machine.</p>



<ul><li>The <strong>bantime</strong> value is the exact time during which the malicious IP is blocked</li><li>The <strong>maxretry</strong> value &#8211; The number of times the user will try to login. If the limit is exceeded, the IP address is blocked.</li><li>The <strong>ignoreip</strong> value is the networks you trust. All networks you enter here will bypass Fai2Ban filtering.</li><li>The<strong> enable</strong> value allows Fail2ban to confirm whether you want this jail to be enabled or disabled.</li></ul>



<p>Next is to talk about <strong>jails</strong>. It has an individual customization option. Jails can increase the security of your Linux computer in many ways. You can add different filters to your server services. The first step is to create the jail.local configuration file. You can do it like this:</p>



<pre class="wp-block-code"><code>touch /etc/fail2ban/jail.local</code></pre>



<p>Open <strong>jail.local</strong> in a text editor of your choice.</p>



<pre class="wp-block-code"><code>nano /etc/fail2ban/jail.local.</code></pre>



<p>After the clarifications above have been provided regarding hail conf. you will be able to apply this directly to the configuration.</p>



<pre class="wp-block-code"><code>enabled = true
port = ssh
bantime = 10h
maxretry = 12
ignoreip = Any_IP

&#91;apache-badbots]
enabled = true
port = http,https, smtp...
bantime = 72h
maxretry = 3

&#91;squid]
enabled = false
port = 80,443,25, 1234...</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-configure-and-properly-set-up-fail2ban-on-debian-11/feed/</wfw:commentRss>
			<slash:comments>457</slash:comments>
		
		
			</item>
		<item>
		<title>How to Setup Node.js Persistent Applications on Ubuntu 18.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-setup-node-js-persistent-applications-on-ubuntu-18-04/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 01 Jun 2021 07:29:06 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3826</guid>

					<description><![CDATA[Based on the Chrome V8 Engine, Node.js is a popular language used to build highly scalable applications. He is already involved in many projects. Node.js applications are popular for their scalability. Running multiple concurrent processes on multiple servers reduces latency and increases uptime. This article will guide you through how [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Based on the Chrome V8 Engine, <strong>Node.js</strong> is a popular language used to build highly scalable applications. He is already involved in many projects. Node.js applications are popular for their scalability. Running multiple concurrent processes on multiple servers reduces latency and increases uptime. This article will guide you through how you can set up saving an application. The guide targets <em>Ubuntu</em> <strong>18.04</strong> and also <strong>20.04</strong> servers.</p>



<h2 id="install-node-js" >Install Node.js.</h2>



<p>In order to install Node.js you need to enter the following:</p>



<pre class="wp-block-code"><code>apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install -y nodejs</code></pre>



<h2 id="install-yarn" >Install Yarn</h2>



<p>Yarn is Facebook&#8217;s very easy-to-use package manager for Node.js packages. Recommended for installation! This can be done as follows:</p>



<pre class="wp-block-code"><code>curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt-get update &amp;&amp; apt-get install yarn</code></pre>



<h2 id="install-node-js-app" >Install Node.js app</h2>



<p>If your application is hosted in a git repository, you need to clone it and then use the command:</p>



<pre class="wp-block-code"><code>yarn install</code></pre>



<p>Then you install <strong>Process Manager 2</strong>. This is a special package that automatically launches applications. It is a very reliable tool; proof of this is that this tool is used by <strong>PayPal</strong>, <strong>Microsoft</strong>. You can install it using the following command:</p>



<pre class="wp-block-code"><code>yarn global add pm2</code></pre>



<p>The next step is to add the application as your personal process. It will run in background mode. To do this, you can use the following command:</p>



<pre class="wp-block-code"><code>pm2 start &#91;path to your entry.js] -i max</code></pre>



<h2 id="automatically-launch-the-app-at-boot-mode" >Automatically Launch the App at Boot Mode</h2>



<p>After starting the application, save the application configuration. Then run the startup command to automatically start Process Manager 2 in the background when you boot Ubuntu. For <strong>Ubuntu</strong> 16.04 Process Manager 2 will bind to <strong>systemd</strong></p>



<pre class="wp-block-code"><code>pm2 save
pm2 startup </code></pre>



<p>After successfully entering these commands, the Node.js application will crash due to an error, it will restart then immediately automatically. However, if Ubuntu crashes for any reason, the process will automatically restart from Ubuntu</p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
