<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linux – Yeri Tiete</title>
    <link>https://yeri.be/tag/linux/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Fri, 11 Jun 2021 10:47:19 +0200</lastBuildDate>
    <atom:link href="https://yeri.be/tag/linux/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Linus on mRNA</title>
      <link>https://yeri.be/linus-on-mrna/</link>
      <pubDate>Fri, 11 Jun 2021 10:47:19 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/linus-on-mrna/</guid>
      <description>&lt;pre id=&#34;b&#34; class=&#34;wp-block-preformatted&#34;&gt;Please keep your insane and technically incorrect anti-vax comments to yourself.&#xA;&#xA;You don&#39;t know what you are talking about, you don&#39;t know what mRNA&#xA;is, and you&#39;re spreading idiotic lies. Maybe you do so unwittingly,&#xA;because of bad education. Maybe you do so because you&#39;ve talked to&#xA;&#34;experts&#34; or watched youtube videos by charlatans that don&#39;t know what&#xA;they are talking about.&#xA;&#xA;But dammit, regardless of where you have gotten your mis-information&#xA;from, any Linux kernel discussion list isn&#39;t going to have your&#xA;idiotic drivel pass uncontested from me.&#xA;&#xA;Vaccines have saved the lives of literally tens of millions of people.&#xA;&#xA;Just for your edification in case you are actually willing to be&#xA;educated: mRNA doesn&#39;t change your genetic sequence in any way. It is&#xA;the exact same intermediate - and temporary - kind of material that&#xA;your cells generate internally all the time as part of your normal&#xA;cell processes, and all that the mRNA vaccines do is to add a dose&#xA;their own specialized sequence that then makes your normal cell&#xA;machinery generate that spike protein so that your body learns how to&#xA;recognize it.&#xA;&#xA;The half-life of mRNA is a few hours. Any injected mRNA will be all&#xA;gone from your body in a day or two. It doesn&#39;t change anything&#xA;long-term, except for that natural &#34;your body now knows how to&#xA;recognize and fight off a new foreign protein&#34; (which then tends to&#xA;fade over time too, but lasts a lot longer than a few days). And yes,&#xA;while your body learns to fight off that foreign material, you may&#xA;feel like shit for a while. That&#39;s normal, and it&#39;s your natural&#xA;response to your cells spending resources on learning how to deal with&#xA;the new threat.&#xA;&#xA;And of the vaccines, the mRNA ones are the most modern, and the most&#xA;targeted - exactly because they do *not* need to have any of the other&#xA;genetic material that you traditionally have in a vaccine (ie no need&#xA;for basically the whole - if weakened - bacterial or virus genetic&#xA;material). So the mRNA vaccines actually have *less* of that foreign&#xA;material in them than traditional vaccines do. And  a *lot* less than&#xA;the very real and actual COVID-19 virus that is spreading in your&#xA;neighborhood.&#xA;&#xA;Honestly, anybody who has told you differently, and who has told you&#xA;that it changes your genetic material, is simply uneducated.  You need&#xA;to stop believing the anti-vax lies, and you need to start protecting&#xA;your family and the people around you.  Get vaccinated.&#xA;&#xA;I think you are in Germany, and COVID-19 numbers are going down. It&#39;s&#xA;spreading a lot less these days, largely because people around you&#xA;have started getting the vaccine - about half having gotten their&#xA;first dose around you, and about a quarter being fully vaccinated. If&#xA;you and your family are more protected these days, it&#39;s because of all&#xA;those other people who made the right choice, but it&#39;s worth noting&#xA;that as you see the disease numbers go down in your neighborhood,&#xA;those diminishing numbers are going to predominantly be about people&#xA;like you and your family.&#xA;&#xA;So don&#39;t feel all warm and fuzzy about the fact that covid cases have&#xA;dropped a lot around you. Yes, all those vaccinated people around you&#xA;will protect you too, but if there is another wave, possibly due to a&#xA;more transmissible version - you and your family will be at _much_&#xA;higher risk than those vaccinated people because of your ignorance and&#xA;mis-information.&#xA;&#xA;Get vaccinated. Stop believing the anti-vax lies.&#xA;&#xA;And if you insist on believing in the crazy conspiracy theories, at&#xA;least SHUT THE HELL UP about it on Linux kernel discussion lists.&#xA;&#xA;                Linus&lt;/pre&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;a href=&#34;https://lore.kernel.org/ksummit/CAHk-=wiB6FJknDC5PMfpkg4gZrbSuC3d391VyReM4Wb0+JYXXA@mail.gmail.com/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Source&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<pre id="b" class="wp-block-preformatted">Please keep your insane and technically incorrect anti-vax comments to yourself.

