<?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>Inspircd Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/inspircd/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 09 Jul 2021 22:39:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Your own IRC Server with Inspircd on Debian 10</title>
		<link>https://www.osradar.com/irc-server-inspircd-debian-10/</link>
					<comments>https://www.osradar.com/irc-server-inspircd-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 22:34:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Inspircd]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31138</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to deploy your own IRC server by installing Inspircd on Debian 10. The process is very easy and gives us many advantages that we can take advantage of in our institution. First of all, it is important to remember that it is IRC. Internet Relay Chat [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/irc-server-inspircd-debian-10/">Your own IRC Server with Inspircd on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. In this post, you will learn how to deploy your own IRC server by installing Inspircd on Debian 10. The process is very easy and gives us many advantages that we can take advantage of in our institution.</p>



<p class="has-line-data">First of all, it is important to remember that it is IRC. Internet Relay Chat is a real-time communications protocol. Using IRC, users should not establish communication beforehand, so that all users on a channel can communicate with each other, even if they have had no previous contact. Widely used for discussions and technical support of many open source projects.</p>



<h2 class="code-line"><a id="Install_Inspircd_on_Debian_10_4"></a>Install Inspircd on Debian 10</h2>



<p class="has-line-data">The first thing to do is to connect to the server via <a href="https://www.osradar.com/manages-ssh-connections-from-windows-10-with-putty/" target="_blank" rel="noreferrer noopener">SSH</a>. After that, upgrading the system is always a good option.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">With the system upgraded, we can start the installation of Inspircd on Debian 10. Fortunately, the package is in the official Debian 10 repositories so to install it, just run</p>



<pre class="wp-block-preformatted">sudo apt install inspircd
Reading package lists… Done
 Building dependency tree
 Reading state information… Done
 The following additional packages will be installed:
   libmariadb3 libpq5 libtre5 mariadb-common mysql-common
 Suggested packages:
   sqlite3 default-mysql-server ldap-server postgresql gnutls-bin tre-agrep
 The following NEW packages will be installed:
   inspircd libmariadb3 libpq5 libtre5 mariadb-common mysql-common
 0 upgraded, 6 newly installed, 0 to remove and 26 not upgraded.
 Need to get 1,848 kB of archives.
 After this operation, 11.8 MB of additional disk space will be used.
 Do you want to continue? [Y/n]</pre>



<p class="has-line-data">This way, we will be able to use it and configure it for our instance.</p>



<h3 class="code-line"><a id="Configuring_Inspircd_on_Debian_10_17"></a>Configuring Inspircd on Debian 10</h3>



<p class="has-line-data">The program as such is installed, but before using it we have to configure it.</p>



<p class="has-line-data">First, on our system, we have to open ports <code>22</code> and <code>6667</code> where the application works.</p>



<p class="has-line-data">Then, we have to examine the <code>/etc/inspircd/inspircd.conf</code> file which is where all the application configuration resides. It is a long file, but very well structured so we should have no problems editing it.</p>



<p class="has-line-data">Before making any changes, make a backup of it.</p>



<pre class="wp-block-preformatted">sudo cp /etc/inspircd/inspircd.conf /etc/inspircd/inspircd.conf.bak</pre>



<p class="has-line-data">Now, yes, we can edit it.</p>



<pre class="wp-block-preformatted">sudo nano /etc/inspircd/inspircd.conf</pre>



<p class="has-line-data">In the <code>server</code> tab you have to configure the basics of the instance. In our chaos, we have left it as follows.</p>



<pre class="wp-block-preformatted">&lt;server name="osradatest.ga"
    description="Example IRC Server"
    id="1AB"
    network="The osradar net"></pre>



<p class="has-line-data">Replace the <code>name</code> value with your domain and <code>network</code> with your network name. Set a description and leave the value of <code>id</code> as is.</p>



<p class="has-line-data">Now in the <code>admin</code> tag create the admin user. Set a name, nickname, and email address.</p>



<pre class="wp-block-preformatted">&lt;admin name="Example User"
    nick="example-user"
    email="example-user@example-email.com"></pre>



<p class="has-line-data">Then locate the <code>bind</code> tag and here we have the <code>address</code> values where the server will be available. If you leave it blank, it will be accessible from any host which is desired if you want it to be available via the internet. The other <code>ports</code> value is to define the listening port which by default is <code>6667</code> and in <code>type</code> leave it <code>clients</code>.</p>



