<?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>matthieu.yiptong.ca &#187; Web</title>
	<atom:link href="http://matthieu.yiptong.ca/category/computers/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthieu.yiptong.ca</link>
	<description>Matthieu/ergosteur&#039;s new blog</description>
	<lastBuildDate>Mon, 26 Jul 2010 05:12:09 +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>Virtual LAN with NAT/PAT for OpenVZ containers</title>
		<link>http://matthieu.yiptong.ca/2009/10/13/virtual-lan-with-natpat-for-openvz-containers/</link>
		<comments>http://matthieu.yiptong.ca/2009/10/13/virtual-lan-with-natpat-for-openvz-containers/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:07:24 +0000</pubDate>
		<dc:creator>Matthieu</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://matthieu.yiptong.ca/?p=434</guid>
		<description><![CDATA[This blog is running from an OpenVZ container on a server with a single public IP. There is no separate router; the eth0 interfaces is connected directly to the Internet. Therefore, I had to create a vlan with private IPs for my containers which would share the one public IP. Here&#8217;s how I did it.
/etc/network/interfaces

auto [...]]]></description>
			<content:encoded><![CDATA[<p>This blog is running from an OpenVZ container on a server with a single public IP. There is no separate router; the eth0 interfaces is connected directly to the Internet. Therefore, I had to create a vlan with private IPs for my containers which would share the one public IP. Here&#8217;s how I did it.</p>
<p>/etc/network/interfaces</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.254
gateway x.x.x.x
&nbsp;
auto venet0:<span style="">0</span>
iface venet0:<span style="">0</span> inet static
address 172.29.247.100
netmask 255.255.255.0</pre></div></div>

<p>Note that the venet0 interface is created when installing OpenVZ. By default it has no IP. I assigned a static IP of 172.29.247.100 and netmask of 255.255.255.0 to allow space for a whole lot of containers. Now for the fun part, messing with iptables.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># NAT VM subnet (247) to external ip</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> POSTROUTING <span style="color: #660033;">-s</span> 172.29.247.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span> <span style="color: #660033;">-o</span> eth0 <span style="color: #660033;">-j</span> SNAT <span style="color: #660033;">--to</span> x.x.x.x
&nbsp;
<span style="color: #666666; font-style: italic;"># Allow all traffic for venet0 interface</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> venet0 <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
<span style="color: #666666; font-style: italic;"># ssh to containers</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-I</span> PREROUTING <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-d</span> x.x.x.x <span style="color: #660033;">--dport</span> <span style="color: #000000;">2222</span> <span style="color: #660033;">-j</span> DNAT <span style="color: #660033;">--to</span> 172.29.247.103:<span style="color: #000000;">22</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-I</span> FORWARD <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-d</span> 172.29.247.103 <span style="color: #660033;">--dport</span> <span style="color: #000000;">2222</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-I</span> PREROUTING <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-d</span> x.x.x.x <span style="color: #660033;">--dport</span> <span style="color: #000000;">2223</span> <span style="color: #660033;">-j</span> DNAT <span style="color: #660033;">--to</span> 172.29.247.102:<span style="color: #000000;">22</span>
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-I</span> FORWARD <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-d</span> 172.29.247.102 <span style="color: #660033;">--dport</span> <span style="color: #000000;">2223</span></pre></div></div>

<p>It may not be the optimal solution, but it works, it&#8217;s stable, and I&#8217;m quite proud of myself.</p>]]></content:encoded>
			<wfw:commentRss>http://matthieu.yiptong.ca/2009/10/13/virtual-lan-with-natpat-for-openvz-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spam. Now in french, with pictures!</title>
		<link>http://matthieu.yiptong.ca/2009/10/13/spam-now-in-french-with-pictures/</link>
		<comments>http://matthieu.yiptong.ca/2009/10/13/spam-now-in-french-with-pictures/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 16:44:39 +0000</pubDate>
		<dc:creator>Matthieu</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://matthieu.yiptong.ca/?p=431</guid>
		<description><![CDATA[Someone at the school board received this spam message today. I must say this variation is better than the usual junk about viagra and rolexes  . But seriously, what are they expecting to get out of this?
bonjour!!! ca va??? je m&#8217;appelle Svetlana. j&#8217;ai 29 ans.
j&#8217;ai deja eu une mauvaise experience de parler avec les [...]]]></description>
			<content:encoded><![CDATA[<p>Someone at the school board received this spam message today. I must say this variation is better than the usual junk about viagra and rolexes <img src='http://matthieu.yiptong.ca/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . But seriously, what are they expecting to get out of this?</p>
<blockquote><p>bonjour!!! ca va??? je m&#8217;appelle Svetlana. j&#8217;ai 29 ans.<br />
j&#8217;ai deja eu une mauvaise experience de parler avec les hommes dans l&#8217;internet.<br />
nous avons eu une correspondance exceptionnelle tres longtemps et je l&#8217;ai cru.<br />
j&#8217;ai l&#8217;habitude de croire les hommes mais cet homme a casse mon coeur.<br />
j&#8217;etais choquee et je ne savais pas ce que je devais faire. j&#8217;ai cesse a croire les hommes.<br />
j&#8217;ai commence a travailler ferme pour oublier tout.<br />
j&#8217;ai reussi a faire la cariere mais j&#8217;ai compris que la vie ce n&#8217;est pas le travail.<br />
je veux etre aimee et je veux offrir l&#8217;amour.<br />
je ne sais pas pourquoi je te dis ca j&#8217;ai regarde ton prifil et j&#8217;ai decide de t&#8217;ecrire.<br />
je deteste le mensonge et les jeux avec les gens.</p>
<p>si tes intentions sont serieuses ecris mon email:  tendra3@rambler.ru</p>
<p><a href="http://matthieu.yiptong.ca/wp-content/uploads/2009/10/Svetlanna1.jpg" rel="wp-prettyPhoto[g431]"><img class="alignnone size-medium wp-image-432" title="Svetlanna" src="http://matthieu.yiptong.ca/wp-content/uploads/2009/10/Svetlanna-287x300.jpg" alt="Svetlanna" width="287" height="300" /></a></p></blockquote>]]></content:encoded>
			<wfw:commentRss>http://matthieu.yiptong.ca/2009/10/13/spam-now-in-french-with-pictures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail down</title>
		<link>http://matthieu.yiptong.ca/2009/09/24/gmail-down/</link>
		<comments>http://matthieu.yiptong.ca/2009/09/24/gmail-down/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 14:42:11 +0000</pubDate>
		<dc:creator>Matthieu</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://matthieu.yiptong.ca/2009/09/gmail-down/</guid>
		<description><![CDATA[UPDATE: Google has posted a document explaining the service disruption. Google Service disruption &#8211; Sept 24/09
Gmail seems to be down right now&#8230; ( Sep 24, 2009 @ 10:42)
To monitor Gmail and other Google Apps services in the future: the Apps Status Dashboard

]]></description>
			<content:encoded><![CDATA[<p>UPDATE: Google has posted a document explaining the service disruption. <a href="http://matthieu.yiptong.ca/wp-content/uploads/2009/09/2kbfss0frjmmlkx1.pdf">Google Service disruption &#8211; Sept 24/09</a></p>
<p>Gmail seems to be down right now&#8230; (<span id="timestamp"> <strong>Sep 24, 2009 @ 10:42)</strong></span></p>
<p>To monitor Gmail and other Google Apps services in the future: the <a href="http://www.google.com/appsstatus">Apps Status Dashboard</a></p>
<p><a href="http://matthieu.yiptong.ca/wp-content/uploads/2009/09/Capture1.png" rel="wp-prettyPhoto[g337]"><img class="alignnone size-medium wp-image-336" title="Capture" src="http://matthieu.yiptong.ca/wp-content/uploads/2009/09/Capture-300x242.PNG" alt="Capture" width="300" height="242" /></a></p>
<p><a href="http://matthieu.yiptong.ca/wp-content/uploads/2009/09/gmail31.png" rel="wp-prettyPhoto[g337]"><img class="alignnone size-medium wp-image-341" title="gmail3" src="http://matthieu.yiptong.ca/wp-content/uploads/2009/09/gmail3-300x213.PNG" alt="gmail3" width="300" height="213" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://matthieu.yiptong.ca/2009/09/24/gmail-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Font Size</title>
		<link>http://matthieu.yiptong.ca/2009/09/10/google-font-size/</link>
		<comments>http://matthieu.yiptong.ca/2009/09/10/google-font-size/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 00:59:42 +0000</pubDate>
		<dc:creator>Matthieu</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://matthieu.yiptong.ca/?p=297</guid>
		<description><![CDATA[You&#8217;re not crazy. Google has done it again. They made a small change to the look of their website today: the font size and buttons on the home page and search result page are larger. I suppose this shows how ingrained Google is into everyday life, how even the smallest change is noticed by millions. [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re not crazy. Google has done it again. They made a small change to the look of their website today: the font size and buttons on the home page and search result page are larger. I suppose this shows how ingrained Google is into everyday life, how even the smallest change is noticed by millions. Just like back in May&#8217;08 when they <a href="http://googlesystem.blogspot.com/2008/05/new-google-favicon.html">changed their favicon</a>.</p>
<p>Internet users tend to dislike change for change&#8217;s sake. There is already a <a href="http://userscripts.org/scripts/show/57449">userscript</a> that reverts Google to the &#8220;classic&#8221; look.  Another good example of user discontent is the launch of New Facebook, which <a href="http://www.facebook.com/group.php?sid=d45cd1fade08e1fe76e3c2e80f5531f2&amp;gid=21195574231">incited much grumbling</a>. Ultimately though, the whole thing blows over and the face of the Web is changed forever, old designs lost in the depths of the <a href="http://www.archive.org/index.php">Wayback machine</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matthieu.yiptong.ca/2009/09/10/google-font-size/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