You don't know what you are talking about, you don't know what mRNA
is, and you're spreading idiotic lies. Maybe you do so unwittingly,
because of bad education. Maybe you do so because you've talked to
"experts" or watched youtube videos by charlatans that don't know what
they are talking about.

But dammit, regardless of where you have gotten your mis-information
from, any Linux kernel discussion list isn't going to have your
idiotic drivel pass uncontested from me.

Vaccines have saved the lives of literally tens of millions of people.

Just for your edification in case you are actually willing to be
educated: mRNA doesn't change your genetic sequence in any way. It is
the exact same intermediate - and temporary - kind of material that
your cells generate internally all the time as part of your normal
cell processes, and all that the mRNA vaccines do is to add a dose
their own specialized sequence that then makes your normal cell
machinery generate that spike protein so that your body learns how to
recognize it.

The half-life of mRNA is a few hours. Any injected mRNA will be all
gone from your body in a day or two. It doesn't change anything
long-term, except for that natural "your body now knows how to
recognize and fight off a new foreign protein" (which then tends to
fade over time too, but lasts a lot longer than a few days). And yes,
while your body learns to fight off that foreign material, you may
feel like shit for a while. That's normal, and it's your natural
response to your cells spending resources on learning how to deal with
the new threat.

And of the vaccines, the mRNA ones are the most modern, and the most
targeted - exactly because they do *not* need to have any of the other
genetic material that you traditionally have in a vaccine (ie no need
for basically the whole - if weakened - bacterial or virus genetic
material). So the mRNA vaccines actually have *less* of that foreign
material in them than traditional vaccines do. And  a *lot* less than
the very real and actual COVID-19 virus that is spreading in your
neighborhood.

Honestly, anybody who has told you differently, and who has told you
that it changes your genetic material, is simply uneducated.  You need
to stop believing the anti-vax lies, and you need to start protecting
your family and the people around you.  Get vaccinated.

I think you are in Germany, and COVID-19 numbers are going down. It's
spreading a lot less these days, largely because people around you
have started getting the vaccine - about half having gotten their
first dose around you, and about a quarter being fully vaccinated. If
you and your family are more protected these days, it's because of all
those other people who made the right choice, but it's worth noting
that as you see the disease numbers go down in your neighborhood,
those diminishing numbers are going to predominantly be about people
like you and your family.

So don't feel all warm and fuzzy about the fact that covid cases have
dropped a lot around you. Yes, all those vaccinated people around you
will protect you too, but if there is another wave, possibly due to a
more transmissible version - you and your family will be at _much_
higher risk than those vaccinated people because of your ignorance and
mis-information.

Get vaccinated. Stop believing the anti-vax lies.

And if you insist on believing in the crazy conspiracy theories, at
least SHUT THE HELL UP about it on Linux kernel discussion lists.

                Linus</pre>
<p><em><a href="https://lore.kernel.org/ksummit/CAHk-=wiB6FJknDC5PMfpkg4gZrbSuC3d391VyReM4Wb0+JYXXA@mail.gmail.com/" target="_blank" rel="noreferrer noopener">Source</a></em>.</p>
]]></content:encoded>
      <category>misc</category>
      <category>linux</category><category>medicine</category>
    </item>
    
    <item>
      <title>Linux gateway/router &#43; unable to access certain (HTTPS) sites</title>
      <link>https://yeri.be/linux-gatewayrouter-unable-to-access-certain-https-sites/</link>
      <pubDate>Sat, 27 Feb 2010 13:56:47 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/linux-gatewayrouter-unable-to-access-certain-https-sites/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve had an issue for a while, being unable to access certain websites such as &lt;a href=&#34;https://fon.com&#34; target=&#34;_blank&#34;&gt;&lt;a href=&#34;https://fon.com&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://fon.com&lt;/a&gt;&lt;/a&gt;, but also certain parts of the Apple, Fortis and Microsoft site, while other (https) websites worked fine.&lt;/p&gt;&#xA;&lt;p&gt;Running Wireshark I found that only about 5ish packets got transferred, and all other data to that website abruptly stopped.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m using ADSL (&lt;a href=&#34;http://www.edpnet.be/&#34; target=&#34;_blank&#34;&gt;EDPnet&lt;/a&gt;), which has an MTU of 1492, however, I was able to access all websites from the router (using lynx, for example), but not from any other PC within the network.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve had an issue for a while, being unable to access certain websites such as <a href="https://fon.com" target="_blank"><a href="https://fon.com" target="_blank" rel="noopener noreferrer">https://fon.com</a></a>, but also certain parts of the Apple, Fortis and Microsoft site, while other (https) websites worked fine.</p>
