<?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>MagicalTux in Japan &#187; Linux</title>
	<atom:link href="http://blog.magicaltux.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.magicaltux.net</link>
	<description>Geekness brought me to Japan!</description>
	<lastBuildDate>Mon, 26 Jul 2010 21:31:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Modifying incoming packet size on a linux router</title>
		<link>http://blog.magicaltux.net/2009/09/23/modifying-incoming-packet-size-on-a-linux-router/</link>
		<comments>http://blog.magicaltux.net/2009/09/23/modifying-incoming-packet-size-on-a-linux-router/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 09:57:10 +0000</pubDate>
		<dc:creator>MagicalTux</dc:creator>
				<category><![CDATA[Geek Attitude]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MSS]]></category>
		<category><![CDATA[Router]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[TCP SYN]]></category>

		<guid isPermaLink="false">http://blog.magicaltux.net/?p=364</guid>
		<description><![CDATA[Since I&#8217;ve setup my linux router, I noticed that some websites weren&#8217;t available anymore. The connection was established, sometimes I could even get small pages (ie. redirect pages), but most of the time, the interesting pages didn&#8217;t work. Searching on internet helped me to suspect packet size. If the remote site was sending packets which [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve setup my linux router, I noticed that some websites weren&#8217;t available anymore. The connection was established, sometimes I could even get small pages (ie. redirect pages), but most of the time, the interesting pages didn&#8217;t work.</p>
<p>Searching on internet helped me to suspect packet size. If the remote site was sending packets which are too big, they would get dropped, with an icmp reply saying &#8220;make things smaller, man&#8221; (in computer terms).</p>
<p>However, for some reason it may not work, if icmp packets are dropped, or if anything like this happens.</p>
<p>The symptom in my case was simple. I could access everything from the router itself, but from client computers, connection was hanging forever without data coming&#8230; Some tcpdump showed me that the mss (requested max packet size) value in the initial SYN connection packet sent by my router was 1414 while the one sent when the connection came from a client computer was 1460. That&#8217;s a 46 bytes difference. Knowing that networking in Japan is not the same as what I&#8217;m used to (for example, the VHDSL modem I use to connect to Internet also provides IPv6 directly, while IPv4 is obtained through PPPoE ; I suspect pppoe in fact transits through ipv6), I decided to change the value of mss in the connection packets.</p>
<p>Easier said than done, setting the MTU on ppp0 or changing mss in route didn&#8217;t have any impact on the data sent.</p>
<p>When nothing works, it&#8217;s time to use iptables for some dirty work:</p>
<pre>iptables -I FORWARD 1 -o ppp0 -p tcp -j TCPMSS --tcp-flags syn,fin,ack syn --set-mss 1414</pre>
<p>For all forwarded tcp SYN packets to interface ppp0, I set the mss to 1414&#8230; and guess what? It works. I can finally access websites that didn&#8217;t work. Strange workaround, and something I didn&#8217;t think I would ever have to do&#8230; well&#8230; life is weird.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.magicaltux.net/2009/09/23/modifying-incoming-packet-size-on-a-linux-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Port knocking, how would I do?</title>
		<link>http://blog.magicaltux.net/2009/03/02/port-knocking-how-would-i-do/</link>
		<comments>http://blog.magicaltux.net/2009/03/02/port-knocking-how-would-i-do/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 20:28:08 +0000</pubDate>
		<dc:creator>MagicalTux</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Port knocking]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.magicaltux.net/?p=254</guid>
		<description><![CDATA[As I saw some articles which seems rather unexact relating port knocking, I would like to add some parts of my own idea about this. First, port knocking is not meant to be used alone&#8230; Even if you use your daemon&#8217;s default port (let&#8217;s say port 22 for sshd), port knocking can protect you more [...]]]></description>
			<content:encoded><![CDATA[<p>As I saw <a href="http://www.linux.com/articles/37888" target="_blank">some articles which seems rather unexact relating port knocking</a>, I would like to add some parts of my own idea about this.</p>
<p>First, port knocking is <em>not</em> meant to be used alone&#8230;</p>
<p>Even if you use your daemon&#8217;s default port (let&#8217;s say port 22 for sshd), port knocking can protect you more than you can even imagine. Let&#8217;s take the following setup:</p>
<ul>
<li>SSHd running on port 65122</li>
<li>Connections to port 65122 are replied with &#8220;connection refused&#8221; (via an icmp target rule)</li>
<li>In order to &#8220;open&#8221; port 65122, connection attempts must be made to ports 22448, 44228 and 22884 in this order. Any other order will blacklist the IP attempting to connect for 1 hour</li>
<li>More than 5 attempts to connect to port 65122 within 20 minutes will result in 1 hour blacklist</li>
</ul>
<p>Now, if you&#8217;re that smart, just try to find your way in without the &#8220;passphrase&#8221; (which is 22448-44228-22884-65122). If you do too many attempts, you&#8217;ll end blacklisted. Let&#8217;s say you found out that port 65122 gets you banned when you connect, and have determined that you can make up to 5 attempts in 20 minutes. Let&#8217;s also say you know you have to knock exactly 3 ports to be able to connect.<br />
You then have to test 65536^3 = 281474976710656 combinations, and can only test 5 in 20 minutes, that would require 70368744177660 minutes (133882694 years or so).</p>
<p>I can assume no decent system will be up for 133882694 years without any shift into security settings. You can parallelize that with different source IPs, but it will still last too long against people shifting every 3~6 months.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.magicaltux.net/2009/03/02/port-knocking-how-would-i-do/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft: WIN T3H WEB!</title>
		<link>http://blog.magicaltux.net/2007/12/27/microsoft-win-t3h-web/</link>
		<comments>http://blog.magicaltux.net/2007/12/27/microsoft-win-t3h-web/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 06:22:49 +0000</pubDate>
		<dc:creator>MagicalTux</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.magicaltux.net/wordpress/?p=138</guid>
		<description><![CDATA[<p>Have you ever heard someone say this ?</p> <p>“We won the desktop. We won the server. We will win the Web. We will move fast, we will get there. We will win the Web.”</p> <p>Our old pal Steve Ballmer said that a couple of years ago. And yeah, we can see that Microsoft tried to go in this direction. Initially planning to leave the Web « as-is » by not updating Microsoft Internet Explorer, they had to resume development as soon as Firefox 1.0 was out, on november 9th, 2004. Development was resumed, and MSIE 7.0 announced...</p>]]></description>
			<content:encoded><![CDATA[<p>Have you ever heard someone say this ?</p>
<p>“We won the desktop. We won the server. We will win the Web. We will move fast, we will get there. We will win the Web.”</p>
<p>Our old pal Steve Ballmer said that a couple of years ago. And yeah, we can see that Microsoft tried to go in this direction. Initially planning to leave the Web « as-is » by not updating Microsoft Internet Explorer, they had to resume development as soon as Firefox 1.0 was out, on november 9th, 2004. Development was resumed, and MSIE 7.0 announced&#8230;</p>
<p><span id="more-138"></span></p>
<p>Still, MSIE 7.0 is far from what you would expect from a modern browser. Yes, Microsoft fixed old stuff like the transparent PNG issue, but it still remains really old. Just try to read JavaScript documentation from 1999, and you&#8217;ll see that most interesting stuff is not implemented. And that&#8217;s not just &#8220;some functions&#8221;. For example in JavaScript you have a method called &#8220;toSource()&#8221;. This method can convert an array to a string representing it in JavaScript, let&#8217;s call that a JavaScript Object Notation. Yeah, you see what I mean, for example <a hreflang="en" href="http://php.net/json">PHP is able to read JSON strings, and convert them to native PHP constructions (arrays, null, string, &#8230;)</a>.</p>
<p>So, Microsoft announced MSIE 8.0 with a bunch of more or less useless improvements. MSIE 8.0 is supposed to pass ACID2 test, implement more recent JavaScript, etc&#8230;</p>
<p>Anyway it&#8217;s not yet relevant as MSIE 8.0 isn&#8217;t released.</p>
<p>So, Mister Ballmer said, two years ago, that Microsoft will &#8220;move fast&#8221; and &#8220;win the Web&#8221;. <a hreflang="en" href="http://www.molly.com/2005/09/16/no-mr-ballmer-microsoft-will-not-win-the-web/">The web is not something anyone can just &#8220;win&#8221;, as Molly said</a>, still even if it were, Microsoft&#8217;s efforts are far from what would make anyone win something. Yes, Microsoft bought &#8220;live.com&#8221; and made stuff on this and has a whole herd of 13 year old using MSN and writing blogs there, but if this is what you would call &#8220;win the web&#8221;, then Skyblog is just the same.</p>
<p>So, let&#8217;s just see if there&#8217;s still something in Microsoft&#8217;s bag, or if that&#8217;s just the usual barking we hear for years (and yeah, <a hreflang="en" href="http://www.microsoft.com/windowsserver/compare/default.mspx">on microsoft.com you still have this old Linux-Windows servers comparison</a>. This is 100% neutral, I swear. And yeah, linux is less reliable than windows, less secure, and costs way more than Windows. Of course your child will know how to manage your windows server, so no need to hire anyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.magicaltux.net/2007/12/27/microsoft-win-t3h-web/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
