<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/crox/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://blog.crox.net/feeds/atom10.xml" rel="self" title="blog.crox.net" type="application/atom+xml" />
    <link href="http://blog.crox.net/"                        rel="alternate"    title="blog.crox.net" type="text/html" />
    <link href="http://blog.crox.net/rss.php?version=2.0"     rel="alternate"    title="blog.crox.net" type="application/rss+xml" />
    <title type="html">blog.crox.net</title>
    <subtitle type="html"></subtitle>
    <icon>http://blog.crox.net/templates/crox/img/s9y_banner_small.png</icon>
    <id>http://blog.crox.net/</id>
    <updated>2013-05-19T20:52:22Z</updated>
    <generator uri="http://www.s9y.org/" version="1.6">Serendipity 1.6 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://blog.crox.net/archives/82-vim-instead-of-nano-Ubuntu-Debian.html" rel="alternate" title="vim instead of nano (Ubuntu / Debian)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2013-05-19T20:52:22Z</published>
        <updated>2013-05-19T20:52:22Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=82</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=82</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/82-guid.html</id>
        <title type="html">vim instead of nano (Ubuntu / Debian)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <pre>apt-get install vim<br/>update-alternatives --config editor</pre><br />
 
            </div>
        </content>
        <dc:subject>debian</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>ubuntu</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/80-raspbmc-getting-rid-of-iptables.html" rel="alternate" title="raspbmc - getting rid of iptables" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2013-04-04T20:39:00Z</published>
        <updated>2013-04-05T00:58:55Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=80</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=80</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/80-guid.html</id>
        <title type="html">raspbmc - getting rid of iptables</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I don't need a firewall on my Raspberry PI which runs XMBC (raspbmc distribution) - it's in a dedicated subnet behind a firewall. Furthermore, there are several reports of iptables having an impact on the performance of network playback, causing buffering issues (although I didn't do any benchmark myself).<br />
<br />
I modified /etc/network/if-up.d/secure-rmc by adding "exit 0" right at the beginning like this:<pre>#!/bin/bash<br /><br />exit 0<br /><br />dec_to_bin() {<br />...</pre><br />
And then I ran:<pre>apt-get remove iptables</pre><br />
This was followed by a reboot.<br />
<br />
nb: the secure-rmc file appears to be a raspbmc addition, and it could probably just be deleted instead.<br />
<br />
 
            </div>
        </content>
        <dc:subject>debian</dc:subject>
<dc:subject>iptables</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>raspberry pi</dc:subject>
<dc:subject>raspbmc</dc:subject>
<dc:subject>xbmc</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/77-now-with-IPv6.html" rel="alternate" title="now with IPv6" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2012-01-30T19:23:26Z</published>
        <updated>2012-04-20T20:04:29Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=77</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=77</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/77-guid.html</id>
        <title type="html">now with IPv6</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                In anticipation of <a href="http://www.worldipv6day.org/" title="World IPv6 Launch Day">World IPv6 Launch Day</a> (6 June 2012), this website is now fully reachable over IPv6. 
            </div>
        </content>
        <dc:subject>ipv6</dc:subject>
<dc:subject>network</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/76-IPv6-test-websites.html" rel="alternate" title="IPv6 test websites" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2012-01-22T23:33:00Z</published>
        <updated>2012-01-22T23:56:59Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=76</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=76</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/76-guid.html</id>
        <title type="html">IPv6 test websites</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <ul><br />
<li><a href="http://ipv6-test.com/">http://ipv6-test.com/</a> (also has a speed test, <a href="http://blog.crox.net/archives/75-Enabling-IPv6-Privacy-Extensions-on-all-interfaces-Ubuntu-Linux,-may-work-for-other-distros-too.html">shows your MAC address when available</a>)</li><br />
<li><a href="http://test-ipv6.com/">http://test-ipv6.com/</a> (provides detailed technical info and "readiness score")</li><br />
<li><a href="http://whatismyv6.com/">http://whatismyv6.com/</a> (<a href="http://ipv4.whatismyv6.com/" >IPv4 only</a>, <a href="http://ipv6.whatismyv6.com/" >IPv6 only</a>)</li><br />
<li><a href="http://www.whatismyipv6.net/">http://www.whatismyipv6.net/</a> (provides traceroute and ping, also suports IPv4)</li><br />
</ul> 
            </div>
        </content>
        <dc:subject>ipv6</dc:subject>
<dc:subject>network</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/75-Enabling-IPv6-Privacy-Extensions-on-all-interfaces-Ubuntu-Linux,-may-work-for-other-distros-too.html" rel="alternate" title="Enabling IPv6 Privacy Extensions on all interfaces (Ubuntu Linux, may work for other distros too)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2012-01-22T23:22:01Z</published>
        <updated>2012-01-22T23:55:29Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=75</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=75</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/75-guid.html</id>
        <title type="html">Enabling IPv6 Privacy Extensions on all interfaces (Ubuntu Linux, may work for other distros too)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                According to the <a href="http://en.wikipedia.org/wiki/IPv6"  title="IPv6">Wikipedia IPv6 article</a>, <i>Privacy extensions are, except for the Windows platform and Mac OS X since 10.7 as well as iOS since version 4.3, not enabled by default</i>.<br />
<br />
In theory, one can enable the IPv6 Privacy Extensions on all interfaces at once using sysctl like this:<pre>sudo sysctl net.ipv6.conf.all.use_tempaddr=2</pre><br />
However, this currently doesn't work as expected, so I'm using this one-liner in /etc/rc.local:<pre>for IF in `/bin/ls /proc/sys/net/ipv6/conf/*/use_tempaddr` ; do echo 2 > $IF ; done</pre><br />
This also sets "use_tempaddr" for "default", which means it should also apply to interfaces added to the system afterwards.<br />
<br />
A simple check to verify that the new configuration is working: <a href="http://ipv6-test.com/"  title="ipv6-test.com">ipv6-test.com</a> will print your MAC address when available...<br />
<br />
See also: <a href="https://bugzilla.kernel.org/show_bug.cgi?id=11655" >Linux Kernel Bug 11655</a><br />
<br/> 
            </div>
        </content>
        <dc:subject>ipv6</dc:subject>
<dc:subject>kernel</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>network</dc:subject>
<dc:subject>ubuntu</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/74-VaudTax-2010-avec-Ubuntu-linux-64-bit.html" rel="alternate" title="VaudTax 2010 avec Ubuntu linux 64-bit" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2011-04-18T15:07:21Z</published>
        <updated>2012-01-30T00:12:35Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=74</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=74</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/74-guid.html</id>
        <title type="html">VaudTax 2010 avec Ubuntu linux 64-bit</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <a href="http://www.vd.ch/fileadmin/user_upload/organisation/dfin/aci/fichiers_pdf/Tutoriel-Linux-Mozilla_2010.pdf" >Les instructions pour Linux fournies sur le site officiel</a> ne fonctionnent pas pour moi (Maverick / Ubuntu 10.10 desktop amd64).<br />
<br />
Il semble qu'il ne soit toujours pas possible d'importer des fichiers sauvegardés dans une version 32 bit de VaudTax avec la version 64 bits, et vice-versa (crash de VaudTax avec une erreur cryptique [1]). Deux options, soit recommencer sa déclaration sans importer les données de l'année précédente, soit faire tourner VaudTax avec une JVM 32-bits ([2]). Pour l'instant j'ai toujours opté pour la deuxième variante. Jusqu'à l'année passée (VaudTax2009), on pouvait télécharger une version incluant une JVM (32-bits), cette option n'est plus disponible mais il est toujours possible d'arriver au même résultat :<br />
<br />
1ère étape, avant de commencer le processus d'installation :<pre>$ sudo update-alternatives --config java<br />There are 3 choices for the alternative java (providing /usr/bin/java).<br /><br />  Selection    Path                                       Priority   Status<br />------------------------------------------------------------<br />* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java    1061      auto mode<br />  1            /usr/lib/jvm/ia32-java-6-sun/jre/bin/java   63        manual mode<br />  2            /usr/lib/jvm/java-6-openjdk/jre/bin/java    1061      manual mode<br />  3            /usr/lib/jvm/java-6-sun/jre/bin/java        63        manual mode<br /><br />Press enter to keep the current choice[*], or type selection number: 1<br />update-alternatives: using /usr/lib/jvm/ia32-java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode.</pre><br />
(si l'option JVM 32-bits n'apparaît pas, il faut d'abord installer le paquet ia32-sun-java6-bin)<br />
<br />
Une fois VaudTax installé, il faut télécharger et décompacter xulrunner :<pre>$ cd $HOME/VaudTax2010<br />$ wget http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.2.16/runtimes/xulrunner-1.9.2.16.en-US.linux-i686.tar.bz2<br />$ tar -xpf xulrunner-*</pre><br />
Finalement, il faut encore modifier le fichier VaudTax2010 en ajoutant ces deux lignes juste après `VM_SEARCH_PATH="$PATH"' :<pre>export MOZILLA_FIVE_HOME=$HOME/VaudTax2010/xulrunner<br />export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}</pre><br />
<br />
Note : une fois VaudTax2010 installé, on peut exécuter à nouveau "sudo update-alternatives --config java" pour rétablir la configuration initiale - les paramètres sont en effet enregistrés dans le fichier VaudTax2010.lax<br />
<br />
<br />
[1] <pre>The program 'SWT' received an X Window System error.<br />This probably reflects a bug in the program.<br />The error was 'RenderBadPicture (invalid Picture parameter)'.<br />  (Details: serial 5455 error_code 161 request_code 149 minor_code 7)<br />  (Note to programmers: normally, X errors are reported asynchronously;<br />   that is, you will receive the error a while after causing it.<br />   To debug your program, run it with the --sync command line<br />   option to change this behavior. You can then get a meaningful<br />   backtrace from your debugger if you break on the gdk_x_error() function.)</pre><br />
[2] la troisième variante serait d'étudier le format de fichier produit par chacune des versions pour créer un outil de conversion 
            </div>
        </content>
        <dc:subject>linux</dc:subject>
<dc:subject>ubuntu</dc:subject>
<dc:subject>vaudtax</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/73-bash-how-to-send-output-to-the-console-and-through-a-pipe-at-the-same-time-with-tee.html" rel="alternate" title="bash: how to send output to the console and through a pipe at the same time with tee" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2011-04-01T14:51:51Z</published>
        <updated>2011-04-01T14:51:51Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=73</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=73</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/73-guid.html</id>
        <title type="html">bash: how to send output to the console and through a pipe at the same time with tee</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Let's say you want some output to be echoed to the console but also to be passed to a pipe. Specifically, in my case I wanted a message to be displayed to the user and also to be sent to syslog. You could of course just print it twice, but in some cases it's not possible, or it makes it more complicated than it should be.<br />
<br />
There is a simple solution with tee: <pre>echo "a test" | tee >(logger)</pre><br />
 
            </div>
        </content>
        <dc:subject>linux</dc:subject>
<dc:subject>shell</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/72-gulp-tcpdump-alternative-for-lossless-capture-on-Linux.html" rel="alternate" title="gulp - tcpdump alternative for lossless capture on Linux" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2011-02-27T23:37:54Z</published>
        <updated>2012-08-22T08:55:49Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=72</wfw:comment>
    
        <slash:comments>7</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=72</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/72-guid.html</id>
        <title type="html">gulp - tcpdump alternative for lossless capture on Linux</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                [edited 2012-08-22, new version of my patch to fix the issue reported by SgtMalicious]<br />
<br />
<a href="http://www.tcpdump.org/" >tcpdump</a> and <a href="http://www.wireshark.org/" >wireshark</a> are the tools that usually come to mind when you have to capture network traffic. But in some situations where you have to record a large amount of data and you want to avoid losing packets, tcpdump has some limitations. When I was hit myself by the tcpdump packet loss problem, I quickly found out that I was not alone and that a number of people had already researched the topic and/or provided alternatives.&#42;<br />
<br />
In particular, I found two different tools to perform the task: Corey Satten's gulp (<a href="http://corey.elsewhere.org/gulp/" >http://corey.elsewhere.org/gulp/</a>) and lindump from HP Labs (<a href="http://tesla.hpl.hp.com/opensource/" >http://tesla.hpl.hp.com/opensource/</a>)<br />
<br />
I also found two interesting papers about capturing high volumes of traffic: <a href="http://www.usenix.org/events/fast09/tech/full_papers/anderson/anderson_html/" >http://www.usenix.org/events/fast09/tech/full_papers/anderson/anderson_html/</a> and <a href="http://docs.di.fc.ul.pt/jspui/bitstream/10455/3299/1/thesis-nhenriqu.pdf" >http://docs.di.fc.ul.pt/jspui/bitstream/10455/3299/1/thesis-nhenriqu.pdf</a> (the second quotes the first one among others, and also contains useful info to optimally spread the load among different cores)<br />
<br />
After some tests I quickly became a happy gulp user, and thanks to the software being open source I was able to add features to it that I missed from the latest tcpdump versions:<br />
<br />
-n - allows to change the default filename template<br />
-t - allows to add a timestamp to the filename<br />
-G - rotate pcap file every n seconds<br />
-F - allows to skip the check for an ethernet interface<br />
-Z - allows to specify a command to post-process each capture file<br />
<br />
I've sent a patch to Corey Satten, who intends to setup a repository to hold the various contributions he gets for gulp. In the meanwhile, you can find my changes in the attached file (<a href="http://blog.crox.net/uploads/02-gulp-ntGFZ.patch.gz" title="02-gulp-ntGFZ.patch.gz" target="_blank">02-gulp-ntGFZ.patch.gz</a>). For your convenience and for completeness, I also provide here <a href="http://blog.crox.net/uploads/01-gulp-amd64.patch.gz" title="01-gulp-amd64.patch.gz" target="_blank">the patch from Guy Harris that fixes issues on 64 bit systems</a> (see <a href="http://seclists.org/wireshark/2009/Oct/105" >http://seclists.org/wireshark/2009/Oct/105</a>, apply that one first).<br />
<br />
<br />
<br />
&#42; other people have reported a performance drop with libpcap version 1.0 compared to previous builds, see <a href="http://thread.gmane.org/gmane.network.tcpdump.devel/4629" >http://thread.gmane.org/gmane.network.tcpdump.devel/4629</a> or <a href="http://seclists.org/tcpdump/2010/q3/index.html#11" >http://seclists.org/tcpdump/2010/q3/index.html#11</a><br />
 
            </div>
        </content>
        <dc:subject>linux</dc:subject>
<dc:subject>network</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/71-Linux-enable-encrypted-swap-Ubuntu-Debian.html" rel="alternate" title="Linux: enable encrypted swap (Ubuntu / Debian)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2010-11-15T21:40:37Z</published>
        <updated>2010-11-15T21:40:37Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=71</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/71-guid.html</id>
        <title type="html">Linux: enable encrypted swap (Ubuntu / Debian)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                1. create and enable a "regular" swap partition (fdisk / mkswap / swapon)<br />
<br />
2. install ecryptfs-utils and run ecryptfs-setup-swap<br />
<pre>sudo apt-get install ecryptfs-utils<br />sudo ecryptfs-setup-swap</br><br />
 
            </div>
        </content>
        <dc:subject>encryption</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>ubuntu</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/70-Thunderbird-change-default-message-forward-mode-from-inline-to-attached.html" rel="alternate" title="Thunderbird - change default message forward mode from &quot;inline&quot; to &quot;attached&quot;" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2010-10-10T18:48:42Z</published>
        <updated>2010-10-10T18:48:42Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=70</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/70-guid.html</id>
        <title type="html">Thunderbird - change default message forward mode from &quot;inline&quot; to &quot;attached&quot;</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                For years the default behaviour in Thunderbird had been to forward e-mails as attachments, but at some point it was changed to "inline". You can still manually choose how you'd like to transfer a message by going to "Message" -> "Forward as", but I couldn't find a way to set the default in the preferences.<br />
<br />
There is, however, a way to change it without messing with manual edit of config files. Go to "Preferences" -> "Advanced" -> "Config Editor...", and look for "mail.forward_message_mode". 0 is for "attached", 2 is for "inline".<br />
 
            </div>
        </content>
        <dc:subject>mail</dc:subject>
<dc:subject>thunderbird</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/69-hping-send_icmp-Unsupported-icmp-type.html" rel="alternate" title="hping - [send_icmp] Unsupported icmp type" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2010-09-17T20:47:01Z</published>
        <updated>2010-09-17T20:47:01Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=69</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=69</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/69-guid.html</id>
        <title type="html">hping - [send_icmp] Unsupported icmp type</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                When performing tests you may sometimes want to send specially crafted <a href="http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol"  title="ICMP">icmp</a> packets. <a href="http://www.hping.org/"  title="hping">hping</a> is a handy tool for that.<br />
<br />
However, the default behavior is to refuse to send "unsupported" Type/Code combinations. eg<pre>hping3 -c 1 --icmp -C 33 -K 0 192.168.70.1<br />HPING 192.168.70.1 (wlan0 192.168.70.10): icmp mode set, 28 headers + 0 data bytes<br />[send_icmp] Unsupported icmp type!</pre><br />
Fortunately, there is an (undocumented) --force-icmp option that you can add to bypass the check:<pre>hping3 -c 1 --icmp --force-icmp -C 33 -K 0 192.168.70.1<br />HPING 192.168.70.1 (wlan0 192.168.70.10): icmp mode set, 28 headers + 0 data bytes<br /><br />--- 192.168.70.1 hping statistic ---<br />1 packets transmitted, 0 packets received, 100% packet loss<br />round-trip min/avg/max = 0.0/0.0/0.0 ms</pre><br />
 
            </div>
        </content>
        <dc:subject>linux</dc:subject>
<dc:subject>network</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/68-pfSense-dropping-packets-from-specific-hosts-outdated-bogons-lists.html" rel="alternate" title="pfSense dropping packets from specific hosts (outdated bogons lists)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2010-09-16T21:14:52Z</published>
        <updated>2010-09-16T21:28:12Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=68</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=68</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/68-guid.html</id>
        <title type="html">pfSense dropping packets from specific hosts (outdated bogons lists)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                After a fresh <a href="http://www.pfsense.org/"  title="pfSense">pfSense</a> install, I found out that traffic from specific hosts was being dropped when it should have been allowed based on the firewall rules I defined.<br />
<br />
It turned out that the option "block bogon networks" was activated on the WAN interface, and that fresh pfSense images come with a slightly outdated <a href="http://en.wikipedia.org/wiki/Bogon_filtering"  title="bogon">bogon</a> list.<br />
<br />
If you are facing this problem, you have three options:<br />
<br />
1. disable the "Block bogon networks" option at the bottom of the WAN interface page<br />
<br />
2. after at most one week, the list will be updated automatically as long as the box is online (there is a cron entry, grep your config file for bogon)<br />
<br />
3. if you don't want 1. and can't wait for 2, you can trigger the update process manually by running:<pre>/etc/rc.update_bogons.sh 0</pre>Check the output from the Status -> System Logs -> System page (I ran it from a serial console, but it should work fine by ssh or from the exec.php page too)<br />
<br />
<br />
 
            </div>
        </content>
        <dc:subject>adsl</dc:subject>
<dc:subject>network</dc:subject>
<dc:subject>pfsense</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/66-Numero-pour-verifier-la-preselection-telephonique-operateurs-en-Suisse.html" rel="alternate" title="Numéro pour vérifier la présélection téléphonique (opérateurs en Suisse)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2010-06-15T22:53:20Z</published>
        <updated>2012-01-30T00:12:53Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=66</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=66</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/66-guid.html</id>
        <title type="html">Numéro pour vérifier la présélection téléphonique (opérateurs en Suisse)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Composer le 0868 868 868.<br />
 
            </div>
        </content>
        <dc:subject>isdn</dc:subject>
<dc:subject>phone</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/64-Scanner-permissions-in-Ubuntu-Karmic-udev-libusb-saned-problem-with-udev-acl.html" rel="alternate" title="Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2009-12-27T23:13:00Z</published>
        <updated>2009-12-28T01:36:45Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=64</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=64</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/64-guid.html</id>
        <title type="html">Scanner permissions in Ubuntu Karmic (udev libusb saned problem with udev-acl)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                In Ubuntu Karmic (and possibly Jaunty ?), when you install libsane, it adds a file /lib/udev/rules.d/40-libsane.rules which contains rules that match on supported scanners and set the environment variable "libsane_matched" to "yes".<br />
<br />
This in turn triggers the following in /lib/udev/rules.d/70-acl.rules:<br />
<pre># USB scanners<br />ENV{libsane_matched}=="yes", ENV{ACL_MANAGE}="1"<br />
&lt;snip&gt;<br />
# apply ACL for all locally logged in users<br />LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \<br />  RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"</pre><br />
In the end, the result is that an ACL is created for the device, which allows locally logged in users to use it (read/write permission). eg for my scanner:<br />
<pre>~# lsusb<br />Bus 001 Device 005: ID 04b8:011c Seiko Epson Corp. Perfection 3200<br />~# ls -l /dev/bus/usb/001/005<br />crw-rw-r--+ 1 root root 189, 4 2009-12-28 00:11 /dev/bus/usb/001/005<br />~# getfacl /dev/bus/usb/001/005<br />getfacl: Removing leading '/' from absolute path names<br /># file: dev/bus/usb/001/005<br /># owner: root<br /># group: root<br />user::rw-<br />user:crox:rw-<br />group::rw-<br />mask::rw-<br />other::r--<br />~#</pre><br />
However, I also wanted to allow access to the scanner from other workstations through saned. In older Ubuntu versions, you could just add saned (or whatever user the service runs as) to the scanner group. This no longer works since the device belongs to root:root, and ACLs are added for specific users. The solution that works for me is to create a file /etc/udev/rules.d/99-sane-group.rules with the following contents:<br />
<pre># change group to scanner for sane devices<br />ENV{libsane_matched}=="yes", GROUP="scanner"</pre><br />
Then you just need to run <pre>sudo udevadm trigger</pre> and the group of the device magically changes to scanner.<br />
<br />
Of course you could also add a similar rule specifically for a certain device instead, in my case this would work too:<br />
<pre>ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", GROUP="scanner"</pre><br />
<br />
To check that it worked, run the following: <pre>sudo su -s /bin/bash -c 'scanimage -L' saned</pre><br />
<br />
<br />
 
            </div>
        </content>
        <dc:subject>linux</dc:subject>
<dc:subject>scanner</dc:subject>
<dc:subject>ubuntu</dc:subject>

    </entry>
    <entry>
        <link href="http://blog.crox.net/archives/60-Making-a-Dell-computer-running-Linux-silent-Dell-Precision-noise-problem.html" rel="alternate" title="Making a Dell computer running Linux silent (Dell Precision noise problem)" />
        <author>
            <name>crox</name>
                    </author>
    
        <published>2009-12-10T20:05:09Z</published>
        <updated>2009-12-10T20:14:30Z</updated>
        <wfw:comment>http://blog.crox.net/wfwcomment.php?cid=60</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.crox.net/rss.php?version=atom1.0&amp;type=comments&amp;cid=60</wfw:commentRss>
    
    
        <id>http://blog.crox.net/archives/60-guid.html</id>
        <title type="html">Making a Dell computer running Linux silent (Dell Precision noise problem)</title>
        <content type="xhtml" xml:base="http://blog.crox.net/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Faced with a noisy Dell Precision 490 computer running Ubuntu Karmic, I found an easy way to reduce the noise level to an acceptable threshold. (fancontrol did not help since it seems not to be compatible with the chipset used by Dell at least on this computer.)<br />
<br />
Step 1, install i8kutils:<pre>sudo apt-get install i8kutils</pre><br />
Step 2, add i8k to /etc/modules: <pre>sudo sh -c 'echo i8k >> /etc/modules'</pre><br />
Step 3, edit /etc/default/i8kmon so that it looks like this:<br />
<pre># /etc/default/i8kmon<br />
<br />
# Change to one enable i8kmon<br />
ENABLED=1<br />
I8KMON_ARGS="--daemon --nouserconfig --auto"<br />
</pre><br />
Step 4, reboot and enjoy!<br />
<br />
 
            </div>
        </content>
        <dc:subject>dell</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>ubuntu</dc:subject>

    </entry>

</feed>