<p>Running Wireshark I found that only about 5ish packets got transferred, and all other data to that website abruptly stopped.</p>
<p>I&rsquo;m using ADSL (<a href="http://www.edpnet.be/" target="_blank">EDPnet</a>), which has an MTU of 1492, however, I was able to access all websites from the router (using lynx, for example), but not from any other PC within the network.</p>
<pre># ifconfig<span style="color: #ff0000;"> ppp0</span>
ppp0      Link encap:Point-to-Point Protocol
inet addr:85.234.196.57  P-t-P:85.234.196.1  Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST  <span style="color: #ff0000;">MTU:1492</span> Metric:1
RX packets:38804442 errors:0 dropped:0 overruns:0 frame:0
TX packets:28930886 errors:0 dropped:5020 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:45941523311 (42.7 GiB)  TX bytes:2887926670 (2.6 GiB)</pre>
<p style="padding-left: 60px;"><span style="color: #000000;"> </span></p>
As it had worked before without any issues, I was more thinking about a kernel problem (or a module of it), however, stripping down unnecessary modules and updating my kernel a few times didn't resolve the issue. I even booted an old kernel I had still lying around from when I could access the websites. However, all these attempts were in vain.
<p>Thinking it might have been a firewall issue, I flushed all my iptables rules, and started over from scratch. However, this too didn&rsquo;t solve my issue.</p>
<p>When I VPN&rsquo;ed or used my Macbook Pro directly as PPPoE device (by-passing the Gentoo router) I was able to access all the websites as well.</p>
<p>After being close to giving up, I found the following iptables rule:</p>
<pre>iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu -t mangle</pre>
<p>And try again.</p>
<p>This did solve my issue. :)</p>
<p>This is because the default 100mbit MTU is 1500, instead of 1492 for PPPoE.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://www.edpnet.be/</div>
]]></content:encoded>
      <category>errors</category><category>linux</category><category>networking</category>
      <category>linux</category><category>https</category><category>mtu</category><category>router</category>
    </item>
    
    <item>
      <title>MRTG</title>
      <link>https://yeri.be/mrtg/</link>
      <pubDate>Wed, 18 Nov 2009 17:14:57 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/mrtg/</guid>
      <description>&lt;p&gt;As I often have people asking for the files I use to make my pretty MRTG graphs; I&amp;rsquo;ll publish them here.&lt;/p&gt;&#xA;&lt;p&gt;Here are some examples:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://web.archive.org/web/20100712200524/http://mrtg.rootspirit.com:80/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Zero&lt;/a&gt; - &lt;a href=&#34;http://one.rootspirit.com/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;One&lt;/a&gt; - &lt;a href=&#34;http://four.rootspirit.com/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Four&lt;/a&gt; - &lt;a href=&#34;http://vm1.rootspirit.com/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;vm1&lt;/a&gt; - &lt;a href=&#34;http://home.tiete.be/mrtg/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Sauron&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The config files:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://static.yeri.be/2009/11/sauron.tar&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Sauron&lt;/a&gt; (including Squid stats),&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://static.yeri.be/2009/11/zero.tar&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Zero&lt;/a&gt; (including fan stats).&lt;/p&gt;&#xA;&lt;p&gt;List of files included:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;indexmaker; simple script (included with MRTG) to generate a simple index file with all the graphs&lt;/li&gt;&#xA;&lt;li&gt;snmp-if.sh; will show you the IDs of the interfaces on the server/pc. These IDs have to be edited in the mrtg.cfg file; e.g.:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Target[eth0]: &lt;span style=&#34;color: #ff0000;&#34;&gt;2&lt;/span&gt;:public@localhost:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>As I often have people asking for the files I use to make my pretty MRTG graphs; I&rsquo;ll publish them here.</p>
