<?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>Robert Penz Blog</title>
	<atom:link href="http://robert.penz.name/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.penz.name</link>
	<description>About Linux, IT security,tips and tricks and otherstuff that comes into my mind</description>
	<lastBuildDate>Sun, 12 May 2013 17:08:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>ncdu is better than calling &#8220;du -hs *&#8221; multiple times :-)</title>
		<link>http://robert.penz.name/622/ncdu-is-better-than-calling-du-hs-multiple-times/</link>
		<comments>http://robert.penz.name/622/ncdu-is-better-than-calling-du-hs-multiple-times/#comments</comments>
		<pubDate>Sun, 12 May 2013 17:08:44 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=622</guid>
		<description><![CDATA[I was searching again for some directories or files on one of my servers, which were filling the hard disk. Normally I used du -hs * starting via / and going downwards in the directory structure &#8230;. but not this time &#8230; I went on the search for a command line program which makes that [...]]]></description>
				<content:encoded><![CDATA[<p>I was searching again for some directories or files on one of my servers, which were filling the hard disk. Normally I used <code>du -hs *</code> starting via / and going downwards in the directory structure &#8230;. but not this time &#8230; I went on the search for a command line program which makes that easier &#8230; and I found it: Welcome <a href="http://dev.yorhel.nl/ncdu" target="_blank">NCurses Disk Usage</a>.</p>
<p>On CentOS/RHEL/SL you need the <a href="http://fedoraproject.org/wiki/EPEL" target="_blank">EPEL</a> repository and than just type <code>yum install ncdu</code>. On Ubuntu just type <code>sudo apt-get install ncdu</code>.</p>
<p>If you use it via SSH it is recommended to use the option <code>-q</code> which does according to the manual:</p>
<p><em>-q Quiet mode. While calculating disk space, ncdu will update the screen .10 times a second by default, this will be decreased to once every 2 seconds in quiet mode. Use this feature to save bandwidth over remote connections.</em></p>
<p>And as I normally know on which partition I want to look (<code>df -h</code> tells me which hard disk is getting full <img src='http://robert.penz.name/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ), I use following option too:</p>
<p><em>-x Only count files and directories on the same filesystem as the specified dir.<br />
</em></p>
<p>which leads to this output after starting it:</p>
<p><img class="aligncenter size-full wp-image-623" alt="ncdu" src="http://robert.penz.name/wp-content/uploads/2013/05/ncdu.png" width="542" height="299" /></p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/622/ncdu-is-better-than-calling-du-hs-multiple-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto configure a Mikrotik as central DHCP server with switches as DHCP relays</title>
		<link>http://robert.penz.name/615/howto-configure-a-mikrotik-as-central-dhcp-server-with-switches-as-dhcp-relays/</link>
		<comments>http://robert.penz.name/615/howto-configure-a-mikrotik-as-central-dhcp-server-with-switches-as-dhcp-relays/#comments</comments>
		<pubDate>Sat, 27 Apr 2013 09:14:11 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=615</guid>
		<description><![CDATA[I&#8217;ve found many articles about how to configure a Mikrotik RouterOS as DHCP relay or as simple DHCP server, but I didn&#8217;t find an article about following setup: central Mikrotik DHCP Server (e.g. in the data center) multiple VLANs/subnets for clients which are connected via a Layer3 Switch (or even more hops) to the central [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve found many articles about how to configure a Mikrotik RouterOS as DHCP relay or as simple DHCP server, but I didn&#8217;t find an article about following setup:</p>
<ul>
<li>central Mikrotik DHCP Server (e.g. in the data center)</li>
<li>multiple VLANs/subnets for clients which are connected via a Layer3 Switch (or even more hops) to the central data center</li>
</ul>
<p>According to the Mikrotik Wiki and the described options it is possible but there is no example shown and everyone uses the setup wizard to configure a DHCP Server. I&#8217;ll get most people don&#8217;t know what happens in the background &#8230; I&#8217;ll show this the old fashioned way. <img src='http://robert.penz.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>Setup for this example/howto</strong></p>
<p>For this example we assume that we&#8217;ve 4 VLANs with following subnets:</p>
<ul>
<li>10.88.0.0/24 (data center VLAN for the servers and the DHCP server)</li>
<li>10.88.10.0/24 (clients network location 1)</li>
<li>10.88.11.0/24 (clients network location 2)</li>
<li>10.88.12.0/24 (clients network location 3)</li>
</ul>
<p>The Mikrotik has the IP 10.88.0.100 and connected via ether1 to the data center VLAN. The Layer3 switches use always the .1 IP address in the clients networks.</p>
<p><strong>Layer3 Switches / DHCP Relay</strong></p>
<p>Most (if not all) switches which are able to perform at least simple layer 3 tasks (often also labeled as Layer2+ switches) are able to forward DHCP requests. Check the manual of the switch for this. One setting I came across sometimes leads to problems. It is called &#8220;DHCP Relay delay&#8221; and is sometimes set to 1 or 2 seconds in the the default configuration. This setting allows a local DHCP Server to answer faster, but sometimes (specially embedded clients) don&#8217;t wait that long and run into an error. If there is no local DHCP server set this timer to 0 seconds.</p>
<p>You&#8217;ll need to set the DHCP Server IP on the switch to the IP of the Mikrotik.</p>
<p><strong>Mikrotik as DHCP Server</strong></p>
<p>First we configure our pools of the client networks, the mikrotik will give out IPs from this ranges:</p>
<p><code>/ip pool<br />
add name=poolClientsLocation1 ranges=10.88.10.10-10.88.10.250<br />
add name=poolClientsLocation1 ranges=10.88.11.10-10.88.11.250<br />
add name=poolClientsLocation1 ranges=10.88.12.10-10.88.12.250</code></p>
<p>Now we need to set the configuration the DHCP Server will handout the clients:</p>
<p><code>/ip dhcp-server network<br />
add address=10.88.10.0/24 dns-server=10.88.0.100 gateway=10.88.10.1<br />
add address=10.88.11.0/24 dns-server=10.88.0.100 gateway=10.88.11.1<br />
add address=10.88.11.0/24 dns-server=10.88.0.100 gateway=10.88.12.1</code></p>
<p>And at last we configure which DHCP Relay gets which configuration/pool:</p>
<p><code>/ip dhcp-server<br />
add address-pool=poolClientsLocation1 authoritative=yes disabled=no interface=ether1 lease-time=1w name=dhcpClientsLocation1 relay=10.88.10.1<br />
add address-pool=poolClientsLocation2 authoritative=yes disabled=no interface=ether1 lease-time=1w name=dhcpClientsLocation2 relay=10.88.11.1<br />
add address-pool=poolClientsLocation3 authoritative=yes disabled=no interface=ether1 lease-time=1w name=dhcpClientsLocation3 relay=10.88.12.1<br />
</code></p>
<p>This is all &#8230; <img src='http://robert.penz.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/615/howto-configure-a-mikrotik-as-central-dhcp-server-with-switches-as-dhcp-relays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get IPv6 with a Mikrotik router via an IPv6 tunnel broker</title>
		<link>http://robert.penz.name/600/how-to-get-ipv6-with-a-mikrotik-router-via-an-ipv6-tunnel-broker/</link>
		<comments>http://robert.penz.name/600/how-to-get-ipv6-with-a-mikrotik-router-via-an-ipv6-tunnel-broker/#comments</comments>
		<pubDate>Sat, 02 Mar 2013 18:22:06 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=600</guid>
		<description><![CDATA[You want to try IPv6 but you&#8217;re provider doesn&#8217;t give you IPv6 addresses? If your router is a Mikrotik this howto will show you how to use an IPv6 tunnel brocker. This setup will also work for guys with a dynamic IP as most home users do. Signup with an IPv6 tunnel broker Go to [...]]]></description>
				<content:encoded><![CDATA[<p>You want to try IPv6 but you&#8217;re provider doesn&#8217;t give you IPv6 addresses? If your router is a Mikrotik this howto will show you how to use an IPv6 tunnel brocker. This setup will also work for guys with a dynamic IP as most home users do.</p>
<p><strong>Signup with an IPv6 tunnel broker</strong></p>
<p>Go to this <a href="http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers" target="_blank">Wikipedia page</a> for a list of IPv6 tunnel brokers. I&#8217;ve chosen the guys at <a href="http://www.tunnelbroker.net/" target="_blank">Hurricane Electric</a> as its free and works also with dynamic IP addresses. Other brokers which provide also 6in4 (in RouterOS called <code>/interface 6to4</code>) which provide a method to update of your IP address via a web URL will work too. If you&#8217;ve a static IPv4 address the choosing gets even easier.</p>
<p>Following shows whats needs to be done if you use Hurricane Electric as tunnel broker. The tunnel broker wants to be able to ping your router via IPv4 &#8230; lets enable that (only if you disabled ping in the first place)</p>
<p><code>/ip firewall filter add chain=input icmp-options=8:0 protocol=icmp src-address=66.220.2.74</code></p>
<p>Move this rule to a place before the blocking rule. This rule is made in a way that it opens the least possible hole which is needed for the tunnel broker to work. Now go to the broker website and do following:</p>
<ul>
<li>Click on &#8220;Create Regular Tunnel&#8221;</li>
<li>Under &#8220;IPv4 Endpoint (Your side):&#8221; enter your current IPv4 address</li>
<li>Choose a server location, for better performance choose one thats not that far away from you. <img src='http://robert.penz.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
<li>After Creating the Tunnel you&#8217;ll be shown a web page with following important information you&#8217;ll need later:
<ul>
<li>Tunnel ID</li>
<li>Server IPv4 Address</li>
<li>Server IPv6 Address</li>
<li>Client IPv4 Address</li>
<li>Client IPv6 Address</li>
<li>Routed /64</li>
</ul>
</li>
</ul>
<p>For the commands I&#8217;ll use &#8220;Tunnel ID&#8221; if you should use your Tunnel Id and so on.</p>
<p><strong>Mikrotik Tunnel Setup</strong></p>
<p>First make sure that you&#8217;ve the IPv6 package enabled -use following command:</p>
<p><code>[admin@mikrotik] &gt; /system package print<br />
Flags: X - disabled<br />
# NAME VERSION SCHEDULED<br />
0 X ipv6 6.0rc11<br />
..... </code></p>
<p>In this example it is not enabled, so we need to enable it and reboot.</p>
<p><code>[admin@mikrotik] &gt; /system package enable ipv6<br />
[admin@mikrotik] &gt; /system reboot</code></p>
<p>Now it should look like this:</p>
<p><code>[admin@mikrotik] &gt; /system package print<br />
Flags: X - disabled<br />
# NAME VERSION SCHEDULED<br />
0 ipv6 6.0rc11 </code><code><br />
..... </code></p>
<p>After this is done we can start configuring. First we need to create the tunnel endpoint on our side.</p>
<p><code>[admin@mikrotik] /ip firewall filter&gt; /interface 6to4 add comment="Hurricane Electric IPv6 Tunnel Broker" disabled=no local-address="Client IPv4 Address" mtu=1280 name=sit1 remote-address="Server IPv4 Address"</code></p>
<p>After that we need to tell the router this is his new default gateway.</p>
<p><code>[admin@mikrotik] /ip firewall filter&gt; /ipv6 route add dst-address=2000::/3 gateway="Server IPv6 Address"</code></p>
<p>And of course we need also an IPv6 address.</p>
<p><code>[admin@mikrotik] /ip firewall filter&gt; /ipv6 address add address="Client IPv6 Address"/64 advertise=yes eui-64=no interface=sit1</code></p>
<p>Now we can test our setup the first time. Lets check if the router is able to ping an IPv6 address in the Internet &#8230; we use for this the Google DNS servers.</p>
<p><code>[admin@mikrotik] &gt; ping 2001:4860:4860::8844<br />
HOST SIZE TTL TIME STATUS<br />
2001:4860:4860::8844 56 58 36ms echo reply<br />
2001:4860:4860::8844 56 58 35ms echo reply<br />
2001:4860:4860::8844 56 58 46ms echo reply<br />
sent=3 received=3 packet-loss=0% min-rtt=35ms avg-rtt=39ms max-rtt=46ms</code></p>
<p>If this does not work .. try to ping &#8220;Server IPv6 Address&#8221;. If this does work you got something wrong which the default gateway. If this also does not work .. check your tunnel setup and your IPv6 address.</p>
<p><strong>Mikrotik Setup for the Clients</strong></p>
<p>Now we got it working for the Mikrotik but it would be even better to have IPv6 for the clients. To achieve this we need to configure an IPv6 address on the LAN interface and enable<br />
the advertisement to the clients. Take the &#8220;Routed /64&#8243; address and add an 1 between the :: and the &#8220;/&#8221; &#8211; this give you the first IP address in the routed subnet.</p>
<p>e.g. <code>2001:xxx:xxx:xxx::/64</code> &#8211;&gt; <code>2001:xxx:xxx:xxx::1/64</code></p>
<p>This leads to following command:</p>
<p><code>/ipv6 address add interface="your LAN interface" address="IP address in your routed IPv6 subnet" advertise=yes</code></p>
<p>Now wait a little bit (some minutes) and check if your client operation system got an IPv6 address from the routed subnet. I&#8217;ll show it here on an Ubuntu 12.04:</p>
<p><code>$ ifconfig<br />
eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx<br />
inet addr:10.xx.xx.xx Bcast:10.xx.xx.xx Mask:255.255.255.0<br />
inet6 addr: 2001:470:xxx:xxx:xxx:xxx:xxx:xxx/64 Scope:Global<br />
inet6 addr: 2001:470:xxx:xxx:xxx:xxx:xxx:xxx/64 Scope:Global<br />
inet6 addr: fe80::xxx:xxx:xxx:xxx/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br />
RX packets:5733100 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:4191113 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:4271914251 (4.2 GB) TX bytes:841997928 (841.9 MB)<br />
Interrupt:22 Memory:f6ae0000-f6b00000 </code></p>
<p>You&#8217;ll see 3 IPv6 addresses, which are used for following:</p>
<ul>
<li><strong>Scope: Link</strong>: Only used for communication within the local VLAN &#8230; is always there if IPv6 is enabled on the client</li>
<li><strong>Scope:Global</strong>:  The second one has the MAC address of this interface in it. This is already a worldwide IP address, but it will tell everyone your MAC address .. which is not that good. So there is the first global one which uses a random part. This feature is called &#8220;privacy extension&#8221; and the IP is changed by the system after some time. If the privacy extension is activated this IP will be used for communicating.</li>
</ul>
<p>If you&#8217;ve 2 or better 3 IPv6 addresses you can try to ping the Google DNS server:</p>
<p><code>$ ping6 2001:4860:4860::8844<br />
PING 2001:4860:4860::8844(2001:4860:4860::8844) 56 data bytes<br />
64 bytes from 2001:4860:4860::8844: icmp_seq=1 ttl=57 time=36.7 ms<br />
64 bytes from 2001:4860:4860::8844: icmp_seq=2 ttl=57 time=39.6 ms<br />
64 bytes from 2001:4860:4860::8844: icmp_seq=3 ttl=57 time=48.6 ms<br />
64 bytes from 2001:4860:4860::8844: icmp_seq=4 ttl=57 time=55.3 ms</code></p>
<p>So this seems to work .. now we need to check if your DNS server reports IPv4 and IPv6 addresses back .. if this is not the case your need to configure your DNS correctly or change to an other server &#8230; e.g. the <a href="https://developers.google.com/speed/public-dns/docs/using" target="_blank">Google DNS Servers</a>.</p>
<p>We&#8217;ll verify the correct working with following command:</p>
<p><code>$ host robert.penz.name<br />
robert.penz.name has address 108.162.198.82<br />
robert.penz.name has address 108.162.199.82<br />
robert.penz.name has IPv6 address 2400:cb00:2048:1::6ca2:c652<br />
robert.penz.name has IPv6 address 2400:cb00:2048:1::6ca2:c752<br />
robert.penz.name mail is handled by 10 mail.penz.name.</code></p>
<p>This looks good &#8230; now you&#8217;ll only need to configure a firewall on your Mikrotik as you&#8217;re clients now have IPv6 address which can be reached worldwide. Your IPv4 firewall is not enough &#8211; you need to filter in <code>/ipv6 firewall</code>.</p>
<p><strong>Mikrotik Setup for users with a dynamic IPv4 address</strong></p>
<p>Now we need to make sure the tunnel broker knows our new IPv4 address after each change. For this Hurricane Electric&#8217;s provides a web URL which is described <a href="https://www.tunnelbroker.net/forums/index.php?topic=1994.0" target="_blank">here</a>. Thats nice as there are already some DynDNS update scripts available in the <a href="http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS" target="_blank">Mikrotik Wiki</a>.</p>
<p>I&#8217;ve changed the 5.x one in following parts:</p>
<ul>
<li>&#8220;username&#8221;: Your Hurricane Electric&#8217;s username</li>
<li>&#8220;password&#8221;: Your Hurricane Electric&#8217;s password</li>
<li>&#8220;hostname&#8221;: Your &#8220;Tunnel ID&#8221;</li>
<li>I&#8217;ve changed the <code>/tool fetch</code> line by replacing <code>members.dyndns.org</code> with <code>ipv4.tunnelbroker.net</code></li>
<li>And at last I added  <code>/interface 6to4 set 0 local-address=$currentIP</code> after <code>:log info ("UpdateDynDNS: Dyndns Update Result: ".$result)</code> line as we need also to change our local tunnel IP address.</li>
</ul>
<p>Thats it .. call this script every few minutes and you&#8217;ll have IPv6 connectivity even after your IP address changes. I&#8217;ll hope this article gets others also in the IPv6 world.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/600/how-to-get-ipv6-with-a-mikrotik-router-via-an-ipv6-tunnel-broker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve remote FTP or SMTP TLS server certificate</title>
		<link>http://robert.penz.name/594/retrieve-remote-ftp-or-smtp-tls-server-certificate/</link>
		<comments>http://robert.penz.name/594/retrieve-remote-ftp-or-smtp-tls-server-certificate/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 22:00:51 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=594</guid>
		<description><![CDATA[With SSL protected resources it is easy to find a command line to retrieve the certificate. Following is documented at many places: openssl s_client -connect www.google.com:443 But if you use use this with a TLS server, be it SMTP or FTP you&#8217;ll get CONNECTED(00000003) 527654:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:607: The solution ins quite easy (if you know [...]]]></description>
				<content:encoded><![CDATA[<p>With SSL protected resources it is easy to find a command line to retrieve the certificate. Following is documented at many places:</p>
<p><code>openssl s_client -connect www.google.com:443</code></p>
<p>But if you use use this with a TLS server, be it SMTP or FTP you&#8217;ll get </p>
<p><code>CONNECTED(00000003)<br />
527654:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:607:</code></p>
<p>The solution ins quite easy (if you know it) .. use following command line:</p>
<p><code>openssl s_client -connect ftp.xxxx.at:21 -starttls ftp</code></p>
<p>or </p>
<p><code>openssl s_client -connect smtp.xxxx.at:25 -starttls smtp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/594/retrieve-remote-ftp-or-smtp-tls-server-certificate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPv6 OpenVZ VEs and Debian/Proxmox as host system</title>
		<link>http://robert.penz.name/582/ipv6-openvz-ves-and-debianproxmox-as-host-system/</link>
		<comments>http://robert.penz.name/582/ipv6-openvz-ves-and-debianproxmox-as-host-system/#comments</comments>
		<pubDate>Sun, 24 Feb 2013 17:03:22 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=582</guid>
		<description><![CDATA[A friend of mine got a new root server and asked me to help him set it up. And of course I helped and as he got a free IPv6 subnet I thought lets configure it.  He is running Proxmox as his host system, which is based on Debian.So this guide is also true for [...]]]></description>
				<content:encoded><![CDATA[<p>A friend of mine got a new root server and asked me to help him set it up. And of course I helped and as he got a free IPv6 subnet I thought lets configure it.  He is running <a href="http://pve.proxmox.com/wiki/Main_Page" target="_blank">Proxmox</a> as his host system, which is based on Debian.So this guide is also true for Debian systems which have OpenVZ installed.</p>
<ol>
<li>You want to use IPv6 for the host system, you need to add at least following to  <code>/etc/network/interfaces<br />
iface vmbr0 inet6 static<br />
address 2001:xxxx:xxxx:xxx::1<br />
netmask 64<br />
&nbsp;&nbsp;up ip -6 route add default via 2001:xxxxx:beef::1 dev vmbr0<br />
&nbsp;&nbsp;down ip -6 route del default via 2001:xxxxx:beef::1 dev vmbr0</code></p>
<p>Replace <code>vmbr0</code> with <code>eth0</code> if you&#8217;re not using Proxmox and only OpenVZ on Debian.</li>
<li>The ISP my friend has the server located at uses a default gateway, which is not in his IPv6 subnet, you need therefore add a host route. Which is done be following 2 lines<br />
<code>&nbsp;&nbsp;up ip -6 route add 2001:4ba0:fff7:1:beef::1 dev vmbr0<br />
&nbsp;&nbsp;down ip -6 route del 2001:4ba0:fff7:1:beef::1 dev vmbr0</code></li>
<li>Restart the networking with: <code>/etc/init.d/networking restart</code></li>
<li>Test it with following:
<ul>
<li><code>ping6 yourOwnIP</code></li>
<li><code>ping6 defaultGW</code></li>
<li><code>ping6 2001:4860:4860::8888</code> (<a href="https://developers.google.com/speed/public-dns/docs/using" target="_blank">Google IPv6 DNS Server</a>)</li>
</ul>
</li>
<li>Add following to <code>/etc/sysctl.conf</code> and make sure it is not defined two times<br />
<code># IPv6 Packet Forwarding and Proxy NDP<br />
net.ipv6.conf.default.forwarding = 1<br />
net.ipv6.conf.all.forwarding = 1<br />
net.ipv6.conf.default.proxy_ndp = 1<br />
net.ipv6.conf.all.proxy_ndp = 1</code></li>
<li>Call <code>sysctl -p</code> to activate it at once (so no reboot is required)</li>
<li>Go to <code>/etc/vz/vz.conf</code> and make sure following is in there<br />
<code>IPV6="yes"</code></li>
<li>You currently can&#8217;t add an IPv6 address through the web GUI of Proxmox &#8211; so you need to use the CLI (replace with a IP adresse from your IPv6 range<br />
<code>vzctl set &lt;VEID&gt; --ipadd 2001:xxx:xxx::xxx --save</code></li>
<li>restart the VE, and try the ping stuff from step 4 in the VE. (ps: It can take up to 5 pings before you get a response the first time.)</li>
</ol>
<p>More is not needed &#8230; its quite easy!</p>
<p>ps: don&#8217;t forget to add an IPv6 DNS server, if it is a IPv6 only VE. This can currently not be done via Proxmox web GUI.</p>
<p>pps: iptables does not filter IPv6  .. you need ip6tables for this. don&#8217;t think that you&#8217;re secure, if you didn&#8217;t open anything with iptables.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/582/ipv6-openvz-ves-and-debianproxmox-as-host-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of IEEE 802.1x hotfixes for Windows 7</title>
		<link>http://robert.penz.name/555/list-of-ieee-802-1x-hotfixes-for-windows-7/</link>
		<comments>http://robert.penz.name/555/list-of-ieee-802-1x-hotfixes-for-windows-7/#comments</comments>
		<pubDate>Sat, 16 Feb 2013 20:10:27 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[IT Security]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=555</guid>
		<description><![CDATA[Most companies which want to enable 802.1x for their wired network run Windows 7 SP1. After activating 802.1x you&#8217;ll run into various problems with your Windows 7 boxes. It will work fine in lap tests but it will fail in the real world. Why is that? Because there are many 802.1x bugs in it. Normally [...]]]></description>
				<content:encoded><![CDATA[<p>Most companies which want to enable 802.1x for their wired network run Windows 7 SP1. After activating 802.1x you&#8217;ll run into various problems with your Windows 7 boxes. It will work fine in lap tests but it will fail in the real world. Why is that? Because there are many 802.1x bugs in it.</p>
<p>Normally I blog about Linux, networking and security and not Windows related stuff. I&#8217;m not an Windows expert but I needed to get it authenticated with my network so needed to look into the matter. I hope it helps other networks guys. I&#8217;m working for over 8 month (no not all the time <img src='http://robert.penz.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ) now to get Windows 7 SP1 100% of the time working with 802.1x. Its working 99% of the time, but there are still errors (under rare and special condition) that occur. ;-(</p>
<p>At the time of writing this list I didn&#8217;t find any other site that lists the available hotfixes, so I though I start a list. And the description texts from Microsoft to these hotfixes are sometimes brain dead.  Anyway some entries are the result of working with the Microsoft Premier Support on cases. If you&#8217;ll find any other hotfix, fixit, &#8230; please let me know.</p>
<p>ps: We&#8217;re using EAP-TLS so I can only write about patches I needed for it.</p>
<ol>
<li><a href="http://support.microsoft.com/kb/2481614" target="_blank">KB2481614</a><br />
If you&#8217;re configuring your 802.1x settings via Group Policy you&#8217;ll see sometimes EAP-PEAP request from clients in your radius server log during booting even if you&#8217;ll set EAP-TLS. This error happened in our case with 1/3 of the boots with some models. The error is caused by a timing problem during startup. Sometimes the 802.1x is faster and sometimes the Group Policy is, and if the 802.1x is faster than the default configuration is taken, which is PEAP. Which lead to a EAP-NAK by the radius server.</li>
<li><a href="http://support.microsoft.com/kb/980295" target="_blank">KB980295</a><br />
If an initial 802.1x authentication is passed, but a re-authentication fails, Windows 7 will ignore all later 802.1x requests. This hotfix should also fix a problem with computers waking up from sleep or hibernation &#8211; but we&#8217;ve disabled these features so I can&#8217;t comment on them.</li>
<li><a href="http://support.microsoft.com/kb/976373" target="_blank">KB976373</a><br />
This hotfix is called &#8220;A computer that is connected to an IEEE 802.1x-authenticated network via another 802.1x enabled device does not connect to the correct network&#8221;. I can&#8217;t comment on this, as we&#8217;ve not deployed 802.1x for our VoIP phones at this point. But it solves one other problem, which is described <a href="http://blogs.technet.com/b/jeff_stokes/archive/2013/01/24/20-minute-delay-deploying-windows-7-on-802-1x-fix-it-here.aspx" target="_blank">here</a>. The Windows Vista hotfix for the same problem, linked in the article (There is a <a href="http://support.microsoft.com/kb/957931" target="_blank">third hotfix</a> related but not linked in the article, its for XP &#8211; so it seems the problem is through the whole product line), states that if an error occurs Windows is normally hard-coded to ignore EAPOL packets for 20min. I would guess it is the same for Windows 7 too. The linked article tells you to install the patch and set some registry key to lower the value.</li>
<li><a href="http://support.microsoft.com/kb/2769121" target="_blank">KB2769121<br />
</a>A short time ago I found this one: &#8220;802.1X authentication fails on a Windows 7-based or Windows 2008 R2-based computer that has multiple certificates&#8221;. At time of writing I&#8217;m not sure if it helps for something in my setup. According to the symptoms list of the hotfix, it does not, but maybe it helps for something else, as the one before does.</li>
<li><a href="http://support.microsoft.com/kb/2736878" target="_blank">KB2736878</a><br />
An other error during booting &#8211; this time it happens if the read process starts before the network adapter is initialized. Really seems that they wanted to get faster boot times, no matter the costs.</li>
<li><a href="http://support.microsoft.com/kb/2494172" target="_blank">KB2494172</a><br />
This hotfix fixes a problem if you&#8217;ve installed a valid and invalid certificate for 802.1x authentication. The workaround is just deleting the invalid certificate. I&#8217;m not sure at this point if it affects also wired authentication.</li>
<li><a href="http://support.microsoft.com/kb/976210" target="_blank">KB976210</a><br />
This problem occurs only during automated build processes and if you use an EAP method which needs user interaction &#8211; as I don&#8217;t do that I can&#8217;t comment on this hotfix.</li>
</ol>
<p>So far this is my list &#8211; with the list you should get running Windows 7 and 802.1x nicely, but it is not perfect &#8211; Do you know any other patches or workarounds?</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/555/list-of-ieee-802-1x-hotfixes-for-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mapping a serial device to a KVM guest may lead to communication problems</title>
		<link>http://robert.penz.name/550/mapping-a-serial-device-to-a-kvm-guest-may-lead-to-communication-problems/</link>
		<comments>http://robert.penz.name/550/mapping-a-serial-device-to-a-kvm-guest-may-lead-to-communication-problems/#comments</comments>
		<pubDate>Sun, 16 Dec 2012 14:07:45 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=550</guid>
		<description><![CDATA[I&#8217;m monitoring my heat pump from my server at home. Last week I moved the monitoring part into a KVM VM and mapped the serial interface (serial to USB adapter) to the virtual machine. Basically it worked, but some queries never worked, but they did before the move and nothing else has been changed. After [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m monitoring my heat pump from my server at home. Last week I moved the monitoring part into a KVM VM and mapped the serial interface (serial to USB adapter) to the virtual machine. Basically it worked, but some queries never worked, but they did before the move and nothing else has been changed. After hours of searching rewriting parts of my software and searching for an error in the heap pump controller,  I got the idea to map the serial to USB adapter into the VM and not only the ttyUSB0 device &#8230;. and at once it worked again.  So this post is basically a hint for others who run into the same problem. I&#8217;m talking with following settings to my heatpump <code>57600, 8, N, 1</code>, and I&#8217;m running up to date Centos/SL 6 as host and guest.</p>
<p>ps: Before moving the software into a KVM VM, I had it running withing a openvz container without problems for years, but I needed a custom kernel for it and that doesn&#8217;t play that well with a cutting edge BTRFS kernel. <img src='http://robert.penz.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/550/mapping-a-serial-device-to-a-kvm-guest-may-lead-to-communication-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>D-root is changing its IPv4 address on the 3rd of January.</title>
		<link>http://robert.penz.name/541/d-root-is-changing-its-ipv4-address-on-the-3rd-of-january/</link>
		<comments>http://robert.penz.name/541/d-root-is-changing-its-ipv4-address-on-the-3rd-of-january/#comments</comments>
		<pubDate>Sat, 15 Dec 2012 09:28:09 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=541</guid>
		<description><![CDATA[I repost the full advanced notice from the University of Maryland (which administrates the D root DNS server). Here the original Post: This is advance notice that there is a scheduled change to the IPv4 address for one of the authorities listed for the DNS root zone and the .ARPA TLD. The change is to [...]]]></description>
				<content:encoded><![CDATA[<p>I repost the full advanced notice from the University of Maryland (which administrates the D root DNS server).<br />
Here the <a href="http://seclists.org/nanog/2012/Dec/330" target="_blank">original Post</a>:</p>
<p><em>This is advance notice that there is a scheduled change to the IPv4 address for one of the authorities listed for the DNS root zone and the .ARPA TLD. The change is to D.ROOT-SERVERS.NET, which is administered by the University of Maryland.</em></p>
<p>The new IPv4 address for this authority is 199.7.91.13. The current IPv6 address for this authority is 2001:500:2d::d and it will continue to remain unchanged.</p>
<p>This change is anticipated to be implemented in the root zone on 3 January 2013, however the new address is currently operational. It will replace the previous IP address of 128.8.10.90 (also once known as TERP.UMD.EDU).</p>
<p>We encourage operators of DNS infrastructure to update any references to the old IP address, and replace it with the new address. In particular, many DNS resolvers have a DNS root “hints” file. This should be updated with the new IP address.</p>
<p>New hints files will be available at the following URLs once the change has been formally executed:</p>
<p><a href="http://www.internic.net/domain/named.root" rel="nofollow">http://www.internic.net/domain/named.root</a></p>
<p><a href="http://www.internic.net/domain/named.cache" rel="nofollow">http://www.internic.net/domain/named.cache</a></p>
<p>The old address will continue to work for at least six months after the transition, but will ultimately be retired from service.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/541/d-root-is-changing-its-ipv4-address-on-the-3rd-of-january/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A howto for using a Canon PIXMA MG4250 under Ubuntu</title>
		<link>http://robert.penz.name/532/a-howto-for-using-a-canon-pixma-mg4250-under-ubuntu/</link>
		<comments>http://robert.penz.name/532/a-howto-for-using-a-canon-pixma-mg4250-under-ubuntu/#comments</comments>
		<pubDate>Fri, 07 Dec 2012 11:09:01 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=532</guid>
		<description><![CDATA[We&#8217;ve bought a new multi functions printer at home, a Canon PIXMA MG4250 and as we&#8217;re a Linux shop (PCs and notebooks under Linux, mobiles and tablets under Android) I needed to make the printer work under Ubuntu, in our case Ubuntu 12.04, but the solution should work also under newer versions. We&#8217;ve connected the [...]]]></description>
				<content:encoded><![CDATA[<p>We&#8217;ve bought a new multi functions printer at home, a Canon PIXMA MG4250 and as we&#8217;re a Linux shop (PCs and notebooks under Linux, mobiles and tablets under Android) I needed to make the printer work under Ubuntu, in our case Ubuntu 12.04, but the solution should work also under newer versions. We&#8217;ve connected the printer via WiFi and therefore need both printing and scanning to work via WiFi.</p>
<p>At least at the time of writing this blog post, searching for a driver or howto was not that easy, specially if you search on the US or European Canon Site &#8230;. you need to got the <a href="http://support-asia.canon-asia.com/?personal" target="_blank"> Asian site</a>. You wont find the MG4250 listed there but the MG4270. Take it. I should lead you to a driver <a href="http://support-asia.canon-asia.com/P/search?model=PIXMA+MG4270&amp;menu=download&amp;filter=0&amp;tagname=g_os&amp;g_os=Linux" target="_blank">site</a> where you can choose &#8220;Linux&#8221; and than 2 links are interesting for you</p>
<ul>
<li><a href="http://support-asia.canon-asia.com/contents/ASIA/EN/0100470302.html">MG4200 series ScanGear MP Ver. 2.00 for Linux (debian <strong>&#8230;</strong></a></li>
<li><a href="http://support-asia.canon-asia.com/contents/ASIA/EN/0100466802.html">MG4200 series IJ Printer Driver Ver. 3.80 for Linux (debian <strong>&#8230;</strong></a></li>
</ul>
<p><em>I provided direct links to the drivers above but the version may change or the URLs themselves &#8211; so maybe the links are broken at the time you&#8217;re reading it &#8211; in this case you need to click through the site to the new pages.</em></p>
<p>As you see the drivers are generic for the whole MG4200 series so we&#8217;re good. Download the tar.gz files and open a console (e.g. CTRL-ALT-T) and change to that directory.</p>
<p><strong>Printing Part</strong></p>
<p>Lets start with the printing part by extracting the tar.gz and changing into the newly created directory.<br />
<code><br />
$ tar xzf cnijfilter-mg4200series-3.80-1-deb.tar.gz<br />
$ cd cnijfilter-mg4200series-3.80-1-deb/<br />
</code><br />
And let the installation process begin with (if prompted for a password use your user password )<br />
<code><br />
$ ./install.sh<br />
</code><br />
After installing the packages you will be asked some questions. The first one is to connect your printer and switch it on. This is followed by the connection method you&#8217;re using (USB vs network). In the case of network it will broadcast within the same subnet, so it only works if the PC and the printer are on the same subnet. After it detected the printer you need knowledge that and choose if it should be the default printer.</p>
<p>After all this just go to the most top right icon and click onto it to the following menu, choose printers &#8230;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-533" title="ubuntu_menu" src="http://robert.penz.name/wp-content/uploads/2012/12/ubuntu_menu.png" alt="" width="341" height="260" /></p>
<p>&nbsp;</p>
<p>&#8230;. and it should show you following with your printer:</p>
<p><img class="aligncenter size-full wp-image-534" title="ubuntu_printers" src="http://robert.penz.name/wp-content/uploads/2012/12/ubuntu_printers.png" alt="" width="452" height="280" /></p>
<p>Ok, printing is working &#8230; lets go to scanning</p>
<p><strong>Scanning Part</strong></p>
<p>As with the printing part extract the tar.gz and change into the newly created directory.<br />
<code><br />
$ tar xzf scangearmp-mg4200series-2.00-1-deb.tar.gz<br />
$ cd scangearmp-mg4200series-2.00-1-deb/<br />
</code><br />
And again we&#8217;re using the install script  (if prompted for a password use your user password ).<br />
<code><br />
$ ./install.sh<br />
</code><br />
You&#8217;ll be asked no questions and after the installation just start the scanning program with following command<br />
<code><br />
$ scangearmp<br />
</code><br />
It will show you an error message that no configured scanner has been detected, click Ok. Now following window is shown:</p>
<p><img class="aligncenter size-full wp-image-536" title="scanner_updater" src="http://robert.penz.name/wp-content/uploads/2012/12/scanner_updater.png" alt="" width="341" height="157" /></p>
<p>In the case of the first start the list is empty, you need to click onto &#8220;Update Scanner List&#8221;, after this you should see the same window with your printer. Click onto Ok and you get following:</p>
<p><img class="aligncenter size-large wp-image-535" title="scanner_software" src="http://robert.penz.name/wp-content/uploads/2012/12/scanner_software-600x439.png" alt="" width="600" height="439" /></p>
<p>And we&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/532/a-howto-for-using-a-canon-pixma-mg4250-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Howto flush the DNS cache in Ubuntu 12.04?</title>
		<link>http://robert.penz.name/522/howto-flush-the-dns-cache-in-ubuntu-12-04/</link>
		<comments>http://robert.penz.name/522/howto-flush-the-dns-cache-in-ubuntu-12-04/#comments</comments>
		<pubDate>Sun, 18 Nov 2012 13:01:15 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://robert.penz.name/?p=522</guid>
		<description><![CDATA[I guess most of you know how to flush the DNS cache on Windows ipconfig /flushdns but how to you do it with Ubuntu? Just open with CTR-ALT-T the terminal and type following sudo /etc/init.d/dns-clean]]></description>
				<content:encoded><![CDATA[<p>I guess most of you know how to flush the DNS cache on Windows<br />
<code><br />
ipconfig /flushdns<br />
</code><br />
but how to you do it with Ubuntu? Just open with <code>CTR-ALT-T</code> the terminal and type following<br />
<code><br />
sudo /etc/init.d/dns-clean<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://robert.penz.name/522/howto-flush-the-dns-cache-in-ubuntu-12-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
