<?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>memcached Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/memcached/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 27 Nov 2018 19:25:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install and Configure memcached on Ubuntu</title>
		<link>https://www.osradar.com/install-and-configure-memcached-on-ubuntu/</link>
					<comments>https://www.osradar.com/install-and-configure-memcached-on-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Tue, 27 Nov 2018 19:25:36 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[memcached on ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7712</guid>

					<description><![CDATA[<p>You probably have heard about “memcached”, right? It’s a high-performance, distributed memory object caching server that can dramatically improve the performance of a database and web applications. Memcached is an open-source software that reduces the load on the database and thus, speeds things up. Today, let’s get memcached ready on our Ubuntu machine. Installing memcached [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-memcached-on-ubuntu/">Install and Configure memcached on Ubuntu</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You probably have heard about “memcached”, right? It’s a high-performance, distributed memory object caching server that can dramatically improve the performance of a database and web applications. Memcached is an open-source software that reduces the load on the database and thus, speeds things up.</p>
<p>Today, let’s get memcached ready on our Ubuntu machine.</p>
<h1>Installing memcached</h1>
<p>At first, make sure that your system is ready with all the latest updates.</p>
<pre class="">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>
<p><img loading="lazy" class="size-full wp-image-7717 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/mem-1.png" alt="" width="1075" height="466" srcset="https://www.osradar.com/wp-content/uploads/2018/11/mem-1.png 1075w, https://www.osradar.com/wp-content/uploads/2018/11/mem-1-300x130.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/mem-1-768x333.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/mem-1-1024x444.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/mem-1-696x302.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/mem-1-1068x463.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/mem-1-969x420.png 969w" sizes="(max-width: 1075px) 100vw, 1075px" /></p>
<p>Now, run the following command for installing memcached server –</p>
<pre class="">sudo apt install memcached</pre>
<h1><img loading="lazy" class="size-full wp-image-7718 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/mem-2.png" alt="" width="1078" height="505" srcset="https://www.osradar.com/wp-content/uploads/2018/11/mem-2.png 1078w, https://www.osradar.com/wp-content/uploads/2018/11/mem-2-300x141.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/mem-2-768x360.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/mem-2-1024x480.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/mem-2-696x326.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/mem-2-1068x500.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/mem-2-897x420.png 897w" sizes="(max-width: 1078px) 100vw, 1078px" /></h1>
<h1>Configuring memcached server</h1>
<p>For configuring the memcached server, you have to edit “memcached.conf” file. Run the following command –</p>
<pre class="">sudo gedit /etc/memcached.conf</pre>
<p><img loading="lazy" class="size-full wp-image-7719 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/mem-3.png" alt="" width="1366" height="735" srcset="https://www.osradar.com/wp-content/uploads/2018/11/mem-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/mem-3-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/mem-3-768x413.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/mem-3-1024x551.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/mem-3-696x374.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/mem-3-1068x575.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/mem-3-781x420.png 781w" sizes="(max-width: 1366px) 100vw, 1366px" /></p>
<p>At first, start up with a memory cap of 512MB –</p>
<pre class="">-m 512</pre>
<p>For connection, the default port of memcached is 11211.</p>
<pre class="">-p 11211</pre>
<p>Now, it’s time to tell which IP address to listen on. By default, the memcached server will listen to all IP addresses. This is the only parameter you can configure for security. Make sure that the server is listening to a firewalled interface.</p>
<pre class="">-l 127.0.0.1,127.0.0.2</pre>
<p>You can also cap the incoming simultaneous connections. The default daemon value is 1024. Let’s increase it to 2048.</p>
<pre class="">-c 2048</pre>
<p><img loading="lazy" class="size-full wp-image-7720 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/mem-4.png" alt="" width="1366" height="735" srcset="https://www.osradar.com/wp-content/uploads/2018/11/mem-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/mem-4-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/mem-4-768x413.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/mem-4-1024x551.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/mem-4-696x374.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/mem-4-1068x575.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/mem-4-781x420.png 781w" sizes="(max-width: 1366px) 100vw, 1366px" /></p>
<p>Now, save the file and restart the memcached server.</p>
<p>Need to verify that memcached is running? We need the “libmemcached-tools” for testing purpose.</p>
<pre class="">sudo apt install libmemcached-tools</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7721" src="https://www.osradar.com/wp-content/uploads/2018/11/mem-5.png" alt="" width="1076" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/11/mem-5.png 1076w, https://www.osradar.com/wp-content/uploads/2018/11/mem-5-300x177.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/mem-5-768x453.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/mem-5-1024x603.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/mem-5-696x410.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/mem-5-1068x629.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/mem-5-713x420.png 713w" sizes="(max-width: 1076px) 100vw, 1076px" /></p>
<p>Check if memcached connectivity is working –</p>
<pre>memcstat --servers=127.0.0.1</pre>
<h1>Restart, stop and reload memcached</h1>
<p>If you’re going to use memcached, you may need to perform the above actions.</p>
<ul>
<li>Start memcached</li>
</ul>
<pre>sudo systemctl start memcached</pre>
<ul>
<li>Stop memcached</li>
</ul>
<pre class="">sudo systemctl stop memcached</pre>
<ul>
<li>Restart memcached</li>
</ul>
<pre class="">sudo sytemctl restart memcached</pre>
<ul>
<li>Memcached status</li>
</ul>
<pre class="">sudo systemctl status memcached</pre>
<p><img loading="lazy" class="size-full wp-image-7722 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/mem-6.png" alt="" width="1073" height="337" srcset="https://www.osradar.com/wp-content/uploads/2018/11/mem-6.png 1073w, https://www.osradar.com/wp-content/uploads/2018/11/mem-6-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/mem-6-768x241.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/mem-6-1024x322.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/mem-6-696x219.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/mem-6-1068x335.png 1068w" sizes="(max-width: 1073px) 100vw, 1073px" /></p>
<p>For enjoying memcached features in other languages, you need to get additional packages –</p>
<ul>
<li>ruby-dalli (Ruby client)</li>
<li>php-memcached (PHP module)</li>
<li>python3-pymemcache (Python 3.x implementation)</li>
<li>python-memcache (Python client)</li>
<li>libcache-memcached-libmemcached-perl – (Perl for Memcached::libmemcached)</li>
</ul>
<p>Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-memcached-on-ubuntu/">Install and Configure memcached on Ubuntu</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/install-and-configure-memcached-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Mitigate DDoS from Memcached Servers</title>
		<link>https://www.osradar.com/mitigate-ddos-memcached-servers/</link>
					<comments>https://www.osradar.com/mitigate-ddos-memcached-servers/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sat, 10 Mar 2018 08:37:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[memcached]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2118</guid>

					<description><![CDATA[<p>Recently, the frequency of DDoS has reached sky-high. Thanks to the availability of Memcached servers, attackers were able to launch DDoS of ~1 terabit/s! This is HUGE and a quite big deal. Only those who are the victim can understand the situation. DDoS is generally not capable of penetrating into systems, but it can shut [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/mitigate-ddos-memcached-servers/">How to Mitigate DDoS from Memcached Servers</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently, the frequency of DDoS has reached sky-high. Thanks to the availability of Memcached servers, attackers were able to launch DDoS of ~1 terabit/s! This is HUGE and a quite big deal. Only those who are the victim can understand the situation. DDoS is generally not capable of penetrating into systems, but it can shut down a system or website for quite a long time. In business, this is a big problem. However, security researchers recently discovered tricks that can mitigate the DDoS attack damage.</p>
<p>The Memcached servers are the biggest benefit on hackers’ end. These servers can dramatically increase the load of DDoS, which is why we’re seeing terabit DDoS. Memcached servers allow super-fast access to loads of data to apps from other external databases into the cache memory. Apps can read and use data faster from there, speeding up the performance. It’s heavily used in business models for providing more cutting-edge performance. However, the same thing hackers are using to lauch the terabit attacks.</p>
<h3>Why use DDoS</h3>
<p>DDoS (Distributed Denial of Service) is one of the oldest-fashioned yet effective method of making an online service unavailable to others. This is a not DIRECT hack. Instead, it disables the feature for quite a time.</p>
<p>DDoS was a serious threat in the previous generation of internet. Nowadays, the tricks to trigger a DDoS attack and other requirements are quite easy to acquire. In many cases, newbie hackers try to have some fun with it. So, why it’s widely used today? It’s mainly important to note the industrial usage. For example, if Google was down for about 5 minutes, that would mean serious issue to the business. This attack can also be to redirect focus from an event to another, often to anonymize the real hacking.</p>
<h3>The mitigation</h3>
<p>This technique is quite interesting. One of the developers of Memcached servers, Dormando, proposed the workaround. According to his tweet,</p>
<blockquote class="twitter-tweet">
<p dir="ltr" lang="en">For what it&#8217;s worth, if you&#8217;re getting attacked by memcached&#8217;s, it&#8217;s pretty easy to disable them since the source won&#8217;t be spoofed. They may accept &#8220;shutdown\r\n&#8221;, but also running &#8220;flush_all\r\n&#8221; in a loop will prevent amplification.</p>
<p>— dormando (@dormando) <a href="https://twitter.com/dormando/status/968579781729009664?ref_src=twsrc%5Etfw">February 27, 2018</a></p></blockquote>
<p>Unfortunately, the proposal didn’t get much attention in the first place. Corero, a network protection service, recently reported that they integrated the trick into their system and found “100% effective” in any live DDoS attack. The Corero experts also said that they didn’t notice any type of collateral damage of this technique.</p>
<h3>Update “Memcached” servers</h3>
<p>The main reason why Memcached servers are widely used in the recent attacks is that Memcached servers are widely used and left accessible online. The servers available for public access on port 11211. This enabled the present occurrences.</p>
<p>Now, an update of Memcached server software is available. The latest version (currently) is v1.5.6. The Memcached team patched the system from the vulnerability. This version disables UDP protocol (by default). The user has to manually turn it on while deploying the server. If you’re an owner of Memcached server, <a href="https://memcached.org/">get the latest Memcached</a>.</p>
<h3>Number of open “Memcached” decreased</h3>
<p>After the occurrence of the major DDoS attacks, security researchers and cloud service providers started taking necessary steps to protect the web from the disaster.</p>
<blockquote class="twitter-tweet">
<p dir="ltr" lang="en">Although there were 107,431 Memcached servers in Shodan this morning. The population Memcached is slowly but steadily shrinking. Servers which where vulnerable this morning are now closed 8 hours later. We still have a long way to go but progress is being made. ? <a href="https://t.co/nqAFt4BAmG">pic.twitter.com/nqAFt4BAmG</a></p>
<p>— Victor Gevers (@0xDUDE) <a href="https://twitter.com/0xDUDE/status/971515743589322752?ref_src=twsrc%5Etfw">March 7, 2018</a></p></blockquote>
<p>According to this tweet, the number dropped down a lot.</p>
<p>Moreover, system admins also took actions to protect their servers from such misuse.</p>
<blockquote class="twitter-tweet">
<p dir="ltr" lang="en">Last week there were 93,000 Memcached servers left exposed online. This week we have 105,000.</p>
<p>What are you doing people?!?!?!? You&#8217;re supposed to put them behind a firewall, not in front of it. ?? <a href="https://t.co/YUGsFvER4n">pic.twitter.com/YUGsFvER4n</a></p>
<p>— Catalin Cimpanu (@campuscodi) <a href="https://twitter.com/campuscodi/status/970790814111748096?ref_src=twsrc%5Etfw">March 5, 2018</a></p></blockquote>
<h3>More Memcached flaw(s)</h3>
<p>Memcached isn’t fixed yet. <a href="https://www.corero.com/blog/?id=877">According to Corero</a>, the vulnerability was more dangerous than expected as it could also allow the hacker to modify/steal information from the servers. However, Corero didn’t provide any detailed info on the flaw. They reached out to national security agencies so that they can prepare and send out the proper security alerts.</p>
<p>Check out if it&#8217;s <a href="https://www.osradar.com/possible-avoid-dos-attacks/">possible to avoid DDoS</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/mitigate-ddos-memcached-servers/">How to Mitigate DDoS from Memcached Servers</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/mitigate-ddos-memcached-servers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