<p>Here are some examples:</p>
<p><a href="https://web.archive.org/web/20100712200524/http://mrtg.rootspirit.com:80/" target="_blank" rel="noopener noreferrer">Zero</a> - <a href="http://one.rootspirit.com/mrtg/" target="_blank" rel="noopener noreferrer">One</a> - <a href="http://four.rootspirit.com/mrtg/" target="_blank" rel="noopener noreferrer">Four</a> - <a href="http://vm1.rootspirit.com/mrtg/" target="_blank" rel="noopener noreferrer">vm1</a> - <a href="http://home.tiete.be/mrtg/" target="_blank" rel="noopener noreferrer">Sauron</a></p>
<p>The config files:</p>
<p><a href="https://static.yeri.be/2009/11/sauron.tar" target="_blank" rel="noopener noreferrer">Sauron</a> (including Squid stats),</p>
<p><a href="https://static.yeri.be/2009/11/zero.tar" target="_blank" rel="noopener noreferrer">Zero</a> (including fan stats).</p>
<p>List of files included:</p>
<ul>
<li>indexmaker; simple script (included with MRTG) to generate a simple index file with all the graphs</li>
<li>snmp-if.sh; will show you the IDs of the interfaces on the server/pc. These IDs have to be edited in the mrtg.cfg file; e.g.:</li>
</ul>
<p>Target[eth0]: <span style="color: #ff0000;">2</span>:public@localhost:</p>
<p>Make sure 2 is indeed the ID of eth0. Be aware that virtual interfaces, like the TUN/TAP interfaces (using by openVPN for example), can change ID each time they are restarted/rebooted.</p>
<ul>
<li>mrtg.cfg; check the config file as an example.</li></ul>
<li>mrtg-&lt;xyz&gt;.sh; bunch of files to generate some data. Not all of  those still work, but I haven't deleted them yet in case. See the config to check those I'm using.
</li>
<li>
<p>mrtg._1 and mrtg.ok can be deleted/ignores. Those files are generated by MRTG and I was to lazy to remove them. :(</p>
</li>
<p>Some day, I&rsquo;ll write a decent howto, but for now, you&rsquo;ll have to do with this.</p>
<p>If there&rsquo;s any question, just leave a comment.</p>
]]></content:encoded>
      <category>hardware</category><category>misc</category><category>networking</category><category>software</category><category>www</category>
      <category>linux</category><category>ubuntu</category><category>debian</category><category>gentoo</category><category>mrtg</category><category>stats</category>
    </item>
    
    <item>
      <title>OpenVPN Linux &#43; Mac howto</title>
      <link>https://yeri.be/openvpn-linux-mac-howto/</link>
      <pubDate>Sun, 05 Jul 2009 05:14:01 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/openvpn-linux-mac-howto/</guid>
      <description>&lt;p&gt;A short howto, as I was unable to find any clear ones on the net.&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: left;&#34;&gt;I&#39;m using Mac OS X (Leopard) as client, and a &lt;a href=&#34;http://home.tiete.be&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Gentoo server&lt;/a&gt; as server/host.&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: left;&#34;&gt;I both tried &lt;a href=&#34;http://www.viscosityvpn.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Viscosity&lt;/a&gt; and &lt;a href=&#34;https://tunnelblick.net/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Tunnelblick&lt;/a&gt; on my Mac as OpenVPN software, and Viscosity is probably somewhat easier to configure (using the GUI), it was shareware. So I ended up using Tunnelblick and it seems to be doing its job quite well.&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: left;&#34;&gt;First of all, make sure Gentoo is set up and working as intended. I used my home router as VPN server (having both eth0 and eth1 (= ppp0).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A short howto, as I was unable to find any clear ones on the net.</p>
