<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>openswan &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/openswan/</link>
	<description>Feed of posts on WordPress.com tagged "openswan"</description>
	<pubDate>Tue, 01 Dec 2009 16:24:28 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[The Good, the Bad and the Ugly, of the iPhone]]></title>
<link>http://carroarmato0.wordpress.com/2008/08/21/the-good-the-bad-and-the-ugly-of-the-iphone/</link>
<pubDate>Thu, 21 Aug 2008 17:27:26 +0000</pubDate>
<dc:creator>carroarmato0</dc:creator>
<guid>http://carroarmato0.wordpress.com/2008/08/21/the-good-the-bad-and-the-ugly-of-the-iphone/</guid>
<description><![CDATA[The Good:   supports L2TP, PPTP and Cisco IPSec VPN The Bad:   doesn&#8217;t support open standards ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The Good:   supports L2TP, PPTP and Cisco IPSec VPN</p>
<p>The Bad:   doesn&#8217;t support open standards like Openvpn</p>
<p>The Ugly:  doesn&#8217;t support</p>
<ul>
<li>Pure IPSec</li>
<li>IPSec Machine Certificates</li>
<li>PPP User Certificates or SmartCard (EAP-TLS)</li>
<li>L2TP/IPSec Kerberos Authentication Token</li>
<li>RSA-SecureID (EAP-RSA) Authentication Token</li>
</ul>
<p>In the mean time I was able to setup a pptp server on my Ubuntu box. It works and my Ipod Touch can connect to it (but for some reason the pptpd daemon randomly dies after some usage&#8230;).</p>
<p>However I&#8217;ve been struggling with routing the ppp0 interface (the connection of my Ipod through the VPN) to my eth0 interface (where my Internet traffic comes and goes). I&#8217;ve asked some random irc geniouses, all with their own iptable configuration ideas, but in the end, none of that worked and I was left with a messed up iptable configuration.</p>
<p>So it&#8217;s a good thing to keep in mind:  If your iptables are screwed up, enter:</p>
<blockquote>
<p style="text-align:center;"><em><strong>sudo iptables -flush</strong></em></p>
</blockquote>
<p style="text-align:left;">this will restore your routes to default.</p>
<p style="text-align:left;">
<p style="text-align:left;">Anyway I&#8217;m planning to move away from pptp since I found some articles saying that it isn&#8217;t really as secure.</p>
<p style="text-align:left;">So now I&#8217;m installing Openswan, an IPSec implementation. The configurations isn&#8217;t really as easy as I hoped, but I&#8217;ll be very happy if I even can connect to it with my Ipod.</p>
<p style="text-align:left;">
<p style="text-align:left;">***UPDATE***</p>
<p style="text-align:left;">
<p style="text-align:left;">I let go of Openswan because people suggested me that IPSec was too much overkill for just my Ipod.</p>
<p style="text-align:left;">So I finally figured out what my problem was with PPTP. My Ipod was able to connect to the internet after all.</p>
<p>A quick   ping 64.233.187.99   did the trick, but  ping google.com   didn&#8217;t work at all.</p>
<p>This means that my Ipod had no way to contact the DNS server.</p>
<p>After taking another look at the configuration files of ppp, I soon noticed the unmarked ms-dns settings.</p>
<p>Uncommented that and added the ip address of my router and VOILA! My Ipod could now successfully connect to the internet through my VPN!</p>
<p>Moral of the story:  Always check the options in your configurations files. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Configuració roadwarrior amb NAT per OpenSwan]]></title>
<link>http://carlesbonfill.com/2008/06/02/configuracio-roadwarrior-amb-nat-per-openswan/</link>
<pubDate>Mon, 02 Jun 2008 22:04:10 +0000</pubDate>
<dc:creator>carlesbonfill</dc:creator>
<guid>http://carlesbonfill.com/2008/06/02/configuracio-roadwarrior-amb-nat-per-openswan/</guid>
<description><![CDATA[Avui he suat i he &#8220;perdut&#8221; un temps increible en la configuració d&#8217;un client vpn m]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Avui he suat i he &#8220;perdut&#8221; un temps increible en la configuració d&#8217;un client vpn mobil, roadwarrior, contra un gateway vpn <a href="http://es.wikipedia.org/wiki/IPsec">Ipsec</a> Linux <a href="http://fedoraproject.org/">Fedora Core</a> 6, amb <a href="www.openswan.org">Openswan</a> 2.4.</p>
<p>Necessitava fer una configuració ràpida i pràctica: PSK compartida. He tutlitzat un <a href="http://www.zyxel.com/web/product_family_detail.php?PC1indexflag=20040908175941&#38;CategoryGroupNo=288CE451-0F22-461F-B312-7CF3C12AAFF8">clent vpn de Zyxell</a>, que està basat en el client VPN <a href="http://www.thegreenbow.com/">Greenbow</a>. És comptaible amb totes les versions Windows, inclós Vista. La veritat és que la configuració ha estat ràpida, i de seguida he establert la primera i segona fase. Però tenia problemes d&#8217;enrutament. Un cop la connexió estava establerta, des del roadwarrior, feia ping al gateway, el paquet apareixia a l&#8217;intèrficie d&#8217;ipsec, però ja no apareixia amb el tcpdump en la intèrficie de la lan. A on desapareixia el packet?</p>
<p>Per suposat, regles de forward, iptables, l&#8217;opció d&#8217;ip_forward estava tot habilitat. Però tenia clar que tenia un problma d&#8217;enrutament.</p>
<p>Després de Googlejar, documentar-me, testejar, etc&#8230; fent prova i error, he trobat la solució, aquesta línea en la connexió openswan referent al roadwarrior:</p>
<p><em>rightsubnet=vhost:%no,%priv</em></p>
<p>Aquesta línea és indispensable, si utlitzes roadwarriors darrera un router amb NAT. Un 0 a la documentació Openswan que no ho tenia cobert.</p>
<p>L&#8217;entorn gràfic d client Greenbow, és més usable que el que utilitzava fins ara, el Safenet.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Goodbye Ubuntu]]></title>
<link>http://technicalmumblings.wordpress.com/2008/05/23/goodbye-ubuntu/</link>
<pubDate>Fri, 23 May 2008 07:34:46 +0000</pubDate>
<dc:creator>Paul Roach</dc:creator>
<guid>http://technicalmumblings.wordpress.com/2008/05/23/goodbye-ubuntu/</guid>
<description><![CDATA[Well, the time has come to say goodbye to Ubuntu.  It&#8217;s been a fun relationship, but alas it]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well, the time has come to say goodbye to Ubuntu.  It&#8217;s been a fun relationship, but alas it&#8217;s time for it to end.  That&#8217;s not to say that the problem I have is with Ubuntu &#8211; it&#8217;s actually with a variety of circumstances that have caused me a MAJOR headache.</p>
<p>The problem lay within Debian and the OpenSSL project.  It seems that the package maintainers for Debian <em>fixed</em> a bug in OpenSSL without passing the fix upstream to the OpenSSL maintainers to check.  This <em>fix</em> has resulted in a major insecurity in a vast number of packages that depend on OpenSSL for any distribution that sits downstream of Debian.</p>
<p><a href="http://www.technologyreview.com/Infotech/20801/" target="_blank">http://www.technologyreview.com/Infotech/20801/</a></p>
<p>While there is now an official resolution for this problem, it&#8217;s shaken my confidence in the way the Debian package maintainers apply bugfixes in their haste to get new releases out the door.</p>
<p>For those interested, the official resolution page on the Debian site is <a href="http://wiki.debian.org/SSLkeys" target="_blank">here</a>.</p>
<p>Bear in mind that I run 5 Ubuntu machines (desktops and servers, work and home) each running some of the affected programs&#8230;..it&#8217;s a phenomenal headache for me.  Now picture those with hundreds (even thousands) of servers and workstations.   I can&#8217;t begin to imagine the trauma they are going through&#8230;.</p>
<p>It&#8217;s because of this break of confidence that I have decided to cease using Ubuntu.  If the Debian package maintainers have disregarded policy in order to <em>add value</em> to their distribution in this case, where else have they fixed issues that may or may not have significant consequences&#8230;</p>
<p>I&#8217;ve played with Fedora previously &#8211; quite liked it as a distro, but preferred the user friendliness of Ubuntu &#8211; easy to use, but with all the benefits associated with most other Linux distributions.  I could do a Ubuntu install in 15 minutes that would be suitable for most people, with full hardware support &#8211; but for more intensive server applications, all the boxes were ticked too.</p>
<p>So, I&#8217;m now in the process of my Fedora migration&#8230;.starting with this laptop.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Аццкий конструктор IPSec]]></title>
<link>http://schnorrer.wordpress.com/2008/02/13/l2tp-vpn/</link>
<pubDate>Wed, 13 Feb 2008 05:03:34 +0000</pubDate>
<dc:creator>levi</dc:creator>
<guid>http://schnorrer.wordpress.com/2008/02/13/l2tp-vpn/</guid>
<description><![CDATA[До настройки OpenSwan я думал, что имею представление о Linux-шаманстве. Но это чудо, усыпанное неза]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>До настройки OpenSwan я думал, что имею представление о Linux-шаманстве. Но это чудо, усыпанное независимыми ручками настройки, тумблерочками и кнопочками, бьет все рекорды. И, что характерно для подобных продуктов, уже отлаженный, рабочий конфиг выглядит настолько очевидным и логичным, что поневоле удивляешься: с чем там можно было бороться столько дней подряд?</p>
<p>Но все закончилось хорошо. IPSec с сертификатами и L2TP-туннель заработали, офисная сеть открылась избранным (<i>roadwarriors</i>).</p>
<p>P.S. Почему у l2tpns нельзя указать локальный IP и как это хозяйство роутить — осталось загадкой. Пришлось ставить обратно l2tpd.</p>
<p><b>UPD:</b> Судя по рейтингам поста, людей интересует сам конфиг. Исправляю упущение.</p>
<p>Задача: открыть доступ к ресурсам корпоративной сети для сотрудников, которые находятся дома или в командировке.</p>
<p>Подзадача: создать безопасный канал связи между роутером корпоративной сети (внешний адрес, для определенности, 80.80.80.219/29) и компьютером сотрудника.</p>
<p>Листинг /etc/ipsec.conf:</p>
<pre class="brush: cpp;">
version 2.0

config setup
        nat_traversal=yes                    # для тех, кто за NAT-ом
        interfaces=%defaultroute
        virtual_private=%v4:80.80.80.216/29  # подсеть, в которую входит наш секурный хост

conn %default
        keyingtries=1
        compress=yes
        disablearrivalcheck=no
        authby=rsasig
        leftrsasigkey=%cert
        rightrsasigkey=%cert

conn roadwarrior-l2tp                   # имя соединения произвольное, т.к. соединение
                                        # выбирается опенсваном по параметрам
        left=80.80.80.219               # должен быть в virtual_private
        leftnexthop=80.80.80.217        # инет-роутер подсети
        leftcert=mydomain.ru.pem        # сертификат должен лежать в /etc/ipsec.d/certs
        leftprotoport=17/1701
        right=%any                      # принимаем соединения с любого адреса
        rightsubnet=vhost:%no,%priv
        rightprotoport=17/1701
        pfs=no
        auto=add
        type=transport

include /etc/ipsec.d/examples/no_oe.conf

conn block
        auto=ignore

conn private-or-clear
        auto=ignore

conn clear-or-private
        auto=ignore

conn clear
        auto=ignore

conn packetdefault
        auto=ignore</pre>
<p>P. P. S. OpenSwan ничего не знает ни о настройках L2TP, ни о топологии внутренней подсети, к которой предполагается открыть доступ через VPN. Подобные тонкости не фигурируют в ipsec.conf. Применительно к L2TP, задача IPSec только в создании безопасного транспорта между двумя хостами.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