<pre class="wp-block-preformatted">&lt;bind address="" port="6667" type="clients"></pre>



<p class="has-line-data">The admin user can shut down or restart the server. But to do this he has to enter a password which we can define in the <code>power</code> tag in the <code>diepass</code> and <code>restartpass</code> values.</p>



<pre class="wp-block-preformatted">&lt;power diepass="shutdown-password" restartpass="restart-password" pause="2"></pre>



<p class="has-line-data">After this, he creates an operator user in the <code>oper</code> tag. Again, in the <code>host</code> value he can define from which location he can log in. In my case, I have left it accessible from any host, but a good practice would be to limit it to <code>localhost</code> or a specific IP. Also, set a password and leave the <code>type</code> in <code>NetAdmin</code>.</p>



<pre class="wp-block-preformatted">&lt;oper name="example-user"
    password="password"
    host="*@*"
    type="NetAdmin"></pre>



<p class="has-line-data">We won’t touch anything else, for now, so save your changes and close the editor.</p>



<p class="has-line-data">Now, you should edit these two files. The first one is <code>/etc/inspircd/inspircd.motd</code> which will serve as the first message. And the other one is <code>/etc/inspircd/inspircd.rules</code> where you can set rules for behaviours that can be displayed from a client.</p>



<p class="has-line-data">To apply the changes, you have to restart the program.</p>



<pre class="wp-block-preformatted">sudo systemctl restart inspircd</pre>



<p class="has-line-data">And you can check the status of it</p>



<pre class="wp-block-preformatted">sudo systemctl status inspircd
● inspircd.service - IRC server
    Loaded: loaded (/lib/systemd/system/inspircd.service; enabled; vendor preset: enabled)
    Active: active (running) since Fri 2021-07-09 18:26:07 CEST; 14s ago
      Docs: man:inspircd(1)
  Main PID: 2711 (inspircd)
     Tasks: 1 (limit: 2296)
    Memory: 2.1M
    CGroup: /system.slice/inspircd.service
            └─2711 /usr/sbin/inspircd --logfile /var/log/inspircd.log --config /etc/inspircd/inspircd.conf --nofork
 Jul 09 18:26:07 osradar systemd[1]: Started IRC server.
 Jul 09 18:26:07 osradar inspircd[2711]: Inspire Internet Relay Chat Server
 Jul 09 18:26:07 osradar inspircd[2711]: (C) InspIRCd Development Team.
 Jul 09 18:26:07 osradar inspircd[2711]: Developers:
 Jul 09 18:26:07 osradar inspircd[2711]:         Brain, FrostyCoolSlug, w00t, Om, Special, peavey
 Jul 09 18:26:07 osradar inspircd[2711]:         aquanight, psychon, dz, danieldg, jackmcbarn
 Jul 09 18:26:07 osradar inspircd[2711]:         Attila
 Jul 09 18:26:07 osradar inspircd[2711]: Others:                        See /INFO Output
 Jul 09 18:26:07 osradar inspircd[2711]: Loading core commands……………………………………………..
 Jul 09 18:26:07 osradar inspircd[2711]: InspIRCd is now running as 'osradartest.ga'[1AB] with 1024 max open sockets</pre>



<h2 class="code-line"><a id="Testing_the_installation_57"></a>Testing the installation</h2>



<p class="has-line-data">The best way to find out if everything went well is to run a client. In this case, we have chosen <code>weechat</code> as it is terminal and lightweight. Ideal for testing.</p>



<p class="has-line-data">So, install it on Ubuntu and Debian running</p>



<pre class="wp-block-preformatted">sudo apt install weechat</pre>



<p class="has-line-data">Run it</p>



<pre class="wp-block-preformatted">weechat</pre>



<p class="has-line-data">Now add our server by running</p>



<pre class="wp-block-preformatted">/server add [server-alias] [your-domain]</pre>



<p class="has-line-data">When added, you can connect via</p>