<p style="text-align: left;">I'm using Mac OS X (Leopard) as client, and a <a href="http://home.tiete.be" target="_blank" rel="noopener">Gentoo server</a> as server/host.</p>
<p style="text-align: left;">I both tried <a href="http://www.viscosityvpn.com/" target="_blank" rel="noopener">Viscosity</a> and <a href="https://tunnelblick.net/" target="_blank" rel="noopener">Tunnelblick</a> on my Mac as OpenVPN software, and Viscosity is probably somewhat easier to configure (using the GUI), it was shareware. So I ended up using Tunnelblick and it seems to be doing its job quite well.</p>
<p style="text-align: left;">First of all, make sure Gentoo is set up and working as intended. I used my home router as VPN server (having both eth0 and eth1 (= ppp0).</p>
<p style="text-align: left;">Using this <a href="http://forums.gentoo.org/viewtopic-p-5849651.html" target="_blank" rel="noopener">howto</a>, you'll be able to get the server up and running.</p>
<p style="text-align: left;">Besides the installation, and perhaps (config) file locations it should be pretty similar on other Linux distros.</p>
<p style="text-align: left;">As I have dnsmasq running on my server (taking care of DNS) I added the following to the server.conf:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">push <span class="s2">&#34;dhcp-option DNS 10.0.0.1&#34;</span>
</span></span><span class="line"><span class="cl">push <span class="s2">&#34;redirect-gateway def1&#34;</span>
</span></span><span class="line"><span class="cl">client-config-dir ccd
</span></span><span class="line"><span class="cl">route 10.20.30.0 255.255.255.252
</span></span></code></pre></div><p>Don&rsquo;t forget to allow DNS requests over tun0 interface in dnsmasq.conf.</p>
<p>The first line tells the server to hand out 10.0.0.1 as DNS server to its connecting clients (10.0.0.1 being the internal eth0 IP of my server).</p>
<p>The 2nd line, tells all clients to route ALL of their traffic through the VPN. I used the VPN to access a website that allowed only Belgian IPs, and I was in The Netherlands at the time I had to access the site (Skynet&rsquo;s Rock Werchter stream). So I connected through my server at home.</p>
<p>And the 3rd and 4th line are needed if the client access the VPN is on a private IP subnet (like being connected on a WiFi router, using IP 192.168.178.x).</p>
<p>You&rsquo;ll have to add, in the client-config directory a file per username connecting to the VPN with something similar to this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">iroute 192.168.178.0 255.255.255.0
</span></span></code></pre></div><p>I&rsquo;m not entirely sure if you can add multiple iroutes; something I&rsquo;ll have to figure out when being on a different network.</p>
<p>This is what my client config looks like (vpn-server-name.conf, located in ~<em>/</em>Library/openvpn/):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">client
</span></span><span class="line"><span class="cl">dev tun
</span></span><span class="line"><span class="cl">proto udp
</span></span><span class="line"><span class="cl">remote home.tiete.be <span class="m">9000</span>
</span></span><span class="line"><span class="cl">resolv-retry infinite
</span></span><span class="line"><span class="cl">nobind
</span></span><span class="line"><span class="cl">tun-mtu <span class="m">1500</span>
</span></span><span class="line"><span class="cl">tun-mtu-extra <span class="m">32</span>
</span></span><span class="line"><span class="cl">mssfix <span class="m">1200</span>
</span></span><span class="line"><span class="cl">persist-key
</span></span><span class="line"><span class="cl">persist-tun
</span></span><span class="line"><span class="cl">ca <span class="s2">&#34;ca.crt&#34;</span>
</span></span><span class="line"><span class="cl">cert <span class="s2">&#34;yeri.crt&#34;</span>
</span></span><span class="line"><span class="cl">key <span class="s2">&#34;yeri.key&#34;</span>
</span></span><span class="line"><span class="cl">tls-auth <span class="s2">&#34;ta.key&#34;</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl">comp-lzo
</span></span><span class="line"><span class="cl">verb <span class="m">3</span>
</span></span></code></pre></div><p>Yeri being my username. Don&rsquo;t forget to download and add the ca.crt, user.crt, user.key (located in /usr/share/openvpn/easy-rsa/keys/) and ta.key (located in /etc/openvpn/) you&rsquo;ve created on the server.</p>
<p>If your client asks for &ldquo;directions&rdquo;, pick 1.</p>
<p>Start up server and client software.</p>
<p>Hitting connect in Tunnelblick should connect you to the VPN server, and (in my case) giving me an IP similar to 10.20.30.6. You can check this using &ldquo;ifconfig&rdquo; in Terminal.</p>
<p>Client:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">tun0: <span class="nv">flags</span><span class="o">=</span><span class="m">8851</span> mtu <span class="m">1500</span>
</span></span><span class="line"><span class="cl">    inet 10.20.30.6 --&gt; 10.20.30.5 netmask 0xffffffff
</span></span><span class="line"><span class="cl">    open <span class="o">(</span>pid 20551<span class="o">)</span>
</span></span></code></pre></div><p>Server:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
</span></span><span class="line"><span class="cl">inet addr:10.20.30.1  P-t-P:10.20.30.2  Mask:255.255.255.255
</span></span><span class="line"><span class="cl">UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
</span></span><span class="line"><span class="cl">RX packets:407595 errors:0 dropped:0 overruns:0 frame:0
</span></span><span class="line"><span class="cl">TX packets:574351 errors:0 dropped:0 overruns:0 carrier:0
</span></span><span class="line"><span class="cl">collisions:0 txqueuelen:100
</span></span><span class="line"><span class="cl">RX bytes:27473209 <span class="o">(</span>26.2 MiB<span class="o">)</span>  TX bytes:603524377 <span class="o">(</span>575.5 MiB<span class="o">)</span>
</span></span></code></pre></div><p>Don&rsquo;t forget; when using &ldquo;tun&rdquo; as driver, your gateway/VPN server will always have the IP ending on .1 (e.g.: 10.20.30.1).</p>
<p>Now, if you want to route all traffic throug the VPN, like I did, you&rsquo;ll have to change some stuff in iptables (as the server is also acting as my home router, I already did have a few rules in it).</p>
<p>Allow all traffic through tun0 interface:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">iptables -A OUTPUT -o tun0 -j ACCEPT
</span></span><span class="line"><span class="cl">iptables -A INPUT -i tun0 -j ACCEPT
</span></span></code></pre></div><p>Allow traffic through the external port 9000 (UDP):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">iptables -A INPUT -i ppp0 -p udp -m udp --dport <span class="m">9000</span> -j ACCEPT
</span></span></code></pre></div><p>Enable forwarding and NAT:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">iptables -A FORWARD -s 10.20.30.0/24 -i tun0 -j ACCEPT
</span></span><span class="line"><span class="cl">iptables -A FORWARD -d 10.20.30.0/24 -i ppp0 -j ACCEPT
</span></span><span class="line"><span class="cl">iptables -A POSTROUTING -o ppp0 -j MASQUERADE
</span></span></code></pre></div><p>And lastly, as I have Squid running on my server, I want to transparently forward all port 80 requests to the Squid server running on port 8080:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">iptables -t nat -A PREROUTING -i tun0 -p tcp -m tcp --dport <span class="m">80</span> -j REDIRECT --to-ports <span class="m">8080</span>
</span></span></code></pre></div><p>That&rsquo;s about it. You should have a running VPN from your current location to your VPN server. And you&rsquo;re able to use it as a gateway.</p>
<p>You can always traceroute/tracepath to your VPN server (10.20.30.1). It should only find one hop.</p>
]]></content:encoded>
      <category>apple</category><category>linux</category><category>networking</category>
      <category>apple</category><category>linux</category><category>gentoo</category><category>openvpn</category><category>vpn</category>
    </item>
    
    <item>
      <title>Multiple Memory Access Vulnerabilities Linux Kernel</title>
      <link>https://yeri.be/multiple-memory-access-vulnerabilities-linux-kernel/</link>
      <pubDate>Tue, 12 Feb 2008 00:00:41 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/multiple-memory-access-vulnerabilities-linux-kernel/</guid>
      <description>&lt;p&gt;Well, it had to happen&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;Yesterday evening two of our linux boxes were &lt;a href=&#34;https://web.archive.org/web/20210725200208/https://www.securityfocus.com/bid/27704/info&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;exploited&lt;/a&gt;.&#xA;I had to &lt;a href=&#34;https://web.archive.org/web/20080319115423/http://s.rootnode.pl:80/bugs/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;try it out&lt;/a&gt; for myself;  and yes, it &lt;em&gt;really&lt;/em&gt; does work. :|&#xA;Booted up my Ubuntu in Parallels, installed build-essential &amp;amp; ran that program!&lt;/p&gt;&#xA;&lt;pre line=&#34;1&#34; lang=&#34;Bash&#34;&gt;sudo apt-get install build-essential&#xA;gcc what-ever-the-file-name-is.c&#xA;./a.out&lt;/pre&gt;&#xA;&lt;p&gt;This is what it looks like:&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center&#34;&gt;&lt;a href=&#34;https://static.yeri.be/2008/02/lnx_kernel_exploit.png&#34; target=&#34;_blank&#34; title=&#34;Kernel exploit&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;img src=&#34;https://static.yeri.be/2008/02/lnx_kernel_exploit.thumbnail.png&#34; alt=&#34;Kernel exploit&#34;/&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;My-oh-my&amp;hellip;&#xA;I&amp;rsquo;m pretty sure this doesn&amp;rsquo;t require any more explanations ;)&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Well, it had to happen&hellip;</p>
