<?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>An It-Slave in the digital saltmine &#187; it-slav.net</title>
	<atom:link href="http://www.it-slav.net/blogs/category/it-slavnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.it-slav.net/blogs</link>
	<description>Another Blog from a Geek that has no life</description>
	<lastBuildDate>Tue, 10 Jan 2012 20:27:48 +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>Anonymise a network segment using TOR and OpenBSD</title>
		<link>http://www.it-slav.net/blogs/2012/01/10/anonymise-a-network-segment-using-tor-and-openbsd/</link>
		<comments>http://www.it-slav.net/blogs/2012/01/10/anonymise-a-network-segment-using-tor-and-openbsd/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 20:27:48 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[The Onion Router]]></category>
		<category><![CDATA[Tor]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2067</guid>
		<description><![CDATA[Background I&#160;have a FON&#160;router which allow anyone to connect to Intenet via my network connection. I&#160;like the openess and idea behind FON but I&#160;do not want to get in trouble if someone do bad things and using my network connection. One solution is to connect the FON&#160;accesspoint to a separate network segment and let all [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>I&nbsp;have a FON&nbsp;router which allow anyone to connect to Intenet via my network connection. I&nbsp;like the openess and idea behind FON but I&nbsp;do not want to get in trouble if someone do bad things and using my network connection.</p>
<p>One solution is to connect the FON&nbsp;accesspoint to a separate network segment and let all traffic from that network go through TOR, the onion router.&nbsp;</p>
<p>Another feature is when I want to be anonymous on Internet I plugin my computer to that network segment.</p>
<p><span id="more-2067"></span></p>
<h2>Setup</h2>
<p>I use OpenBSD as my firewall and the first step is to download, compile and configure TOR.&nbsp;I&nbsp;downloaded the tarball from https://www.torproject.org and used the normal procedure:</p>
<pre># wget https://www.torproject.org/dist/tor-0.2.2.35.tar.gz

# tar xzvf tor-0.2.2.35.tar.gz 

# cd tor-0.2.2.35                                                                                                                                                                

# ./configure&amp;&amp;make&amp;&amp;make install</pre>
<p>&nbsp;</p>
<h2>Configure pf</h2>
<p>I use a specific ethernet interface, fxp0, which will route all traffic into tor.&nbsp;</p>
<p>&nbsp;</p>
<pre>--cut from /etc/pf.conf--

#Tor traffic

tor_if =&quot;fxp0&quot;

# Tor&#39;s TransPort

trans_port = &quot;9040&quot;

pass in quick on $tor_if inet proto udp to port domain rdr-to 127.0.0.1 port 5300 

pass in quick on $tor_if inet proto { tcp udp } to !($tor_if) rdr-to 127.0.0.1 port $trans_port

--end cut--</pre>
<h2>&nbsp;</h2>
<h2>Configure tor</h2>
<p>&nbsp;</p>
<pre># cat /usr/local/etc/tor/torrc

VirtualAddrNetwork 10.192.0.0/10

AutomapHostsOnResolve 1

TransPort 9040

DNSPort 5300

Log notice syslog

#Log debug stderr

RunAsDaemon 1</pre>
<p>&nbsp;</p>
<p>Note: I know that best practice is to let the tor process run as non root user. That requires read access to /dev/pf and I did not bother to get it working.</p>
<p>&nbsp;</p>
<h2>Dhcpd config</h2>
<p>I assume that a OpenBSD sysadmin knows how to setup dhcpd so I will just show the config addon I did to /etc/dhcpd.conf.</p>
<p>&nbsp;</p>
<pre>shared-network tor-net {

        option  domain-name &quot;it-slav-tor-net&quot;;

        option  domain-name-servers 10.1.2.1;

        option  ntp-servers 10.1.2.1;

        subnet 10.1.2.0 netmask 255.255.255.0 {

                option routers 10.1.2.1;

                range 10.1.2.100 10.1.2.200;

        }</pre>
<p>&nbsp;</p>
<p>The ip-adress of the fxp0 interface is 10.1.2.1</p>
<p>&nbsp;</p>
<h2>Start tor</h2>
<p>&nbsp;</p>
<pre># /usr/local/bin/tor

Jan 10 20:52:48.880 [notice] Tor v0.2.2.35 (git-b04388f9e7546a9f). This is experimental software. Do not rely on it for strong anonymity. (Running on OpenBSD i386)

Jan 10 20:52:48.885 [warn] It&#39;s a little hard to tell, but you seem to have Libevent 1.4.0-beta header files, whereas you have linked against Libevent 1.4.14b-stable.  This will probably make Tor crash.

Jan 10 20:52:48.886 [notice] Initialized libevent version 1.4.14b-stable using method kqueue. Good.

Jan 10 20:52:48.886 [notice] Opening Socks listener on 127.0.0.1:9050

Jan 10 20:52:48.887 [notice] Opening Transparent pf/netfilter listener on 127.0.0.1:9040

Jan 10 20:52:48.887 [notice] Opening DNS listener on 127.0.0.1:5300</pre>
<p>&nbsp;</p>
<h2>Final step</h2>
<p>Plugin your fon router and enjoy!</p>
<p>&nbsp;</p>
<h2>Links</h2>
<p>The hints to this article was found at:</p>
<ul>
<li><a href="https://trac.torproject.org/projects/tor/wiki/TheOnionRouter/TransparentProxy " target="_blank">&nbsp;https://trac.torproject.org/projects/tor/wiki/TheOnionRouter/TransparentProxy&nbsp;</a></li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2012%2F01%2F10%2Fanonymise-a-network-segment-using-tor-and-openbsd%2F&amp;title=Anonymise%20a%20network%20segment%20using%20TOR%20and%20OpenBSD" id="wpa2a_2"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2012/01/10/anonymise-a-network-segment-using-tor-and-openbsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM virtualization, some best practice, part 1</title>
		<link>http://www.it-slav.net/blogs/2012/01/01/kvm-virtualization-some-best-practice/</link>
		<comments>http://www.it-slav.net/blogs/2012/01/01/kvm-virtualization-some-best-practice/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 20:02:05 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2181</guid>
		<description><![CDATA[Background As an it slave, I have the same problems as most datacenters: Running out of space because of more and more machines get into the datacenter Overheating Powerconsumption Added to the &#34;normal&#34; datacenter problems, I also have to deal with: Wife acceptance Noice, my neighbours has complained about the noice outside my basement. To [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>As an it slave, I have the same problems as most datacenters:</p>
<ul>
<li>Running out of space because of more and more machines get into the datacenter</li>
<li>Overheating</li>
<li>Powerconsumption</li>
</ul>
<p>Added to the &quot;normal&quot; datacenter problems, I also have to deal with:</p>
<ul>
<li>Wife acceptance</li>
<li>Noice, my neighbours has complained about the noice outside my basement.</li>
</ul>
<p>To address this issues I will run a consolidation project to get fewer machines by using virtualization. As virtualization engine, KVM is choosed.</p>
<p>This article will describe some pitfalls I run into and how I solved them.</p>
<p><span id="more-2181"></span></p>
<h2>&nbsp;</h2>
<h2>&nbsp;</h2>
<h2>KVM plattform</h2>
<p>KVM seems to be the future for virtualization within the Linux area since Xen has done some mistakes.</p>
<p>As I have good experience of running CentOS and has KVM included I decided to use CentOS as the plattform for my virtualization.</p>
<p>&nbsp;</p>
<h2>Issues</h2>
<h3>Bridge network</h3>
<p>To let the virtual boxes has full access to the network you need create a network bridge, it is rather straightforward and well documented so I will skip this part. I used the documentation on Red Hat customer support. Why KVM requires a bridge instead of a normal NIC is another question <img src='http://www.it-slav.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>&nbsp;</h3>
<h3>Snapshots</h3>
<p>One handy feature with virtualization is that the virtual systems can be one big fat file at the physical host, this gives the possibility to make full backups without turning the system down a.k.a snapshots.</p>
<p>However to get snapshot to work the filetype must be qcow2 and raw is the default format.</p>
<p>It is possible to convert from raw to qcow2 format by running the command:</p>
<pre>qemu-img convert -f raw -O qcow2 &lt;virtualhost&gt;.img &lt;virtualhost&gt;.img.qcow2</pre>
<p>Remember to turn of your virtual system by running:</p>
<pre>virsh shutdown &lt;virtualhost&gt;
</pre>
<p>After the conversion:</p>
<pre>virsh edit &lt;virtualhost&gt;
</pre>
<p>modify the type and path, i.e.</p>
<pre>      &lt;driver name=&#39;qemu&#39; type=&#39;qcow2&#39; cache=&#39;none&#39;/&gt;
      &lt;source file=&#39;/var/lib/libvirt/images/web.img.qcow2&#39;/&gt;
</pre>
<p>Start your virtual system:</p>
<pre>virsh start &lt;virtualhost&gt;</pre>
<p>&nbsp;</p>
<p>Take a snapshot with:</p>
<pre>qemu-img snapshot -c &lt;snapshotname&gt; &lt;virtualhost&gt;.img.preallc.qcow2</pre>
<p>&nbsp;</p>
<p>To create a full image of your snapshot you need to compile a more resent version of qemu-img then shipped with CentOS 6.2, I download a later version and compiled it from <a href="http://git.qemu.org/qemu.git/commit/?id=51ef67270b1d10e1fcf3de7368dccad1ba0bf9d1" target="_blank">here</a>, i renamed the new to qemu.img2 and copied it to /usr/local/bin</p>
<pre>qemu-img2 convert -p -f qcow2 -O qcow2 -s &lt;snapshotname&gt; &lt;virtualhost&gt;.img.preallc.qcow2 &lt;targetpath&gt;
</pre>
<p>Beware: This command can use all your resources and may affect all your virtual systems, use nice and ionice to prevent it.</p>
<h3>&nbsp;</h3>
<h3>Disk I/O</h3>
<p>After installing just a few virtual system I noticed that my physical host got alot of I/O wait, it can be seen by using tools like top.</p>
<p>To monitor this I installed the nagios plugins:</p>
<ul>
<li>check disk io, can be found <a href="https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_diskio" target="_blank">here</a></li>
<li>check cpu stats, can be found <a href="http://exchange.nagios.org/directory/Plugins/System-Metrics/CPU-Usage-and-Load/check_cpu_stats-2Esh/details" target="_blank">here</a></li>
<li>check_libvirt, developed by <a href="http://www.op5.com" target="_blank">op5</a> and an <a href="http://www.op5.com/how-to/how-to-monitor-kvm-installation/" target="_blank">Howto </a></li>
</ul>
<p>However it seems like that though my virtual systems did more or less nothing they caused alot of disk I/O on the physical system.</p>
<p>I did some investigations and read quite many articles, fiddled and tested. The following is what worked for me in my setup.</p>
<h4>#1 Change disk scheduler</h4>
<p>The disk scheduler can be changed on runtime by modify the file:</p>
<pre>/sys/block/sda/queue/scheduler</pre>
<p>to see what scheduler you use now:</p>
<pre>cat /sys/block/sda/queue/scheduler</pre>
<p>Change sda to the device you have.</p>
<p>The scheduler that worked best for me is deadline</p>
<pre>echo deadline &gt; /sys/block/sda/queue/scheduler</pre>
<p>&nbsp;</p>
<h4>#2 Mount with noatime</h4>
<p>A feature in Unix and other Unixlike systems like Linux is that it normaly stores when a file is accessed. So one read always produce a write and if you are using raid like morroring this get worse, one reade always generate several writes. This creates alot of overhead for a feature soldom used.</p>
<p>So change /etc/fstab so it will mount the file systems with noatime.<br />
	An axample:</p>
<pre>UUID=a290aa4b-635c-45fa-b144-1fbef90b3735 /                       ext4    defaults,noatime        1 1</pre>
<p>&nbsp;</p>
<h4>#3 Preallocation disk images</h4>
<p>A real boost that is hidden in the featureset and not shown in the virtualmachine gui is using preallocation disk images. They cannot be created from the GUI so I install the virtual machine, turn it of and convert it afterwards.</p>
<pre>qemu-img convert -f qcow2 -O qcow2 -o preallocation=metadata &lt;virtualhost&gt;.img.qcow2 &lt;virtualhost&gt;.img.preallc.qcow2</pre>
<p>Change the path to new image name by editing the virtual machine settings</p>
<pre>virsh edit &lt;virtualhost&gt;</pre>
<p>&nbsp;</p>
<h2>Conclusions</h2>
<p>In my opinion it seems like KVM is still a little bit immature or at least the tools to handle it. Maybe it would be a good idea to have one linux distro focusing on beeing the best platform for virtualization.</p>
<p>I am convinced that I can get even more bang for the bucks out of my installation if I learn how to tweak it even more, so if you have any hints, do not hesitate to contact me. Preferably as a comment to this blogpost.</p>
<p>&nbsp;</p>
<h2>Referenses:</h2>
<ul>
<li><a href="http://www.op5.com/network-monitoring/op5-monitor/" target="_blank">op5 Monitor</a>, a nagios based enterprise monitor tool to monitor my environment</li>
<li><a href="http://www.op5.com/how-to/how-to-monitor-kvm-installation/" target="_blank">check_libvirt</a>, a nagios plugin done by op5 to monitor KVM</li>
<li><a href="https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_diskio" target="_blank">check_diskio</a>, a nagios plugin to monitor disk I/O</li>
<li><a href="http://exchange.nagios.org/directory/Plugins/System-Metrics/CPU-Usage-and-Load/check_cpu_stats-2Esh/details" target="_blank">check_cpu_stats</a>, a nagios plugin to monitor cpu usage rather detailed</li>
<li>Another <a href="http://itscblog.tamu.edu/improve-disk-io-performance-in-kvm/" target="_blank">blogpost</a> which helped me</li>
<li><a href="http://www.google.se/url?sa=t&amp;rct=j&amp;q=redhat%206%20kvm%20howto&amp;source=web&amp;cd=6&amp;ved=0CE0QFjAF&amp;url=http%3A%2F%2Fwww.redhat.com%2Fsummit%2F2011%2Fpresentations%2Fsummit%2Fdecoding_the_code%2Fwednesday%2Fwagner_w_420_kvm_performance_improvements_and_optimizations.pdf&amp;ei=qzT-TtvGBsyB4AS8xNmkDg&amp;usg=AFQjCNEK6OMSA4WtSs7NYj6n-jsmauwcnw&amp;cad=rja" target="_blank">KVM performance improvements and optimizations</a> &#8211; Red Hat presentation</li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2012%2F01%2F01%2Fkvm-virtualization-some-best-practice%2F&amp;title=KVM%20virtualization%2C%20some%20best%20practice%2C%20part%201" id="wpa2a_4"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2012/01/01/kvm-virtualization-some-best-practice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It-Slav.Net gets 100 Mbit/s</title>
		<link>http://www.it-slav.net/blogs/2012/01/01/it-slav-net-gets-100-mbits/</link>
		<comments>http://www.it-slav.net/blogs/2012/01/01/it-slav-net-gets-100-mbits/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 13:36:38 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[it-slav.net]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2175</guid>
		<description><![CDATA[After a couple of weeks fiddeling I can prodly announce that my new internet connection is in full use. The new access speed is 100 Mbit/s optical fiber, iperf tests show that I can get approx 97 Mbit/s in booth directions. Changes: 100 Mbit/s internet access provided by Ownit Updated firewall to OpenBSD 5.0 running [...]]]></description>
			<content:encoded><![CDATA[<p>After a couple of weeks fiddeling I can prodly announce that my new internet connection is in full use.</p>
<p>The new access speed is 100 Mbit/s optical fiber, iperf tests show that I can get approx 97 Mbit/s in booth directions.</p>
<p>Changes:</p>
<ul>
<li>100 Mbit/s internet access provided by Ownit</li>
<li>Updated firewall to OpenBSD 5.0 running on an Astaro appliance</li>
<li>Updated Webserver to Centos 6.2, virtulized with KVM</li>
<li>Updated Mailserver to Centos 6.2, virtulized with KVM</li>
</ul>
<p>&nbsp;</p>
<p>Happy new year</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2012%2F01%2F01%2Fit-slav-net-gets-100-mbits%2F&amp;title=It-Slav.Net%20gets%20100%20Mbit%2Fs" id="wpa2a_6"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2012/01/01/it-slav-net-gets-100-mbits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Today someone killed my Internetaccess</title>
		<link>http://www.it-slav.net/blogs/2011/09/02/today-someone-killed-my-internetaccess/</link>
		<comments>http://www.it-slav.net/blogs/2011/09/02/today-someone-killed-my-internetaccess/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 20:34:33 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2136</guid>
		<description><![CDATA[My internet connection is a crappy ADSL line. &#160; I noticed that I did get alot alerts from op5 Monitor complaining about high error rate on the external network. After some investigation I noticed that UDP port 5060 generated approx 1.5 Mbps in traffic and that is more or less maximum my ADSL connection can [...]]]></description>
			<content:encoded><![CDATA[<p>My internet connection is a crappy ADSL line.</p>
<p>&nbsp;</p>
<p>I noticed that I did get alot alerts from op5 Monitor complaining about high error rate on the external network. After some investigation I noticed that UDP port 5060 generated approx 1.5 Mbps in traffic and that is more or less maximum my ADSL connection can handle. UDP port 5060 that is SIP.</p>
<p>&nbsp;</p>
<p>A nice graph showing the errorrates, generated by op5 Monitor:</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2011/09/Screen-Shot-2011-09-02-at-10.19.20-PM.png"><img alt="" title="Screen Shot 2011-09-02 at 10.19.20 PM" width="612" height="265" class="aligncenter size-full wp-image-2137" src="http://www.it-slav.net/blogs/wp-content/uploads/2011/09/Screen-Shot-2011-09-02-at-10.19.20-PM.png" /></a></p>
<p><span id="more-2136"></span>&nbsp;</p>
<p>I looked into my Asterisk log:</p>
<p>&nbsp;</p>
<p class="p1">[Sep &nbsp;2 20:01:35] NOTICE[2459] chan_sip.c: Registration from &#8216;&quot;3959&quot; &lt;sip:3959@82.182.144.134&gt;&#8217; failed for &#8217;50.97.142.134&#8242; &#8211; No matching peer found</p>
<p class="p1">[Sep &nbsp;2 20:01:35] NOTICE[2459] chan_sip.c: Registration from &#8216;&quot;3959&quot; &lt;sip:3959@82.182.144.134&gt;&#8217; failed for &#8217;50.97.142.134&#8242; &#8211; No matching peer found</p>
<p class="p1">[Sep &nbsp;2 20:01:35] NOTICE[2459] chan_sip.c: Registration from &#8216;&quot;3959&quot; &lt;sip:3959@82.182.144.134&gt;&#8217; failed for &#8217;50.97.142.134&#8242; &#8211; No matching peer found</p>
<p class="p1">[Sep &nbsp;2 20:01:35] NOTICE[2459] chan_sip.c: Registration from &#8216;&quot;3959&quot; &lt;sip:3959@82.182.144.134&gt;&#8217; failed for &#8217;50.97.142.134&#8242; &#8211; No matching peer found</p>
<p class="p1">[Sep &nbsp;2 20:01:35] NOTICE[2459] chan_sip.c: Registration from &#8216;&quot;3959&quot; &lt;sip:3959@82.182.144.134&gt;&#8217; failed for &#8217;50.97.142.134&#8242; &#8211; No matching peer found</p>
<p class="p1">[Sep &nbsp;2 20:01:35] NOTICE[2459] chan_sip.c: Registration from &#8216;&quot;3959&quot; &lt;sip:3959@82.182.144.134&gt;&#8217; failed for &#8217;50.97.142.134&#8242; &#8211; No matching peer found</p>
<p class="p1">&nbsp;</p>
<h2>Conclusion</h2>
<p>Someone from 50.97.142.134 tries to register their SIP device on my Asterisk server, they do it an abnormal high rate.</p>
<p>&nbsp;</p>
<h2>&nbsp;</h2>
<h2>Reaction</h2>
<p class="p1">I created a block in my firewall on everything from&nbsp;50.97.142.134. Unfortunatly it does not help much because it is on the wrong side of the ADSL connection. But I get rid of the handshaking and filled logs.</p>
<p class="p1">&nbsp;</p>
<p class="p1">A whois search showed that the traffic comes from Softlayer in Dallas, so I wrote an email to postmaster@softlayer.com.</p>
<p class="p1">&nbsp;</p>
<p class="p1">Lets see if I get any reaction</p>
<p class="p1">&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2011%2F09%2F02%2Ftoday-someone-killed-my-internetaccess%2F&amp;title=Today%20someone%20killed%20my%20Internetaccess" id="wpa2a_8"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2011/09/02/today-someone-killed-my-internetaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phonzo SIP provider tries to block Asterisk</title>
		<link>http://www.it-slav.net/blogs/2009/12/07/phonzo-sip-provider-tries-to-block-asterisk/</link>
		<comments>http://www.it-slav.net/blogs/2009/12/07/phonzo-sip-provider-tries-to-block-asterisk/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:17:47 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1507</guid>
		<description><![CDATA[After the problems I&#160;have had with Bredband2, I&#160;want to test Phonzo.se as a new VoIP provider. I&#160;registered on their homepage and after a couple of days I&#160;got a snail mail with my credentials. I&#160;configured my FreePBX and calling in worked directly, but not outgoing. After 2 hours of troubleshooting I&#160;started to google &#34;phonzo asterisk&#34; and [...]]]></description>
			<content:encoded><![CDATA[<p>After the problems I&nbsp;have had with Bredband2, I&nbsp;want to test <a href="http://www.phonzo.se" target="_blank">Phonzo.se</a> as a new VoIP provider.</p>
<p>I&nbsp;registered on their homepage and after a couple of days I&nbsp;got a snail mail with my credentials.</p>
<p>I&nbsp;configured my FreePBX and calling in worked directly, but not outgoing. After 2 hours of troubleshooting I&nbsp;started to google &quot;phonzo asterisk&quot; and found several people that has the same experience. The reason is that Phonzo does not accepted &quot;Asterisk PBX&quot; as useragent and that is default in Asterisk.</p>
<p>&nbsp;</p>
<p>After changing sip.conf</p>
<pre>
[general]

...

useragent=it-slav PBX

....</pre>
<p>
It worked!</p>
<p><span id="more-1507"></span>&nbsp;</p>
<p>I&nbsp;do not like unlogical stupidity so I&nbsp;sent an email to the support and the following bizare mail conversation occoured:</p>
<address>Me : Why do you try to block Asterisk? Changing useragent=garbage makes it work.</address>
<address>&nbsp;</address>
<address>Phonzo: We do not try to block Asterisk in any way. Just change your useragent to something else, then it works.</address>
<address>&nbsp;</address>
<address>Me: Why do I&nbsp;have to change it? It took me 2 hours to figure out.</address>
<address>&nbsp;</address>
<address>Phonzo: You must change UA because our system do not accept &quot;Asterisk PBX&quot; as UA. This is something Phonzo always has had.</address>
<address>&nbsp;</address>
<address>Me: Why did you introduce this limitation in the first place? When will you remove it?</address>
<address>&nbsp;</address>
<address>Phonzo: The reason for this change is that the company evolve and new solutions has been implemented. If our customers finds it problematic that we do not accept UA to be &quot;Asterisk PBX&quot; we will remove it.</address>
<address>&nbsp;</address>
<address>Me: The question is total opposite, you erlier claimed that is has NOT&nbsp;changed, instead it was introduced when Phonzo started.</address>
<address>Lets recap:</address>
<address>-You claim that UA &quot;Asterisk PBX&quot; is not allowed because that is something you introduced when Phonzo started, &quot;why?&quot; has not been answered.</address>
<address>-You claim that you do not block Asterisk because, if anyone asks, you tell them to change UA. No reason why this limitation was introduced at all. My conclusion is that you block Asterisk.</address>
<address>-You will remove it if it causes problems to your customers. I lost two hours and I&nbsp;find several other on internet that see this as problematic. Take it away.</address>
<address>&nbsp;</address>
<address>Phonzo: It is not a problem to change UA it is very simple. Every other question has been answered.</address>
<address>&nbsp;</address>
<address>Me: Now I&nbsp;have published this bizare conversation on my blog.</address>
<address>The question still remains:</address>
<address>Why do you not allow UA &quot;Asterisk PBX&quot;?</address>
<address>&nbsp;</address>
<p>I&nbsp;will update this post when new info arrives.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2009%2F12%2F07%2Fphonzo-sip-provider-tries-to-block-asterisk%2F&amp;title=Phonzo%20SIP%20provider%20tries%20to%20block%20Asterisk" id="wpa2a_10"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/12/07/phonzo-sip-provider-tries-to-block-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network outage for it-slav.net</title>
		<link>http://www.it-slav.net/blogs/2009/09/07/network-outage-for-it-slav-net/</link>
		<comments>http://www.it-slav.net/blogs/2009/09/07/network-outage-for-it-slav-net/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 19:44:49 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[it-slav.net]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1294</guid>
		<description><![CDATA[At 4.30 CET I&#160; lost my internet connection and 9.30 CET it was back. After that it was flapping up and down for a couple of hours. My ISP is Bredbandsbolaget and I&#160;continusly looked at their so called maintenance site. Not a word about the disturbance. It really annoys me that there was no information [...]]]></description>
			<content:encoded><![CDATA[<p>At 4.30 CET I&nbsp; lost my internet connection and 9.30 CET it was back. After that it was flapping up and down for a couple of hours. My ISP is Bredbandsbolaget and I&nbsp;continusly looked at their so called maintenance site. Not a word about the disturbance. It really annoys me that there was no information what so ever, I tried to call them and gave up after 20 minutes of &quot;thanks for your patience&quot; in my ear. I tried to send an email and got an automated answer saying that they will come back to me in a couple of days. Yes days!!</p>
<p>&nbsp;</p>
<p>I&nbsp;know for sure that the problems was not on my side, because a friends friend that lives in the same area had the same problem.</p>
<p>&nbsp;</p>
<p>This graph shows the packet lost when pinging the closest router:</p>
<p><img height="193" width="597" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/09/firstrouterautage.png" alt="firstrouterautage" title="firstrouterautage" class="aligncenter size-full wp-image-1295" /></p>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2009%2F09%2F07%2Fnetwork-outage-for-it-slav-net%2F&amp;title=Network%20outage%20for%20it-slav.net" id="wpa2a_12"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/09/07/network-outage-for-it-slav-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change WordPress permalinks on the fly.</title>
		<link>http://www.it-slav.net/blogs/2009/08/20/change-wordpress-permalinks-on-the-fly/</link>
		<comments>http://www.it-slav.net/blogs/2009/08/20/change-wordpress-permalinks-on-the-fly/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 17:36:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[permalinks]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1191</guid>
		<description><![CDATA[I have moved my blog from one system to another and at the same time upgrade to the latest and greatest WordPress version. Using the default link structure in WordPress gives links like: http://www.it-slav.net/blogs/?p=115 when a more logical link name is: http://www.it-slav.net/blogs/2008/11/17/op5-monitor-or-nagios-plugins-for-1-wire-temperature-measurement/ The more logical name gives date and title of the blog post instead [...]]]></description>
			<content:encoded><![CDATA[<p>I have moved my blog from one system to another and at the same time upgrade to the latest and greatest WordPress version. Using the default link structure in WordPress gives links like: <a href="http://www.it-slav.net/blogs/?p=115" target="_self">http://www.it-slav.net/blogs/?p=115</a> when a more logical link name is: <a href="http://www.it-slav.net/blogs/2008/11/17/op5-monitor-or-nagios-plugins-for-1-wire-temperature-measurement/" target="_blank">http://www.it-slav.net/blogs/2008/11/17/op5-monitor-or-nagios-plugins-for-1-wire-temperature-measurement/</a></p>
<p>The more logical name gives date and title of the blog post instead of a cryptic number.  Changing from one to another is rather simple, just change it in the wordpress settings, but there is several drawbacks:</p>
<ul>
<li>Referers stop working, if someone is refering to your pages they will stop working until someone updates the link</li>
<li>Search engines will refer to the wrong page until the pages are indexed again and very likely the rank will drop</li>
<li>WordPress internal references will stop working, so the mainpage links will stop working. This is real stupid and I do not understand why WordPress behaves like this.</li>
</ul>
<p>The solution is to install the plugin&nbsp; &quot;<a href="http://www.microkid.net/wordpress/permalinks-moved-permanently/" target="_blank">Permalinks Moved Permanently</a>&quot; which fixes this problem, make sure that the webserver allows rewrite.</p>
<p>&nbsp;</p>
<p>Links</p>
<ul>
<li>The plugin used <a href="http://www.microkid.net/wordpress/permalinks-moved-permanently/" target="_blank">Permalinks Moved Permanently</a></li>
<li>A webpage describing howto <a href="http://ubuntuforums.org/showthread.php?t=255556" target="_blank">enable mod_rewrite for Ubuntu Server</a>.</li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2009%2F08%2F20%2Fchange-wordpress-permalinks-on-the-fly%2F&amp;title=Change%20WordPress%20permalinks%20on%20the%20fly." id="wpa2a_14"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/08/20/change-wordpress-permalinks-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

