<?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>controlc.de &#187; trunk</title>
	<atom:link href="http://controlc.de/tag/trunk/feed/" rel="self" type="application/rss+xml" />
	<link>http://controlc.de</link>
	<description>mehr als nur ein Notizblock</description>
	<lastBuildDate>Fri, 13 Jan 2012 18:37:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>openwrt &#124; OpenVPN mit Weboberfläche unter OpenWRT</title>
		<link>http://controlc.de/2010/01/24/openwrt-openvpn-mit-weboberflache-unter-openwrt/</link>
		<comments>http://controlc.de/2010/01/24/openwrt-openvpn-mit-weboberflache-unter-openwrt/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 21:00:57 +0000</pubDate>
		<dc:creator>controlc.de</dc:creator>
				<category><![CDATA[netzwerk]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[kamikaze]]></category>
		<category><![CDATA[luci]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trunk]]></category>

		<guid isPermaLink="false">http://controlc.de/?p=1115</guid>
		<description><![CDATA[Wie ich schon hier und hier geschrieben habe, nutze ich auf meinem Router OpenWRT. Hauptziel meiner anderen Artikel war, aufzuzeigen, wie man sich ein eigenes Image für den Router bauen kann. In diesem Artikel möchte ich nun zeigen, wie man sich ein OpenWRT Image bauen kann mit dem man OpenVPN über eine Weboberfläche konfigurieren und [...]]]></description>
			<content:encoded><![CDATA[	<p style="text-align: center;"><a href="http://controlc.de/wp-content/uploads/2010/01/OpenWrt-OpenVPN-LuCI1.png" class="floatbox" rev="group:1115 caption:`OpenWrt - OpenVPN - LuCI1`"><img class="aligncenter size-full wp-image-1336" title="OpenWrt - OpenVPN - LuCI1" src="http://controlc.de/wp-content/uploads/2010/01/OpenWrt-OpenVPN-LuCI1.png" alt="" width="540" height="314" /></a></p>
	<p>Wie ich schon <a href="http://controlc.de/2009/09/26/debian-openwrt-und-eigenes-image-bauen/">hier</a> und <a href="http://controlc.de/2010/01/20/openwrt-openwrt-als-vm/">hier</a> geschrieben habe, nutze ich auf meinem Router OpenWRT. Hauptziel meiner anderen Artikel war, aufzuzeigen, wie man sich ein eigenes Image für den Router bauen kann. In diesem Artikel möchte ich nun zeigen, wie man sich ein OpenWRT Image bauen kann mit dem man OpenVPN über eine Weboberfläche konfigurieren und steuern kann.</p>
	<p><span id="more-1115"></span>Auf dem Host-System, auf dem man das Image kompiliert, muss man nach</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> menuconfig</pre></div></div>

	<p>zuerst das richtige Paket installieren</p>
	<p><a href="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-make-menuconfig-LuCI.png" class="floatbox" rev="group:1115 caption:`OpenWRT - make menuconfig - LuCI`"><img class="aligncenter size-medium wp-image-1305" title="OpenWRT - make menuconfig - LuCI" src="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-make-menuconfig-LuCI-300x250.png" alt="" width="300" height="250" /></a><a href="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-make-menuconfig-LuCI-components.png" class="floatbox" rev="group:1115 caption:`OpenWRT - make menuconfig - LuCI components`"><img class="aligncenter size-medium wp-image-1308" title="OpenWRT - make menuconfig - LuCI components" src="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-make-menuconfig-LuCI-components-300x258.png" alt="" width="300" height="258" /></a><a href="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-make-menuconfig-LuCI-OpenVPN.png" class="floatbox" rev="group:1115 caption:`OpenWRT - make menuconfig - LuCI OpenVPN`"><img class="aligncenter size-medium wp-image-1309" title="OpenWRT - make menuconfig - LuCI OpenVPN" src="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-make-menuconfig-LuCI-OpenVPN-300x253.png" alt="" width="300" height="253" /></a>Nach dem das Image wie in dem Artikel <a href="http://controlc.de/2009/09/26/debian-openwrt-und-eigenes-image-bauen/">OpenWRT und eigenes Image bauen</a> kompiliert ist und das Image auf dem Router installiert wurde, kann man über die Weboberfläche auf den Router zugreifen.</p>
	<p>Im Administrations-Menü unter <em>Services</em> findet man den Menüpunkt <em>openvpn</em>.</p>
	<p><a href="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-LuCI-OpenVPN.png" class="floatbox" rev="group:1115 caption:`OpenWRT - LuCI OpenVPN`"><img class="aligncenter size-medium wp-image-1310" title="OpenWRT - LuCI OpenVPN" src="http://controlc.de/wp-content/uploads/2009/12/OpenWRT-LuCI-OpenVPN-300x161.png" alt="" width="300" height="161" /></a>Ich denke, die Weboberfläche ist selbsterklärend und werde deswegen nicht näher darauf eingehen. Hier kann man die Konfiguration seines VPN-Tunnels vornehmen — egal ob der Router als VPN-Server oder VPN-Client fungieren soll. Nachdem man seine OpenVPN Konfiguration zusammengestellt hat und den VPN Tunnel aufbaut, wird man feststellen, das es noch nicht richtig funktioniert. Es fehlen noch einige kleine Details, damit man auf das hinter dem OpenVPN-Router liegende Netzwerk zugreifen kann, da zur Zeit die Firewall das VPN-Netz noch nicht kennt.</p>
	<p>Zuerst muss ein neues Netzwerk-Interface für den VPN-Tunnel angelegt werden:</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">uci <span style="color: #000000; font-weight: bold;">set</span> network.vpn=interface
uci <span style="color: #000000; font-weight: bold;">set</span> network.vpn.proto=none
uci <span style="color: #000000; font-weight: bold;">set</span> network.vpn.auto=<span style="color: #000000;">1</span>
uci <span style="color: #000000; font-weight: bold;">set</span> network.vpn.ifname=tun0
uci commit network</pre></div></div>

	<p>Anschließend eine neue Firewall Zone eingerichtet:</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">uci add firewall zone
uci <span style="color: #000000; font-weight: bold;">set</span> firewall.<span style="color: #000000; font-weight: bold;">@</span>zone<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>.name=vpn
uci <span style="color: #000000; font-weight: bold;">set</span> firewall.<span style="color: #000000; font-weight: bold;">@</span>zone<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>.forward=ACCEPT
uci <span style="color: #000000; font-weight: bold;">set</span> firewall.<span style="color: #000000; font-weight: bold;">@</span>zone<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>.input=ACCEPT
uci <span style="color: #000000; font-weight: bold;">set</span> firewall.<span style="color: #000000; font-weight: bold;">@</span>zone<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>.output=ACCEPT
uci commit</pre></div></div>

	<p>Und abschließend wird definiert, zwischen welchen Firewall Zonen überhaupt Traffic fließen darf.</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">uci add firewall forwarding
uci <span style="color: #000000; font-weight: bold;">set</span> firewall.<span style="color: #000000; font-weight: bold;">@</span>forwarding<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>.dest=vpn
uci <span style="color: #000000; font-weight: bold;">set</span> firewall.<span style="color: #000000; font-weight: bold;">@</span>forwarding<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>.src=lan
uci commit</pre></div></div>

	<p>Wer mehr darüber erfahren will, was man mit UCI alles anstellen kann, den kann ich nur auf die <a href="http://dev.luci.cyranjo.org/docsrv/index.xml">Befehlsreferenz </a>verweisen.</p>
	<p>Nun fehlen nur noch die Firewall-Einträge</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iptables <span style="color: #660033;">-A</span> input_rule <span style="color: #660033;">-i</span> tun+ <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> forwarding_rule <span style="color: #660033;">-i</span> tun+ <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> forwarding_rule <span style="color: #660033;">-o</span> tun+ <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> output_rule <span style="color: #660033;">-o</span> tun+ <span style="color: #660033;">-j</span> ACCEPT</pre></div></div>

	<p>dies alles in die Datei <em>/etc/firewall.user</em> eingetragen und schon funktioniert der VPN-Tunnel wie er soll.</p>
	<p><strong>Konntet Ihr das nachvollziehen? Was ist möglicherweise noch unklar? Habt Ihr Verbesserungsvorschläge? Dann nutzt bitte die Kommentarfunktion.</strong>
</p>
]]></content:encoded>
			<wfw:commentRss>http://controlc.de/2010/01/24/openwrt-openvpn-mit-weboberflache-unter-openwrt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>openwrt &#124; OpenWRT als VM</title>
		<link>http://controlc.de/2010/01/20/openwrt-openwrt-als-vm/</link>
		<comments>http://controlc.de/2010/01/20/openwrt-openwrt-als-vm/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 19:57:34 +0000</pubDate>
		<dc:creator>controlc.de</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[netzwerk]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[kamikaze]]></category>
		<category><![CDATA[luci]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trunk]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmware fusion]]></category>

		<guid isPermaLink="false">http://controlc.de/?p=1173</guid>
		<description><![CDATA[Wie ich schon geschrieben hatte, bin ich ein Fan des OpenWRT-Projektes. Um die Neuerungen schneller nutzen zu können, wie zum Beispiel die Weboberfläche für OpenVPN, kompiliere ich mir in unregelmäßigen Abständen selbst eine neue Firmware um diese auf meinen ASUS-Router auszuprobieren. Ich habe aber leider nur den einen Router und mit dem Flashen und anschließendem [...]]]></description>
			<content:encoded><![CDATA[	<p style="text-align: center;"><a href="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-als-Virtuelle-Maschine.png" class="floatbox" rev="group:1173 caption:`OpenWRT als Virtuelle Maschine`"><img class="aligncenter size-full wp-image-1223" title="OpenWRT als Virtuelle Maschine" src="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-als-Virtuelle-Maschine.png" alt="" width="512" height="382" /></a></p>
	<p>Wie ich schon <a href="http://controlc.de/2009/09/26/debian-openwrt-und-eigenes-image-bauen/">geschrieben</a> hatte, bin ich ein Fan des <a href="http://www.openwrt.org/">OpenWRT-Projektes</a>. Um die Neuerungen schneller nutzen zu können, wie zum Beispiel die Weboberfläche für <a href="http://www.openvpn.net/">OpenVPN</a>, kompiliere ich mir in unregelmäßigen Abständen selbst eine neue Firmware um diese auf meinen <a href="http://de.asus.com/products.aspx?l1=29&amp;l2=172&amp;l3=743&amp;l4=59&amp;model=1121&amp;modelmenu=1">ASUS-Router </a>auszuprobieren. Ich habe aber leider nur den einen Router und mit dem Flashen und anschließendem Neukonfigurieren ist natürlich auch meine Internetleitung tot. Da man OpenWRT nicht nur auf kleinen Hardware-Routern sondern z.B. auch auf x86-Plattformen laufen lassen kann, probiere ich gerade mal aus was man machen muss um OpenWRT als virtuelle Maschine laufen zu lassen.<span id="more-1173"></span></p>
	<p>Zuerst muss man auf der Maschine, die die Firmware kompiliert, neben den schon beschrieben Voraussetzungen noch die Programme nachinstallieren, die nach der fertigen Kompilierung der Pakete diese als fertiges VM-Image zusammenbauen. Es gibt folgende Image-Versionen, die gebaut werden können:</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-make-menuconfig-VDI-oder-VMDK.png" class="floatbox" rev="group:1173 caption:`OpenWRT - make menuconfig - VDI oder VMDK`"><img class="aligncenter size-full wp-image-1221" title="OpenWRT - make menuconfig - VDI oder VMDK" src="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-make-menuconfig-VDI-oder-VMDK.png" alt="" width="474" height="34" /></a></p>
	<p>Soll das fertige Image in <a href="http://www.virtualbox.org/">VirtualBox</a> laufen, dann muss folgendes gemacht werden:</p>
	<p>Neue Quelle für APT/Aptitude</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;deb http://download.virtualbox.org/virtualbox/debian lenny non-free&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></div></div>

	<p>Herunterladen des public keys</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.virtualbox.org<span style="color: #000000; font-weight: bold;">/</span>virtualbox<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>sun_vbox.asc <span style="color: #660033;">-O-</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> add -</pre></div></div>

	<p>Aktualisieren der Paketliste</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> update</pre></div></div>

	<p>Installieren von VirtualBox</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> virtualbox</pre></div></div>

	<p><strong>Aber Achtung: Bei einem frischen Debian Lenny wurden 171MB heruntergeladen, da viele zusätzliche Pakete benötigt wurden. </strong></p>
	<p>Soll das spätere Image unter <a href="http://www.vmware.com/de/">VMware</a> laufen dann muss <a href="http://www.qemu.org/about.html">Qemu</a> installiert werden:</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> qemu</pre></div></div>

	<p>Nun kann mit</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> menuconfig</pre></div></div>

	<p>sich wie gewünscht das Firmware Image zusammenbauen.</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-make-menuconfig-Menue.png" class="floatbox" rev="group:1173 caption:`OpenWRT - make menuconfig - Menue`"><img class="aligncenter size-medium wp-image-1231" title="OpenWRT - make menuconfig - Menue" src="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-make-menuconfig-Menue-238x300.png" alt="" width="238" height="300" /></a>Am Besten arbeitet man sich von oben nach unten.</p>
	<p>Als <em>target system</em> wählt man <em>x86</em> aus, <em>subtarget</em> und <em>target profile</em> bleiben auf <em>Generic</em>. Bei <em>target images</em> muss man sich entscheiden, wofür man das Image braucht: VMware oder VirtualBox.</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-make-menuconfig-Target-Images.png" class="floatbox" rev="group:1173 caption:`OpenWRT - make menuconfig - Target Images`"><img class="aligncenter size-medium wp-image-1232" title="OpenWRT - make menuconfig - Target Images" src="http://controlc.de/wp-content/uploads/2010/01/OpenWRT-make-menuconfig-Target-Images-234x300.png" alt="" width="234" height="300" /></a></p>
	<p>Anschließend müssen noch die OpenWRT-Pakete ausgewählt und beim Beenden des Programms die Konfiguration gespeichert werden. Danach</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

	<p>ausgeführt. Nach einer langen Zeit liegt im Unterverzeichnis <em>bin</em> eine Verzeichnis mit dem x86-Image. Dieses Image kann man sich auf seinen Rechner kopieren. Wie man eine virtuelle Maschine für OpenWRT zu erstellt möchte ich am Beispiel von VMware Fusion zeigen.</p>
	<p>Mit dem Erstellen einer neuen VM öffnet sich der Assistent</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-1.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - OpenWRT - 1`"><img class="aligncenter size-medium wp-image-1239" title="VMware Fusion - OpenWRT - 1" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-1-300x227.png" alt="" width="300" height="227" /></a>Mit dem Fortfahren »Ohne Datenträger« öffnet sich eine Dialog zur Auswahl des gerade kompilierten Images</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-2.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - OpenWRT - 2`"><img class="aligncenter size-medium wp-image-1240" title="VMware Fusion - OpenWRT - 2" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-2-300x231.png" alt="" width="300" height="231" /></a>Als Nächstes gibt man das zu installierende Betriebssystem an</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-3.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - OpenWRT - 3`"><img class="aligncenter size-medium wp-image-1241" title="VMware Fusion - OpenWRT - 3" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-3-300x231.png" alt="" width="300" height="231" /></a>Anschließend kann man die Einstellungen der VM noch anpassen.</p>
	<h4>RAM</h4>
	<p>allzu viel RAM braucht OpenWRT nicht und man möchte es ja so reel wie möglich machen.</p>
	<h4><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-5.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - OpenWRT - 5`"><img class="aligncenter size-medium wp-image-1243" title="VMware Fusion - OpenWRT - 5" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-5-300x194.png" alt="" width="300" height="194" /></a>Netzwerkkarten</h4>
	<p>Hier kommt es auf die Reihenfolge an, da OpenWRT die erste Netzwerkkarte als <em>eth0</em> für LAN und die zweite als <em>eth1</em> für WAN nimmt.</p>
	<p style="text-align: left;"><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-Network.png" class="floatbox" rev="group:1173"></a><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-6.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - OpenWRT - 6`"><img class="size-medium wp-image-1244 aligncenter" title="VMware Fusion - OpenWRT - 6" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-6-300x209.png" alt="" width="300" height="209" /></a>Je nach Reihenfolge sieht die Zuordnung wie folgt aus:</p>
	<p style="text-align: center;"><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-Netzwerkkarten-und-Zuordnung-1.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - Netzwerkkarten und Zuordnung 1`"><img class="alignnone size-medium wp-image-1280" title="VMware Fusion - Netzwerkkarten und Zuordnung 1" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-Netzwerkkarten-und-Zuordnung-1-288x300.png" alt="" width="259" height="270" /></a><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-Netzwerkkarten-und-Zuordnung-2.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - Netzwerkkarten und Zuordnung 2`"><img class="alignnone size-medium wp-image-1281" title="VMware Fusion - Netzwerkkarten und Zuordnung 2" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-Netzwerkkarten-und-Zuordnung-2-287x300.png" alt="" width="258" height="270" /></a></p>
	<p>Meine VM sieht abschließend so aus</p>
	<p><a href="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-7.png" class="floatbox" rev="group:1173 caption:`VMware Fusion - OpenWRT - 7`"><img class="aligncenter size-medium wp-image-1245" title="VMware Fusion - OpenWRT - 7" src="http://controlc.de/wp-content/uploads/2010/01/VMware-Fusion-OpenWRT-7-300x170.png" alt="" width="300" height="170" /></a>Nun kann man die VM das erste Mal starten.</p>
	<p>Nun muss zuerst die Netzwerkkonfiguration vorgenommen werden:</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">uci delete network.lan.ipaddr
&nbsp;
uci delete network.lan.netmask
&nbsp;
uci <span style="color: #000000; font-weight: bold;">set</span> network.lan.proto=dhcp
&nbsp;
uci commit network</pre></div></div>

	<p>Nun kann man vom Host-Computer aus auf die OpenWRT-VM zugreifen.
</p>
]]></content:encoded>
			<wfw:commentRss>http://controlc.de/2010/01/20/openwrt-openwrt-als-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian &#124; OpenWRT und eigenes Image bauen</title>
		<link>http://controlc.de/2009/09/26/debian-openwrt-und-eigenes-image-bauen/</link>
		<comments>http://controlc.de/2009/09/26/debian-openwrt-und-eigenes-image-bauen/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 15:58:39 +0000</pubDate>
		<dc:creator>controlc.de</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[netzwerk]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[kamikaze]]></category>
		<category><![CDATA[luci]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trunk]]></category>

		<guid isPermaLink="false">http://controlc.de/?p=873</guid>
		<description><![CDATA[Ich nutze schon seit Jahren Router, die ich mit der alternativen Firmware OpenWRT betreibe. Mir geht es dabei nicht darum, das ich den Herstellern misstraue, sondern primär darum, das mir OpenWRT die Möglichkeit lässt selbst zu entscheiden, welche Dienste ich auf dem Router anbieten will und welche nicht. Dazu kommt, das die Firewall deutlich besser [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://controlc.de/wp-content/uploads/2009/09/openwrt-logo.png" class="floatbox" rev="group:873 caption:`openwrt-logo`"><img class="aligncenter size-medium wp-image-882" title="openwrt-logo" src="http://controlc.de/wp-content/uploads/2009/09/openwrt-logo-300x76.png" alt="openwrt-logo" width="300" height="76" /></a></p>
	<p>Ich nutze schon seit Jahren Router, die ich mit der alternativen Firmware <a href="http://openwrt.org/">OpenWRT</a> betreibe. Mir geht es dabei nicht darum, das ich den Herstellern misstraue, sondern primär darum, das mir OpenWRT die Möglichkeit lässt selbst zu entscheiden, welche Dienste ich auf dem Router anbieten will und welche nicht. Dazu kommt, das die Firewall deutlich besser konfigurierbar ist und das ich mich per SSH auf den Router und über darüber gesetzte Tunnel auch auf das Netzwerk dahinter Zugriff habe. Davon einmal ganz abgesehen ist es natürlich auch gut zu wissen, das die Macher hinter OpenWRT Sicherheitslöcher stopfen — ein Verhalten, was man sich von den Hardware-Herstellern wünschen würde. Ich bin bis dato immer gut mit den Routern der Firma ASUS gefahren — zuerst hatte ich einen <a href="http://de.asus.com/products.aspx?l1=12&amp;l2=43&amp;l3=0&amp;l4=0&amp;model=359&amp;modelmenu=1">Asus WL-500g Deluxe</a>, später einen <a href="http://de.asus.com/products.aspx?l1=29&amp;l2=172&amp;l3=743&amp;l4=59&amp;model=1121&amp;modelmenu=1">Asus WL-500g Premium</a>. Der Vorteil dieser Router: Sie haben zwei USB 2.0-Ports — da kann man z.B. Festplatten dranhängen und diese als Netzwerkplatten freigeben.</p>
	<p>Aber zurück zu OpenWRT: Mit der neuesten Version von <a href="http://kamikaze.openwrt.org/8.09.1/">OpenWRT Kamikaze 8.09.1</a> ist aber über die Weboberfläche LuCI keine Steuerungs– und Konfigurationsmöglichkeit von <a href="http://www.openvpn.net/index.php/open-source.html">OpenVPN</a> möglich. Deswegen kann aus dem OpenWRT-Forum der Tipp, es mit der Trunk-Version von OpenWRT zu probieren. Da es diese Versionen aber nicht als fertiges Image gibt, muss man diese selbst kompilieren.<span id="more-873"></span></p>
	<p>Dazu habe ich mir in einer VM ein frisches <a href="http://www.debian.org/">Debian Lenny</a> aufgesetzt und mit</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential mercurial subversion <span style="color: #c20cb9; font-weight: bold;">cvs</span> zlib1g-dev <span style="color: #c20cb9; font-weight: bold;">gawk</span> <span style="color: #c20cb9; font-weight: bold;">bison</span> <span style="color: #c20cb9; font-weight: bold;">flex</span> libncurses5-dev <span style="color: #c20cb9; font-weight: bold;">unzip</span></pre></div></div>

	<p>die Basis geschaffen.</p>
	<p><strong>Update: Also entweder hat noch nie jemand versucht meine Anleitung nachzuvollziehen, Ihr wart zu faul was zu schreiben oder aber Ihr hattet schon fertige Debian-Installationen — in der Aufzählung der benötigten Pakete fehlte noch <em>unzip</em>. Ich habe die Befehlszeile mal vervollständigt.</strong></p>
	<p>Anschließend legt man sich am besten ein neues Unterverzeichnis an</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> openwrt</pre></div></div>

	<p>und wechselt in dieses Verzeichnis</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> openwrt</pre></div></div>

	<p>Jetzt kann man sich die OpenWRT-Dateien herunterladen</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>svn.openwrt.org<span style="color: #000000; font-weight: bold;">/</span>openwrt<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span> .</pre></div></div>

	<p>Wichtig dabei ist, das man dies alles als normaler Nutzer macht — nicht als <em>root</em>.</p>
	<p>Da die LuCI-Weboberfläche für OpenVPN nur in den Trunk-Paketen ist, müssen die Quellen für die Pakete noch angepasst werden</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;src-svn packages svn://svn.openwrt.org/openwrt/packages&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> feeds.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> feeds.conf</pre></div></div>

	<p>Jetzt noch die Paketliste aktualisieren</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>feeds update</pre></div></div>

	<p>Und die Pakete für LuCI einbinden</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>feeds <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-a</span> <span style="color: #660033;">-p</span> luci</pre></div></div>

	<p>Und schon kann man mit</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> menuconfig</pre></div></div>

	<p>das Image vorbereiten — sprich die Auswahl machen, was alles in das Image hinein soll.</p>
	<p>Abschließend ein</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

	<p>und nach ewig langer Zeit liegt ein Imagefile in dem Unterverzeichnis <em>bin</em>, welches geflasht werden möchte.</p>
	<h4>Links</h4>
	<p><a href="http://openwrt.org/">http://openwrt.org/</a></p>
	<p><a href="http://de.asus.com/products.aspx?l1=29&amp;l2=172&amp;l3=743&amp;l4=59&amp;model=1121&amp;modelmenu=1">http://de.asus.com/products.aspx?l1=29&amp;l2=172&amp;l3=743&amp;l4=59&amp;model=1121&amp;modelmenu=1</a></p>
	<p><a href="http://de.asus.com/products.aspx?l1=12&amp;l2=43&amp;l3=0&amp;l4=0&amp;model=359&amp;modelmenu=1">http://de.asus.com/products.aspx?l1=12&amp;l2=43&amp;l3=0&amp;l4=0&amp;model=359&amp;modelmenu=1</a></p>
	<p><a href="http://kamikaze.openwrt.org/8.09.1/">http://kamikaze.openwrt.org/8.09.1/</a></p>
	<p><a href="http://www.openvpn.net/index.php/open-source.html">http://www.openvpn.net/index.php/open-source.html</a></p>
	<p><a href="https://forum.openwrt.org/viewtopic.php?pid=94844#p94844">https://forum.openwrt.org/viewtopic.php?pid=94844#p94844</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://controlc.de/2009/09/26/debian-openwrt-und-eigenes-image-bauen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