<p>Yesterday evening two of our linux boxes were <a href="https://web.archive.org/web/20210725200208/https://www.securityfocus.com/bid/27704/info" target="_blank" rel="noopener noreferrer">exploited</a>.
I had to <a href="https://web.archive.org/web/20080319115423/http://s.rootnode.pl:80/bugs/" target="_blank" rel="noopener noreferrer">try it out</a> for myself;  and yes, it <em>really</em> does work. :|
Booted up my Ubuntu in Parallels, installed build-essential &amp; ran that program!</p>
<pre line="1" lang="Bash">sudo apt-get install build-essential
gcc what-ever-the-file-name-is.c
./a.out</pre>
<p>This is what it looks like:</p>
<p style="text-align: center"><a href="https://static.yeri.be/2008/02/lnx_kernel_exploit.png" target="_blank" title="Kernel exploit" rel="noopener noreferrer"><img src="https://static.yeri.be/2008/02/lnx_kernel_exploit.thumbnail.png" alt="Kernel exploit"/></a></p>
<p>My-oh-my&hellip;
I&rsquo;m pretty sure this doesn&rsquo;t require any more explanations ;)</p>
]]></content:encoded>
      <category>errors</category><category>linux</category>
      <category>linux</category><category>wtf</category><category>parallels</category>
    </item>
    
    <item>
      <title>Parallels &#43; Ubuntu</title>
      <link>https://yeri.be/parallels-ubuntu/</link>
      <pubDate>Mon, 21 Jan 2008 19:00:25 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/parallels-ubuntu/</guid>
      <description>&lt;p&gt;I &lt;a href=&#34;https://yeri.be/bootcamp/&#34;&gt;finally got a reply&lt;/a&gt; from the Parallels support team. After using the &lt;a href=&#34;http://www.parallels.com/en/download/file/v3/en/GA/Parallels-Desktop-5582-Mac-en.dmg&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;alternate Parallels installer&lt;/a&gt; it finally works again! Even after rebooting Mac! &lt;em&gt;joy&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Before trying to run Vista/Bootcamp through Parallels again, I&amp;rsquo;m waiting till the end of my exams (Thursday). Don&amp;rsquo;t want to blow up my Windows install again when I&amp;rsquo;m in desperate need of it. ;)&lt;/p&gt;&#xA;&lt;p&gt;As usual with Parallels, creating/installing a new OS isn&amp;rsquo;t easy. Wether it crashes or you get a bunch of errors, you&amp;rsquo;re always up for a day full of fun!&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I <a href="https://yeri.be/bootcamp/">finally got a reply</a> from the Parallels support team. After using the <a href="http://www.parallels.com/en/download/file/v3/en/GA/Parallels-Desktop-5582-Mac-en.dmg" target="_blank" rel="noopener noreferrer">alternate Parallels installer</a> it finally works again! Even after rebooting Mac! <em>joy</em></p>
