<?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>mcBachmann.de TechBlog &#187; windows</title>
	<atom:link href="http://blog.mcbachmann.de/category/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mcbachmann.de</link>
	<description>Der Blog zur Website ;-)</description>
	<lastBuildDate>Thu, 22 Jul 2010 08:55:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>In Brief: Linux 2.6.32 &#8211; KSM and KVM</title>
		<link>http://blog.mcbachmann.de/linux/in-brief-linux-2-6-32-ksm-and-kvm</link>
		<comments>http://blog.mcbachmann.de/linux/in-brief-linux-2-6-32-ksm-and-kvm#comments</comments>
		<pubDate>Fri, 01 Jan 2010 21:53:56 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[In Brief]]></category>
		<category><![CDATA[KSM]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=459</guid>
		<description><![CDATA[Can you imagine to have 52 Windows XP virtual machines &#8211; 1GB RAM each &#8211; running on a server with just 16GB? Ok, sounds a lot&#8230; but we are near the 16GB barrier. Anyway, this is one of the features in the new 2.6.32 release. Its called Kernel Samepage Merging, KSM. 
The approach is you [...]]]></description>
			<content:encoded><![CDATA[<p>Can you imagine to have 52 Windows XP virtual machines &#8211; 1GB RAM each &#8211; running on a server with just 16GB? Ok, sounds a lot&#8230; but we are near the 16GB barrier. Anyway, this is one of the features in the new 2.6.32 release. Its called <strong>K</strong>ernel <strong>S</strong>amepage <strong>M</strong>erging, KSM. <span id="more-459"></span></p>
<p>The approach is you start more than one VM and tell the kernel that they probably will use identically memory segments. Than the kernel scans for them and if one is found, it will be kind of hardlinked and the double memory will be freed &#8211; imagine that for a lot of same (eg. WinXP) VMs. But its not only useable for KVM &#8211; you can use the syscall wherever you think its applicable and is not already done via a shared library.</p>
<p>More information on KSM can be found at <a href="http://kernelnewbies.org/LinuxChanges#head-d3f32e41df508090810388a57efce73f52660ccb">Linux Kernel Newbies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/in-brief-linux-2-6-32-ksm-and-kvm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Bluescreen: 0&#215;0000007B INACCESSIBLE_BOOT_DEVICE</title>
		<link>http://blog.mcbachmann.de/linux/windows-bluescreen-0x0000007b-inaccessible_boot_device</link>
		<comments>http://blog.mcbachmann.de/linux/windows-bluescreen-0x0000007b-inaccessible_boot_device#comments</comments>
		<pubDate>Sun, 21 Jun 2009 08:25:47 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[rescue]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=322</guid>
		<description><![CDATA[After my yesterdays blog entry Edit Windows Registry from Linux I could see the error windows showed me in a bluescreen: 0&#215;0000007B INACCESSIBLE_BOOT_DEVICE.
This was after I changed the motherboard and the CPU. My first thought was &#8216;Oh no, I&#8217;ll have to reinstall it&#8217; &#8211; but it went all good. 
If you do the things described [...]]]></description>
			<content:encoded><![CDATA[<p>After my yesterdays blog entry <a href="http://blog.mcbachmann.de/linux/edit-windows-registry-from-linux">Edit Windows Registry from Linux</a> I could see the error windows showed me in a bluescreen: 0&#215;0000007B INACCESSIBLE_BOOT_DEVICE.</p>
<p>This was after I changed the motherboard and the CPU. My first thought was &#8216;Oh no, I&#8217;ll have to reinstall it&#8217; &#8211; but it went all good. <span id="more-322"></span></p>
<blockquote><p>If you do the things described here you are at your own risk &#8211; it could damage your system permanently. If you decide to do it anyway, please use copy &#038; paste to not miss anything.</p></blockquote>
<p>On notice at first: your motherboard needs to support a normal IDE mode &#8211; we just reset the normal IDE drivers so Windows can boot and you can later reinstall some S-ATA drivers.</p>
<p>So lets start, first you need to boot some Linux which is able to <strong>write NTFS</strong> partitions and has the tools <strong>chntpw</strong> and <strong>cabextract</strong> (I had a multiboot with Ubuntu, so it was no problem).</p>
<p>First, lets mount the NTFS partition (we assume its the first partition on the first harddisk):</p>
<blockquote><p><code>mkdir /mnt/windows<br />
mount /dev/sda1 /mnt/windows<br />
cd /mnt/windows</code></p></blockquote>
<p>Next we need to go to the Driver Cache and extract standard IDE drivers from some cabinet files:</p>
<blockquote><p><code>cd `ls | grep -w -i windows`<br />
cd "`ls | grep -w -i "driver cache"`"<br />
cd `ls | grep -w -i i386`</code></p></blockquote>
<p>These <em>`ls &#8230; | grep &#8230;`</em> things are necessary, because the case of the directory name can differ &#8211; so we workaround this.</p>
<p>The knowledge base article from Microsoft is a bit outdated, because the get all needed files from <strong>driver.cab</strong>, but in my case <strong>Service Pack 2</strong> was installed and the files were in a slightly different location: <strong>sp2.cab</strong>.</p>
<p>So to be sure to extract <strong>all</strong> files (even with Service Pack 3), do the following extractions:</p>
<blockquote><p><code>DEST="../../`ls ../../ | grep -w -i system32`"<br />
cabextract -d $DEST -F atapi.sys driver.cab sp2.cab sp3.cab<br />
cabextract -d $DEST -F Intelide.sys driver.cab sp2.cab sp3.cab<br />
cabextract -d $DEST -F Pciide.sys driver.cab sp2.cab sp3.cab<br />
cabextract -d $DEST -F Pciidex.sys driver.cab sp2.cab sp3.cab</code></p></blockquote>
<p>Last step is updating the registry. Unfortunately its not possible with <strong>chntpw</strong> to import <em>reg</em>-Files &#8211; but to not enter all registry keys by hand, I wrote a chntpw-script to set the necessary values. You can download it here: <a href='http://blog.mcbachmann.de/wp-content/uploads/2009/06/mergeide.chntpw'>chntpw-mergeide script</a>.</p>
<p>To apply it, save the script on your desktop and do the following steps:</p>
<blockquote><p><code>cd $DEST<br />
cd `ls | grep -w -i config`<br />
chntpw -u Administrator system < ~/Desktop/mergeide.chntpw</code></p></blockquote>
<p>Thats all, you can now unmount the windows partition and reboot. Make sure your BIOS is set to standard IDE emulation.</p>
<blockquote><p><code>cd ~<br />
umount /mnt/windows</code></p></blockquote>
<p>Links I used:</p>
<ul>
<li><a href="http://support.microsoft.com/kb/314082">KB: ...Stop 0x0000007B error after you move the Windows XP system disk...</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/windows-bluescreen-0x0000007b-inaccessible_boot_device/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Edit Windows Registry from Linux</title>
		<link>http://blog.mcbachmann.de/linux/edit-windows-registry-from-linux</link>
		<comments>http://blog.mcbachmann.de/linux/edit-windows-registry-from-linux#comments</comments>
		<pubDate>Sat, 20 Jun 2009 15:27:33 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[rescue]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=315</guid>
		<description><![CDATA[Its a pity when Windows just does one thing: reboot. You have the chance to see the bluescreen for just some milliseconds but not more &#8211; but how disabling the autoreboot when Windows doesn&#8217;t let you edit the settings? There is help with Linux and the tool chntpw&#8230; 
Mount the Windows device in Linux and [...]]]></description>
			<content:encoded><![CDATA[<p>Its a pity when Windows just does one thing: reboot. You have the chance to see the bluescreen for just some milliseconds but not more &#8211; but how disabling the autoreboot when Windows doesn&#8217;t let you edit the settings? There is help with Linux and the tool <strong>chntpw</strong>&#8230; <span id="more-315"></span></p>
<p>Mount the Windows device in Linux and do the following commands (this is for disabling auto-reboot, you can also edit all other registry values!):</p>
<blockquote><p><code><br />
cd Windows/System32/Config<br />
chntpw -u Administrator system<br />
> cd ControlSet001\Control\CrashControl<br />
> ed AutoReboot<br />
-> 0<br />
> q<br />
Write hive files? (y/n) [n] : y<br />
</code></p></blockquote>
<p>Hint: Instead of typing <em>cd ControlSet001</em> you can also type <em>ls</em> to find out which other control sets exists and you may need to change.</p>
<p>Links I used:</p>
<ul>
<li><a href="http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_Vista/Q_24015966.html">EE Forum &#8211; Prevent Auto Reboot on BSOD from CMD</a></li>
<li><a href="http://books.google.de/books?id=YaSWlOOxshsC&#038;pg=PA264">Knoppix Hacks</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/edit-windows-registry-from-linux/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[OpenVPN] Teil 5: Client Zertifikat zurückziehen</title>
		<link>http://blog.mcbachmann.de/linux/openvpn-teil-5-client-zertifikat-zuruckziehen</link>
		<comments>http://blog.mcbachmann.de/linux/openvpn-teil-5-client-zertifikat-zuruckziehen#comments</comments>
		<pubDate>Wed, 17 Dec 2008 10:46:55 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=125</guid>
		<description><![CDATA[Hallo,
hier nun der letzte Teil. Weil es ja nun doch vorkommen kann, das zum Beispiel ein Mitarbeiter die Firma wechselt, will man auch in der Lage sein, dessen OpenVPN Zugang zu sperren. Wie das geht zeige ich jetzt. 

Client Zertifikat zurückziehen

Wieder geht es zuerst mit der Standard-Prozedur los: dem einlesen der Variablen.
cd /etc/openvpn/easy-rsa
source vars

Anschließend wird [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>hier nun der letzte Teil. Weil es ja nun doch vorkommen kann, das zum Beispiel ein Mitarbeiter die Firma wechselt, will man auch in der Lage sein, dessen OpenVPN Zugang zu sperren. Wie das geht zeige ich jetzt. <span id="more-125"></span><br/><br/></p>
<hr />
<strong>Client Zertifikat zurückziehen</strong></p>
<hr /><br/></p>
<p>Wieder geht es zuerst mit der Standard-Prozedur los: dem einlesen der Variablen.</p>
<blockquote><p><code>cd /etc/openvpn/easy-rsa<br />
source vars</code></p></blockquote>
<p><br/></p>
<p>Anschließend wird das Zertifikat invalidiert.<br/></p>
<blockquote><p><code>./revoke-full nutzer1<br />
Using configuration from /etc/openvpn/easy-rsa/openssl.cnf<br />
Revoking Certificate 02.<br />
Data Base Updated<br />
Using configuration from /etc/openvpn/easy-rsa/openssl.cnf<br />
basv.crt: /C=DE/ST=Saxony/L=Chemnitz/O=Knuddelbunte Welt Organisation/CN=nutzer1/emailAddress=nutzer1@hi.n.de<br />
error 23 at 0 depth lookup:certificate revoked</code></p></blockquote>
<p><br/></p>
<p>Der <strong>error 23</strong> am Ende ist vollkommen normal und gewollt, denn er sagt aus das OpenVPN das Zertifikat nach dem Löschen überprüft und als ungültig befunden hat.<br/><br/></p>
<p>Jetzt kopieren wir die neue <strong>crl.pem</strong> an eine für OpenVPN lesbare Stelle.<br/></p>
<blockquote><p><code>cp /etc/openvpn/easy-rsa/keys/crl.pem /etc/openvpn/</code></p></blockquote>
<p><br/></p>
<p>Und sagen OpenVPN das es alle aktiven Verbindungen trennen soll. Dies sollte vorher angekündigt sein, da wirklich jede VPN Verbindung gekappt wird.<br/></p>
<blockquote><p><code>pkill -SIGHUP openvpn</code></p></blockquote>
<p><br/></p>
<p>Ich hoffe die Kurzanleitung konnte helfen OpenVPN aufzusetzen und einzurichten. Für Kommentare, Anregungen und Kritik bin ich natürlich dankbar.</p>
<p>Tschau<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/openvpn-teil-5-client-zertifikat-zuruckziehen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[OpenVPN] Teil 4: Client konfigurieren</title>
		<link>http://blog.mcbachmann.de/linux/openvpn-teil-4-client-konfigurieren</link>
		<comments>http://blog.mcbachmann.de/linux/openvpn-teil-4-client-konfigurieren#comments</comments>
		<pubDate>Wed, 17 Dec 2008 10:34:51 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=117</guid>
		<description><![CDATA[Hallo,
kurz vorm Ende: der 4. Teil. Hier geht es um die Einrichtung der Clients &#8211; sowohl Linux als auch Windows. 

Einrichtung des Clients

OpenVPN unter Linux kann jeder über seinen Paketmanager installieren. Für Windows empfehle ich die Version &#8220;OpenVPN Package 2.0.9, GUI 1.0.3&#8243; oder neuer.
Vom Server benötigen wir jetzt die folgenden Dateien für den Client:
ca.crt
nutzer1.crt
nutzer1.key

Diese werden [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>kurz vorm Ende: der 4. Teil. Hier geht es um die Einrichtung der Clients &#8211; sowohl Linux als auch Windows. <span id="more-117"></span><br/><br/></p>
<hr />
<strong>Einrichtung des Clients</strong></p>
<hr /><br/></p>
<p>OpenVPN unter Linux kann jeder über seinen Paketmanager installieren. Für Windows empfehle ich die Version &#8220;OpenVPN Package 2.0.9, GUI 1.0.3&#8243; oder neuer.</p>
<p>Vom Server benötigen wir jetzt die folgenden Dateien für den Client:</p>
<blockquote><p><code>ca.crt<br />
nutzer1.crt<br />
nutzer1.key</code></p></blockquote>
<p><br/></p>
<p>Diese werden &#8211; je nach Linux oder Windows &#8211; in die folgenden Verzeichnisse kopiert:</p>
<ul>
<li>Linux: <strong>/etc/openvpn</strong></li>
<li>Windows: <strong>C:\Programme\OpenVPN\Config</strong></li>
</ul>
<p><br/></p>
<p>Anschließend legen wir im jeweiligen Verzeichnis noch die Konfigurationsdatei an.</p>
<ul>
<li>Linux: <strong>client.conf</strong></li>
<li>Windows: <strong>client.ovpn</strong></li>
</ul>
<p><br/></p>
<p>Der Inhalt der Datei lautet folgendermaßen.</p>
<blockquote><p><code>client<br />
dev tun<br />
proto udp<br />
remote vpn.hi.de 1194<br />
resolv-retry infinite<br />
nobind<br />
; user nobody       - Linux only<br />
; group nogroup     - Linux only<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert nutzer1.crt<br />
key nutzer1.key<br />
ns-cert-type server<br />
comp-lzo<br />
verb 3</code></p></blockquote>
<p><br/></p>
<p>Nun noch schnell die auf dem Server erstellen Client-Dateien <strong>nutzer1.crt</strong> und <strong>nutzer1.key</strong> löschen und&#8230;<br/><br/></p>
<p>&#8230;das wars. Jetzt kann man das VPN unter Linux als root mit dem Befehl</p>
<blockquote><p><code>cd /etc/openvpn<br />
openvpn client.conf</code></p></blockquote>
<p>bzw. unter Windows mit einem Klick auf das Symbol neben der Uhr starten.<br/><br/></p>
<p>Im nächsten und letzten Teil gibts dann noch eine Beschreibung wie man das Zertifikat eines Clients ungültig macht.<br/><br/></p>
<p>Für eine etwas ausführlichere Anleitung empfehle ich entweder die OpenVPN Dokumentation oder den sehr guten Wiki Eintrag: <a href="http://wiki.openvpn.eu/index.php/Erzeugen_einer_PKI_mit_EasyRSA">Erzeugen einer PKI mit EasyRSA</a>.<br/><br/></p>
<p>Tschau<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/openvpn-teil-4-client-konfigurieren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[OpenVPN] Teil 3: Anlegen eines Clients</title>
		<link>http://blog.mcbachmann.de/linux/openvpn-teil-3-anlegen-eines-clients</link>
		<comments>http://blog.mcbachmann.de/linux/openvpn-teil-3-anlegen-eines-clients#comments</comments>
		<pubDate>Wed, 17 Dec 2008 10:12:17 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=109</guid>
		<description><![CDATA[Hallo,
heute nun der 3. Teil der OpenVPN Kurzanleitung: das Anlegen eines Clients. 

Anlegen eines Clients

Zuerst müssen wir wieder die Standard-Variablen initialisieren, falls das Terminal von der Servereinrichtung zwischenzeitlich geschlossen wurde.
cd /etc/openvpn/easy-rsa
source vars

Jetzt gibt es 2 Möglichkeiten. Hier beschreibe ich, wie man ein Zertifikat erstellt bei welchem der Client kein extra Passwort braucht, sondern nur das [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>heute nun der 3. Teil der OpenVPN Kurzanleitung: das Anlegen eines Clients. <span id="more-109"></span><br/><br/></p>
<hr />
<strong>Anlegen eines Clients</strong></p>
<hr /><br/></p>
<p>Zuerst müssen wir wieder die Standard-Variablen initialisieren, falls das Terminal von der Servereinrichtung zwischenzeitlich geschlossen wurde.</p>
<blockquote><p><code>cd /etc/openvpn/easy-rsa<br />
source vars</code></p></blockquote>
<p><br/></p>
<p>Jetzt gibt es 2 Möglichkeiten. Hier beschreibe ich, wie man ein Zertifikat erstellt bei welchem der Client kein extra Passwort braucht, sondern nur das Zertifikat. Will man zusätzlich noch ein Passwort vergeben, dann nimmt man statt dem Befehl <strong>./build-key</strong> den Befehl <strong>./build-key-pass</strong>.</p>
<blockquote><p><code>./build-key nutzer1<br />
Country Name (2 letter code) [DE]:<br />
State or Province Name (full name) [Saxony]:<br />
Locality Name (eg, city) [Chemnitz]:<br />
Organization Name (eg, company) [Knuddelbunte Welt Organisation]:<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, your name or your server's hostname) [nutzer1]:<br />
Email Address [nutzer1@hi.n.de]:</p>
<p>Please enter the following 'extra' attributes<br />
to be sent with your certificate request<br />
A challenge password []:abcd<br />
An optional company name []:<br />
Using configuration from /etc/openvpn/easy-rsa/openssl.cnf<br />
Check that the request matches the signature<br />
Signature ok<br />
The Subject's Distinguished Name is as follows<br />
countryName           <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'DE'<br />
stateOrProvinceName   <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'Saxony'<br />
localityName          <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'Chemnitz'<br />
organizationName      <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'Knuddelbunte Welt Organisation'<br />
commonName            <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'nutzer1'<br />
emailAddress          :IA5STRING:'nutzer1@hi.n.de'<br />
Certificate is to be certified until Sep 20 08:18:53 2018 GMT (3650 days)<br />
Sign the certificate? [y/n]:y</p>
<p>1 out of 1 certificate requests certified, commit? [y/n]y<br />
Write out database with 1 new entries<br />
Data Base Updated</code></p></blockquote>
<p><br/></p>
<p>Tschau<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/openvpn-teil-3-anlegen-eines-clients/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[OpenVPN] Teil 2: Anlegen der Zertifikate und Schlüssel für den Server</title>
		<link>http://blog.mcbachmann.de/linux/openvpn-teil-2-anlegen-der-zertifikate-und-schlussel-fur-den-server</link>
		<comments>http://blog.mcbachmann.de/linux/openvpn-teil-2-anlegen-der-zertifikate-und-schlussel-fur-den-server#comments</comments>
		<pubDate>Mon, 15 Dec 2008 10:43:01 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=107</guid>
		<description><![CDATA[Hallo,
im Teil 2 beschreibe ich, wie man die Zertifikate und Schlüssel für den Server anlegt.
Ausserdem wird gleich der Grundstein gelegt, damit man später auch bereits vergebene Zertifikate zurückziehen kann. 

Update 08.03.2010: Variable KEY_NAME exportiert
Update 21.09.2009: Variablen-Export hinter &#8220;source ./vars&#8221; verschoben (bei Debian Lenny werden sie sonst überschrieben).



Anlegen der Zertifikate &#038; Schlüssel für den Server

Damit das [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>im Teil 2 beschreibe ich, wie man die Zertifikate und Schlüssel für den Server anlegt.</p>
<p>Ausserdem wird gleich der Grundstein gelegt, damit man später auch bereits vergebene Zertifikate zurückziehen kann. <span id="more-107"></span></p>
<hr />
<strong>Update 08.03.2010: Variable KEY_NAME exportiert</strong><br />
<strong>Update 21.09.2009: Variablen-Export hinter &#8220;source ./vars&#8221; verschoben (bei Debian Lenny werden sie sonst überschrieben).</strong></p>
<hr />
<br/></p>
<hr />
<strong>Anlegen der Zertifikate &#038; Schlüssel für den Server</strong></p>
<hr /><br/></p>
<p>Damit das Rad nicht doppelt erfunden wird, haben die OpenVPN Entwickler die Tool-Sammlung <em>easy-rsa</em> erstellt. Diese kopiert man sich in sein OpenVPN Verzeichnis:</p>
<blockquote><p><code>cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/ /etc/openvpn/easy-rsa<br />
cd /etc/openvpn/easy-rsa</code></p></blockquote>
<p><br/></p>
<p>Anschließend definiert man ein paar Standardwerte in der globalen Konfiguration <strong>/etc/openvpn/easy-rsa/vars</strong>:</p>
<blockquote><p><code>export KEY_COUNTRY="DE"<br />
export KEY_PROVINCE="Saxony"<br />
export KEY_CITY="Chemnitz"<br />
export KEY_ORG="Knuddelbunte Welt Organisation"<br />
export KEY_EMAIL="hier_kommt_die_email@hi.n.de"</code></p></blockquote>
<p><br/></p>
<p>Nun lesen wir die Standardwerte ein&#8230;</p>
<blockquote><p><code>source vars</code></p></blockquote>
<p><br/></p>
<p>&#8230; und initialisieren die Schlüssel</p>
<blockquote><p><code>./clean-all</code></p></blockquote>
<p><br/></p>
<p>Jetzt ist es an der Zeit, die Zertifikat Autorität und das Server Zertifikat anzulegen.<br />
Zuerst die Autorität (die vorher festgelegten Standardwerte werden automatisch voreingestellt):</p>
<blockquote><p><code>./build-ca<br />
Country Name (2 letter code) [DE]:<br />
State or Province Name (full name) [Saxony]:<br />
Locality Name (eg, city) [Chemnitz]:<br />
Organization Name (eg, company) [Knuddelbunte Welt Organisation]:<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, your name or your server's hostname) [Knuddelbunte Welt Organisation CA]:<br />
Email Address [hier_kommt_die_email@hi.n.de]:</code></p></blockquote>
<p><br/></p>
<p>Und dann das Server Zertifikat:</p>
<blockquote><p><code>./build-key-server server<br />
Country Name (2 letter code) [DE]:<br />
State or Province Name (full name) [Saxony]:<br />
Locality Name (eg, city) [Chemnitz]:<br />
Organization Name (eg, company) [Knuddelbunte Welt Organisation]:<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, your name or your server's hostname) [server]:<br />
Email Address [hier_kommt_die_email@hi.n.de]:<br/><br />
Please enter the following 'extra' attributes<br />
to be sent with your certificate request<br />
A challenge password []:<br />
An optional company name []:<br />
Using configuration from /etc/openvpn/easy-rsa/openssl.cnf<br />
Check that the request matches the signature<br />
Signature ok<br />
The Subject's Distinguished Name is as follows<br />
countryName           <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'DE'<br />
stateOrProvinceName   <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'Saxony'<br />
localityName          <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'Chemnitz'<br />
organizationName      <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'Knuddelbunte Welt Organisation'<br />
commonName            <img src='http://blog.mcbachmann.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> RINTABLE:'server'<br />
emailAddress          :IA5STRING:'hier_kommt_die_email@hi.n.de'<br />
Certificate is to be certified until Sep 20 08:15:58 2018 GMT (3650 days)<br />
Sign the certificate? [y/n]:y<br/><br/><br />
1 out of 1 certificate requests certified, commit? [y/n]y<br />
Write out database with 1 new entries<br />
Data Base Updated<br />
</code></p></blockquote>
<p><br/></p>
<p>Zum Schluß noch schnell die Diffie Hellmann Parameter generieren&#8230;</p>
<blockquote><p><code>./build-dh</code></p></blockquote>
<p><br/></p>
<p>&#8230; und die <strong>crl.pem</strong>-Datei erstellen, mit der es später möglich ist, vergebene Zertifikate ungültig zu machen.</p>
<blockquote><p><code>export KEY_CN=<br />
export KEY_OU=<br />
export KEY_NAME=<br />
openssl ca -gencrl -out /etc/openvpn/crl.pem -config /etc/openvpn/easy-rsa/openssl.cnf</code></p></blockquote>
<p><br/></p>
<p>Tschau<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/openvpn-teil-2-anlegen-der-zertifikate-und-schlussel-fur-den-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[OpenVPN] Teil 1: Server Konfiguration</title>
		<link>http://blog.mcbachmann.de/linux/openvpn-teil-1-server-konfiguration</link>
		<comments>http://blog.mcbachmann.de/linux/openvpn-teil-1-server-konfiguration#comments</comments>
		<pubDate>Mon, 15 Dec 2008 10:39:12 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=100</guid>
		<description><![CDATA[Update: Key-Eintrag hinzugefügt, Danke an Sven Truderung.
Hallo,
da OpenVPN doch einiges an Einarbeitungszeit erfordert und die nicht jeder hat, bzw. auch nicht an Details interessiert sein wird, stelle ich meine Lösung hier mal als Mehrteiler online.
Falls darin Fehler enthalten sind oder Sicherheitsmängel würde ich mich über einen Kommentar dazu freuen. Vielen Dank.
Diese Anleitung wurde mit OpenVPN [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Key-Eintrag hinzugefügt, Danke an Sven Truderung.</strong></p>
<p>Hallo,</p>
<p>da OpenVPN doch einiges an Einarbeitungszeit erfordert und die nicht jeder hat, bzw. auch nicht an Details interessiert sein wird, stelle ich meine Lösung hier mal als Mehrteiler online.</p>
<p>Falls darin Fehler enthalten sind oder Sicherheitsmängel würde ich mich über einen Kommentar dazu freuen. Vielen Dank.</p>
<p>Diese Anleitung wurde mit OpenVPN 2.1_rc9 erstellt.<br />
Als Windows Client eignet sich die Version &#8220;OpenVPN Package 2.0.9, GUI 1.0.3&#8243;.<span id="more-100"></span><br/><br/></p>
<hr />
<strong>Konfiguration des Servers</strong></p>
<hr /><br/></p>
<p>Am schnellsten geht dies, wenn man einfach die Beispielkonfiguration übernimmt (ich gehe davon aus das OpenVPN bereits installiert wurde):</p>
<blockquote><p><code>cd /etc/openvpn<br />
cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz .<br />
gunzip server.conf.gz</code></p></blockquote>
<p><br/></p>
<p>Dann überprüft man, ob folgende Werte in der Konfiguration (server.conf) gesetzt sind:</p>
<blockquote><p><code>port 1194<br />
proto udp<br />
dev tun<br />
ca easy-rsa/keys/ca.crt<br />
cert easy-rsa/keys/server.crt<br />
key easy-rsa/keys/server.key<br />
dh easy-rsa/keys/dh1024.pem<br />
crl-verify crl.pem<br />
server 10.8.0.0 255.255.255.0<br />
ifconfig-pool-persist ipp.txt<br />
push "route 192.168.2.0 255.255.255.0"<br />
keepalive 10 120<br />
comp-lzo<br />
user nobody<br />
group nogroup<br />
persist-key<br />
persist-tun<br />
status openvpn-status.log<br />
verb 3<br />
</code></p></blockquote>
<p><br/></p>
<p>OpenVPN verwendet damit den IP-Bereich 10.8.0.0/24 und übergibt dem Client eine Route auf den IP-Bereich 192.168.2.0/24, welcher in diesem Falle das lokale Netz darstellt.</p>
<p>Tschau<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/openvpn-teil-1-server-konfiguration/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thunderbird: Alle Ordner/Newsgroups gleichzeitig durchsuchen</title>
		<link>http://blog.mcbachmann.de/linux/thunderbird-alle-ordnernewsgroups-gleichzeitig-durchsuchen</link>
		<comments>http://blog.mcbachmann.de/linux/thunderbird-alle-ordnernewsgroups-gleichzeitig-durchsuchen#comments</comments>
		<pubDate>Tue, 25 Nov 2008 10:31:16 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[suche]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=88</guid>
		<description><![CDATA[Hallo,
wer schonmal im Thunderbird nicht nur das Mailkonto von GMX, sondern auch das von Web.de durchsuchen wollte kennt das Problem. Die Thunderbird Suche (Tastenkombination &#60;Shift+f&#62;) kann nur maximal den Ordner des jeweiligen Mailkontos inklusive dessen Unterordner durchsuchen.
Lösung: Der Artikel Virtuelle Ordner einrichten im Thunderbird Wiki.
Schritt für Schritt geht man dann folgendermaßen vor: 
1. Einen Hauptordner [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>wer schonmal im Thunderbird nicht nur das Mailkonto von GMX, sondern auch das von Web.de durchsuchen wollte kennt das Problem. Die Thunderbird Suche (Tastenkombination &lt;Shift+f&gt;) kann nur maximal den Ordner des jeweiligen Mailkontos inklusive dessen Unterordner durchsuchen.</p>
<p>Lösung: Der Artikel <a href="http://www.thunderbird-mail.de/wiki/Virtuelle_Ordner_einrichten">Virtuelle Ordner einrichten</a> im Thunderbird Wiki.</p>
<p>Schritt für Schritt geht man dann folgendermaßen vor: <span id="more-88"></span></p>
<p>1. Einen Hauptordner auswählen (bspw. <strong>Lokale Ordner</strong>)<br />
2. Datei &gt; Neu &gt; Virtueller Ordner<br />
3. Name des virtuellen Ordners: &#8220;Alle Mails&#8221;<br />
4. Erstellen als Unterordner von: &#8220;Lokale Ordner&#8221;<br />
5. Bei &#8220;Diese Ordner durchsuchen&#8221; einfach alle Ordner mit einem Häkchen versehen<br />
6. &#8220;Kriterien für die Suche dieses virtuellen Ordners&#8221;: &#8220;Keine Bedingungen&#8221;<br />
7. Mit &#8220;OK&#8221; bestätigen</p>
<p>Jetzt befindet sich unter dem Hauptordner &#8220;Lokale Ordner&#8221; ein neuer Ordner namens &#8220;Alle Mails&#8221;. Wählt man diesen an, so sieht man <strong>alle</strong> Mails in einer Übersicht. In diesen kann man dann mit dem Suchfeld rechts oben durchsuchen. Die Erweiterte Suche &lt;Shift+f&gt; zeigt diesen Ordner leider nicht an.</p>
<p>Man kann sich jetzt natürlich noch weitere virtuelle Ordner anlegen. Zum Beispiel kann man sich alle Mails anzeigen lassen die schon über 14 Tage alt sind. Dazu nutzt man dann das Bedingungsfeld für den virtuellen Ordner und wählt die Bedingung:</p>
<blockquote><p><em>Alter in Tagen &#8211; ist größer als &#8211; 14</em></p></blockquote>
<p>Tschau<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/thunderbird-alle-ordnernewsgroups-gleichzeitig-durchsuchen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyboard &amp; Mouse disabled during XP Installation on Dell XPS M1530</title>
		<link>http://blog.mcbachmann.de/windows/keyboard-mouse-disabled-during-xp-installation-on-dell-xps-m1530</link>
		<comments>http://blog.mcbachmann.de/windows/keyboard-mouse-disabled-during-xp-installation-on-dell-xps-m1530#comments</comments>
		<pubDate>Fri, 14 Nov 2008 10:11:15 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=80</guid>
		<description><![CDATA[Hi,
today I had a strange happening. I installed Windows XP on a Dell XPS M1530 and after entering the Windows key, keyboard and mouse refused to work.
Luckily I had an usb keyboard/mouse combo from Logitech around which worked but did not reenable the builtin input devices during the installation.
Bye,
  Sven
]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>today I had a strange happening. I installed Windows XP on a Dell XPS M1530 and after entering the Windows key, keyboard and mouse refused to work.</p>
<p>Luckily I had an usb keyboard/mouse combo from Logitech around which worked but did not reenable the builtin input devices during the installation.</p>
<p>Bye,<br />
  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/windows/keyboard-mouse-disabled-during-xp-installation-on-dell-xps-m1530/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