<pre class="wp-block-preformatted">/connect [server-alias]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="586" src="https://www.osradar.com/wp-content/uploads/2021/07/1-3-1024x586.png" alt="1.- InspIRC on debian 10" class="wp-image-31195" srcset="https://www.osradar.com/wp-content/uploads/2021/07/1-3-1024x586.png 1024w, https://www.osradar.com/wp-content/uploads/2021/07/1-3-300x172.png 300w, https://www.osradar.com/wp-content/uploads/2021/07/1-3-768x440.png 768w, https://www.osradar.com/wp-content/uploads/2021/07/1-3-696x399.png 696w, https://www.osradar.com/wp-content/uploads/2021/07/1-3-1068x612.png 1068w, https://www.osradar.com/wp-content/uploads/2021/07/1-3.png 1294w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- InspIRC on debian 10</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="443" src="https://www.osradar.com/wp-content/uploads/2021/07/2-2-1024x443.png" alt="2.- Weechat working with InspIRC on debian 10" class="wp-image-31196" srcset="https://www.osradar.com/wp-content/uploads/2021/07/2-2-1024x443.png 1024w, https://www.osradar.com/wp-content/uploads/2021/07/2-2-300x130.png 300w, https://www.osradar.com/wp-content/uploads/2021/07/2-2-768x332.png 768w, https://www.osradar.com/wp-content/uploads/2021/07/2-2-696x301.png 696w, https://www.osradar.com/wp-content/uploads/2021/07/2-2-1068x462.png 1068w, https://www.osradar.com/wp-content/uploads/2021/07/2-2.png 1207w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Weechat working with InspIRC on debian 10</figcaption></figure>



<p class="has-line-data">If you need to, you can connect as an operator user.</p>



<pre class="wp-block-preformatted">/oper [server-alias][password]</pre>



<p class="has-line-data">As you can see in the screenshots, everything went fine.</p>



<h2 class="code-line"><a id="Recommended_Securing_the_server_with_SSL_certification_83"></a>Recommended: Securing the server with SSL certification</h2>



<p class="has-line-data">To secure your communications you should obtain and add SSL certificates using Certbot.</p>



<p class="has-line-data">So, install it.</p>



<pre class="wp-block-preformatted">sudo apt install certbot</pre>



<p class="has-line-data">and get a certificate for your domain</p>



<pre class="wp-block-preformatted">sudo certbot certonly --standalone --preferred-challenges http -d [your-domain]</pre>



<p class="has-line-data">And now to add it to the program and secure the connection, create a folder for it inside the program settings</p>



<pre class="wp-block-preformatted">sudo mkdir /etc/inspircd/ssl</pre>



<p class="has-line-data">Then, copy the obtained certificates to this folder</p>



<pre class="wp-block-preformatted">sudo cp /etc/letsencrypt/live/[your-domain]/fullchain.pem /etc/inspircd/ssl/cert.pem
sudo cp /etc/letsencrypt/live/[your-domain]/privkey.pem /etc/inspircd/ssl/key.pem</pre>



<p class="has-line-data">Now make the <code>irc</code> user the owner of that folder to prevent others from taking advantage of it.</p>



<pre class="wp-block-preformatted">sudo chown -R irc:irc /etc/inspircd</pre>



<p class="has-line-data">Now in the Inspircd configuration file, you need to add the following information</p>



<pre class="wp-block-preformatted">sudo nano /etc/inspircd/inspircd.conf</pre>



<p class="has-line-data">And under the <code>bind</code> tag add the following.</p>



<pre class="wp-block-preformatted">&lt;gnutls
    certfile="/etc/inspircd/ssl/cert.pem"
    keyfile="/etc/inspircd/ssl/key.pem"
    priority="SECURE192:-VERS-SSL3.0">
&lt;module name="m_ssl_gnutls.so"></pre>



<p class="has-line-data">In short, we are just indicating the location of the certificates.</p>



<p class="has-line-data">Save the changes and restart the service</p>



<pre class="wp-block-preformatted">sudo systemctl restart inspircd</pre>



<p class="has-line-data">And now to connect, remove the previous alias in <code>weechat</code>.</p>



<pre class="wp-block-preformatted">/server from the [alias]</pre>



<p class="has-line-data">When using SSL the port to use is 6697 which you have to open in the firewall and add another alias as follows.</p>



<pre class="wp-block-preformatted">/server add [alias] [your-domain]/6697 -ssl</pre>



<p class="has-line-data">And then connect again.</p>



<p class="has-line-data">So, enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_134"></a>Conclusion</h2>



<p class="has-line-data">In this post, you learned how to install an IRC server using Inspircd. This way you can create one and manage it without any problems.</p>



<p>More info: <a href="https://docs.inspircd.org/" target="_blank" rel="noreferrer noopener">Official Documentation</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/irc-server-inspircd-debian-10/">Your own IRC Server with Inspircd on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/irc-server-inspircd-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