<p>Before trying to run Vista/Bootcamp through Parallels again, I&rsquo;m waiting till the end of my exams (Thursday). Don&rsquo;t want to blow up my Windows install again when I&rsquo;m in desperate need of it. ;)</p>
<p>As usual with Parallels, creating/installing a new OS isn&rsquo;t easy. Wether it crashes or you get a bunch of errors, you&rsquo;re always up for a day full of fun!</p>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/ubuntu1.png" title="Ubuntu on Parallels (1)"><img src="https://static.yeri.be/2008/01/ubuntu1.thumbnail.png" alt="Ubuntu on Parallels (1)"/></a></p>
<p>Here is how I managed to install Ubuntu on Parallels:</p>
<ul>
    <li>First of all, make sure you're running the latest version of Parallels, especially if you're using Leopard.</li>
    <li>Step 2, download the  <strong>alternate</strong> Ubuntu installer. If you do not use the alternate installer, you'll end up with 'Display server errors' before being able to install Ubuntu. You can download Ubuntu <a href="http://www.ubuntu.com/download" target="_blank" rel="noopener noreferrer">here</a>. Select the approriate version (probably Desktop, latest version), and <strong>check "</strong><em>Check here if you need the alternate desktop CD. This CD does not include the Live CD, instead it uses a text-based installer</em>".<strong> </strong></li>
    <li>Step 3, create a new virtual machine, with OS Linux/Ubuntu.</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/pu1.png" title="Parallels: Create a VM"><img src="https://static.yeri.be/2008/01/pu1.thumbnail.png" alt="Parallels: Create a VM"/></a><a href="https://static.yeri.be/2008/01/pu2.png" title="Parallels: Create a VM (2)"><img src="https://static.yeri.be/2008/01/pu2.thumbnail.png" alt="Parallels: Create a VM (2)"/></a></p>
<ul>
    <li>And follow the steps. I've added some more screenshots below. You can leave everything by default, that's as you wish.</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/pu3.png" title="Parallels: Create a VM (3)"><img src="https://static.yeri.be/2008/01/pu3.thumbnail.png" alt="Parallels: Create a VM (3)"/></a><a href="https://static.yeri.be/2008/01/pu4.png" title="Parallels: Create a VM (4)"><img src="https://static.yeri.be/2008/01/pu4.thumbnail.png" alt="Parallels: Create a VM (4)"/></a><a href="https://static.yeri.be/2008/01/pu5.png" title="Parallels: Create a VM (5)"><img src="https://static.yeri.be/2008/01/pu5.thumbnail.png" alt="Parallels: Create a VM (5)"/></a><a href="https://static.yeri.be/2008/01/pu6.png" title="Parallels: Create a VM (6)"><img src="https://static.yeri.be/2008/01/pu6.thumbnail.png" alt="Parallels: Create a VM (6)"/></a><a href="https://static.yeri.be/2008/01/pu7.png" title="Parallels: Create a VM (7)"><img src="https://static.yeri.be/2008/01/pu7.thumbnail.png" alt="Parallels: Create a VM (7)"/></a><a href="https://static.yeri.be/2008/01/pu8.png" title="Parallels: Create a VM (8)"><img src="https://static.yeri.be/2008/01/pu8.thumbnail.png" alt="Parallels: Create a VM (8)"/></a></p>
<ul>
    <li>As CD-drive, select the Ubuntu (alternate) installer .iso-file.</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/pu9.png" title="Parallels: Create a VM (9)"><img src="https://static.yeri.be/2008/01/pu9.thumbnail.png" alt="Parallels: Create a VM (9)"/></a></p>
<ul>
    <li>Click Finish and Start -- the Ubuntu installer will boot.</li>
    <li>You'll end up in Ubuntu's welcome screen. Select your keyboard layout (hit F3) and select (text) install</li>
    <li>Here too, follow the steps on the screen. It will ask for your language, country, and will propose a manual or automatic disk partition. I've selected automatic -- it creates a big ext3 root partition, and a swap partition.
The installer then asks if you agree with the partition table. Select Yes or No. (I've selected No - changed my root partition from ext3 to reiserfs, as I'm a big reiserfs fan.) When selecting Yes -- the table will be created and Ubuntu will start installing.</li>
    <li>After it's installed, Ubuntu will reboot. This is where you'll get your first error; <strong>ACPI: Unable to locate RSDP</strong>. This is a known error; you can safey ignore it.</li>
    <li>Ubuntu will continue to boot, and then pop up this error: <strong>The display server has been shut down about 6 times in the last 90 seconds</strong>, and will freeze. To fix this error, shut down and restart (or reset) the VM, and hit the ESC-key. Grub's bootloader menu will pop up if everything is right.</li>
    <li>Select the 2nd option (recovery). Ubuntu will boot up in text-mode-only and you should be logged in as root (if you're not, add 'sudo' in front of the commands below).</li>
    <li>In Parallels, click (on top of your screen) "Actions" -&gt; "Install Parallels Tools..." and type in following commands in the shell:
<ul>
    <li>    mount /media/cdrom</li>
    <li>    cd /media/cdrom</li>
    <li>./parallels-tools.run</li>
    <li>reboot</li>
</ul>
</li>
    <li>After Ubuntu has rebooted (in normal mode), you shouldn't receive any more errors, and you can enjoy Ubuntu on your mac!</li>
</ul>
<p style="text-align: center"><a href="https://static.yeri.be/2008/01/ubuntu_shutdown.png" title="Ubuntu on Parallels (2)"><img src="https://static.yeri.be/2008/01/ubuntu_shutdown.thumbnail.png" alt="Ubuntu on Parallels (2)"/></a></p>
]]></content:encoded>
      <category>apple</category><category>linux</category><category>virtualisation</category>
      <category>linux</category><category>ubuntu</category><category>mac os x</category><category>parallels</category>
    </item>
    
  </channel>
</rss>
