<?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>Lolo's blog &#187; Tips</title>
	<atom:link href="http://blog.unix-scripts.info/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unix-scripts.info</link>
	<description></description>
	<lastBuildDate>Sun, 31 Jan 2010 19:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Le bug de l&#8217;an 2010</title>
		<link>http://blog.unix-scripts.info/2010/01/10/le-bug-de-lan-2010/</link>
		<comments>http://blog.unix-scripts.info/2010/01/10/le-bug-de-lan-2010/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 15:24:49 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Anti Spam]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/?p=167</guid>
		<description><![CDATA[Après le bug de l&#8217;an 2000&#8230;. Y2K10 Rule Bug - Update Your Rules Now! 2010-01-01: Versions of the FH_DATE_PAST_20XX rule released with versions of Apache SpamAssassin 3.2.0 thru 3.2.5 will trigger on most mail with a Date header that includes &#8230; <a href="http://blog.unix-scripts.info/2010/01/10/le-bug-de-lan-2010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Après le bug de l&#8217;an 2000&#8230;.</p>
<p><code><br />
Y2K10 Rule Bug - Update Your Rules Now!</p>
<p>    2010-01-01:</p>
<p>    Versions of the FH_DATE_PAST_20XX rule released with versions of Apache SpamAssassin 3.2.0 thru 3.2.5 will trigger on most mail with a Date header that includes the year 2010 or later.  The rule will add a score of up to 3.6 towards the spam classification of all email.  You should take corrective action immediately; there are two easy ways to correct the problem:</p>
<p>        * If your system is configured to use sa-update run sa-update now.  An update is available that will correct the rule.  No further action is necessary (other than restarting spamd or any service that uses SpamAssassin directly).</p>
<p>        * Add "score FH_DATE_PAST_20XX 0" without the quotes to the end of your local.cf file to disable the rule.</p>
<p>    If you require help updating your rules to correct this issue you are encouraged to ask for assistance on the Apache SpamAssassin Users' list.  Users' mailing list info is here.</p>
<p>    On behalf of the Apache SpamAssassin project I apologize for this error and the grief it may have caused you.</p>
<p>    Regards,</p>
<p>    Daryl C. W. O'Shea</p>
<p>    VP, Apache SpamAssassin<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2010/01/10/le-bug-de-lan-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMARTd &amp; Le raid &#8230;. c&#8217;est bien ;)</title>
		<link>http://blog.unix-scripts.info/2009/09/13/smartd/</link>
		<comments>http://blog.unix-scripts.info/2009/09/13/smartd/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 19:30:42 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Sauvegardes]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/?p=165</guid>
		<description><![CDATA[En consultant mes mails je m&#8217;aperçois qu&#8217;un de mes disques est HS: The following warning/error was logged by the smartd daemon: Device: /dev/sdd, 5 Offline uncorrectable sectors For details see host's SYSLOG (default: /var/log/syslog). You can also use the smartctl &#8230; <a href="http://blog.unix-scripts.info/2009/09/13/smartd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>En consultant mes mails je m&#8217;aperçois qu&#8217;un de mes disques est HS:</p>
<p><code><br />
The following warning/error was logged by the smartd daemon:</p>
<p>Device: /dev/sdd, 5 Offline uncorrectable sectors</p>
<p>For details see host's SYSLOG (default: /var/log/syslog).</p>
<p>You can also use the smartctl utility for further investigation.<br />
No additional email messages about this problem will be sent.<br />
</code></p>
<p>La machine continue de tourner, comme si rien ne s&#8217;était passé.</p>
<p>Restera à changer ce disque <img src='http://blog.unix-scripts.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2009/09/13/smartd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment augmenter la taille d&#8217;un array raid</title>
		<link>http://blog.unix-scripts.info/2009/09/11/comment-augmenter-la-taille-dun-array-raid/</link>
		<comments>http://blog.unix-scripts.info/2009/09/11/comment-augmenter-la-taille-dun-array-raid/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 13:43:08 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Sauvegardes]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/?p=163</guid>
		<description><![CDATA[Un array raid soft trop petit. On, on change les disques un à un apres les avoir partitionné, on reconstruit le raid&#8230;et la taille des partitions n&#8217;a pas bougé. C&#8217;est tout à fait normal. Il faut agrandir le device md, &#8230; <a href="http://blog.unix-scripts.info/2009/09/11/comment-augmenter-la-taille-dun-array-raid/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Un array raid soft trop petit.</p>
<p>On, on change les disques un à un apres les avoir partitionné, on reconstruit le raid&#8230;et la taille des partitions n&#8217;a pas bougé.</p>
<p>C&#8217;est tout à fait normal. Il faut agrandir le device md, puis le filesystem.</p>
<p>Supprimons la bitmap de l&#8217;array:<br />
<code><br />
# mdadm --grow /dev/md2 --bitmap none<br />
</code></p>
<p><code><br />
# df -h<br />
Sys. de fich.         Tail. Occ. Disp. %Occ. Monté sur<br />
/dev/md1              452G  257G  173G  60% /<br />
tmpfs                 3,9G     0  3,9G   0% /lib/init/rw<br />
udev                   10M  228K  9,8M   3% /dev<br />
tmpfs                 3,9G     0  3,9G   0% /dev/shm<br />
/dev/md0              192M   79M  103M  44% /boot<br />
/dev/md2              805G  516G  290G  65% /backup<br />
</code><br />
<code><br />
# mdadm --grow /dev/md2 --size=max<br />
# mdadm --wait /dev/md2<br />
# mdadm --grow /dev/md2 --bitmap=internal<br />
buckrogers:~# xfs_growfs /backup/<br />
meta-data=/dev/md2               isize=256    agcount=32, agsize=6589168 blks<br />
         =                       sectsz=4096  attr=0<br />
data     =                       bsize=4096   blocks=210853056, imaxpct=25<br />
         =                       sunit=16     swidth=48 blks<br />
naming   =version 2              bsize=4096   ascii-ci=0<br />
log      =internal               bsize=4096   blocks=32768, version=2<br />
         =                       sectsz=4096  sunit=1 blks, lazy-count=0<br />
realtime =none                   extsz=196608 blocks=0, rtextents=0<br />
data blocks changed from 210853056 to 428941440</p>
<p># df -h<br />
Sys. de fich.         Tail. Occ. Disp. %Occ. Monté sur<br />
/dev/md1              452G  257G  173G  60% /<br />
tmpfs                 3,9G     0  3,9G   0% /lib/init/rw<br />
udev                   10M  228K  9,8M   3% /dev<br />
tmpfs                 3,9G     0  3,9G   0% /dev/shm<br />
/dev/md0              192M   79M  103M  44% /boot<br />
/dev/md2              1,6T  517G  1,1T  32% /backup<br />
</code></p>
<p>Et voilà <img src='http://blog.unix-scripts.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2009/09/11/comment-augmenter-la-taille-dun-array-raid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Détection des spams par prise d&#8217;empreinte des paquets TCP</title>
		<link>http://blog.unix-scripts.info/2009/05/06/detection-des-spams-par-prise-dempreinte-des-paquets-tcp/</link>
		<comments>http://blog.unix-scripts.info/2009/05/06/detection-des-spams-par-prise-dempreinte-des-paquets-tcp/#comments</comments>
		<pubDate>Wed, 06 May 2009 20:02:34 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Anti Spam]]></category>
		<category><![CDATA[Anti Virus]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/?p=138</guid>
		<description><![CDATA[Après la panoplie amavis, bogofilter, spamassassin&#8230;.. p0f p0f permet de déterminer (avec une assez bonne précision) l&#8217;OS d&#8217;une machine distante et ce de manière passive (pas à la manière de NMAP). Comment lancer p0f pour analyser les paquets à destination &#8230; <a href="http://blog.unix-scripts.info/2009/05/06/detection-des-spams-par-prise-dempreinte-des-paquets-tcp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Après la panoplie amavis, bogofilter, spamassassin&#8230;.. <a href="http://lcamtuf.coredump.cx/p0f.shtml">p0f</a></p>
<p>p0f permet de déterminer (avec une assez bonne précision) l&#8217;OS d&#8217;une machine distante et ce de manière passive (pas à la manière de NMAP).</p>
<p>Comment lancer p0f pour analyser les paquets à destination du port 25 et ne faisant pas partie du lan/vpn/&#8230;. ?</p>
<blockquote>
<p>p0ffilter=&#8221;( not src 127.0.0.1 and not src net 192.168.0.0/16&#8243;</p>
<p>for oneip in `/sbin/ifconfig 2>/dev/null | grep -v 127.0.0.1 | grep &#8216;inet adr&#8217; | sed -e &#8216;s/.*adr://&#8217; -e &#8216;s/ .*//&#8217;`; do<br />
    p0ffilter=&#8221;$p0ffilter and not src host $oneip&#8221;<br />
done</p>
<p>p0ffilter=&#8221;$p0ffilter ) and tcp dst port 25&#8243;</p>
<p>killall p0f<br />
killall p0f-analyzer</p>
<p>nohup /usr/sbin/p0f -i any -l &#8220;$p0ffilter&#8221; 2>&#038;1 | nohup /usr/sbin/p0f-analyzer 2345 >/dev/null &#038;</p>
</blockquote>
<p>Ce script (assez sale il est vrai) permet de lancer p0f.</p>
<p>Une fois p0f lancé il est possible d&#8217;interroger p0f-analyzer en UDP sur le port 2345</p>
<p>Il faut ensuite modifier /etc/amavis/conf.d/50-user<br />
on ajoutera:<br />
$os_fingerprint_method = &#8216;p0f:127.0.0.1:2345&#8242;;</p>
<p>on relance ensuite amavis (/etc/init.d/amavisd restart)</p>
<p>Il faut ensuite créer /etc/spamassassin/p0f.cf contenant:</p>
<blockquote>
<p>header   P0F_WIN311   X-p0f-OS =~ /^Windows 3.11/<br />
score    P0F_WIN311   3.0<br />
describe P0F_WIN311   Client is running Windows 3.11</p>
<p>header   P0F_WIN95    X-p0f-OS =~ /^Windows 95/<br />
score    P0F_WIN95    3.0<br />
describe P0F_WIN95    Client is running Windows 95</p>
<p>header   P0F_WIN98    X-p0f-OS =~ /^Windows 98/<br />
score    P0F_WIN98    3.0<br />
describe P0F_WIN98    Client is running Windows 98</p>
<p>header   P0F_WINME    X-p0f-OS =~ /^Windows ME/<br />
score    P0F_WINME    3.0<br />
describe P0F_WINME    Client is running Windows ME</p>
<p>header   P0F_WINNT    X-p0f-OS =~ /^Windows NT/<br />
score    P0F_WINNT    0.5<br />
describe P0F_WINNT    Client is running Windows NT</p>
<p>header   P0F_WIN2K    X-p0f-OS =~ /^Windows 2000(?!.*XP)/<br />
score    P0F_WIN2K    1.5<br />
describe P0F_WIN2K    Client is running Windows 2000</p>
<p>header   P0F_WINXP    X-p0f-OS =~ /^Windows XP(?!.*2000)/<br />
score    P0F_WINXP    2.5<br />
describe P0F_WINXP    Client is running Windows XP</p>
<p>header   P0F_WINXP2K  X-p0f-OS =~ /^Windows (XP.+2000|2000.+XP)/<br />
score    P0F_WINXP2K  1.5<br />
describe P0F_WINXP2K  Client is running Windows 2000 or XP</p>
<p>header   P0F_WIN2K3   X-p0f-OS =~ /^Windows 2003/<br />
score    P0F_WIN2K3   0.2<br />
describe P0F_WIN2K3   Client is running Windows 2003</p>
<p>header   P0F_WINNET   X-p0f-OS =~ /^Windows \.NET/<br />
score    P0F_WINNET   0.2<br />
describe P0F_WINNET   Client is running Windows .NET Enterprise Server</p>
<p>header   P0F_WINCE    X-p0f-OS =~ /^Windows CE/<br />
score    P0F_WINCE    0.1<br />
describe P0F_WINCE    Client is running Windows CE</p>
<p>header   P0F_WINVISTA X-p0f-OS =~ /^Windows Vista/<br />
score    P0F_WINVISTA 2.5<br />
describe P0F_WINVISTA Client is running Windows Vista</p>
<p>header   P0F_MACOS    X-p0f-OS =~ /^MacOS/<br />
score    P0F_MACOS    0.1<br />
describe P0F_MACOS    Client is running Mac OS</p>
<p>header   P0F_FREEBSD  X-p0f-OS =~ /^FreeBSD/<br />
score    P0F_FREEBSD  -0.1<br />
describe P0F_FREEBSD  Client is running FreeBSD</p>
<p>header   P0F_OPENBSD  X-p0f-OS =~ /^OpenBSD/<br />
score    P0F_OPENBSD  -1.0<br />
describe P0F_OPENBSD  Client is running OpenBSD</p>
<p>header   P0F_NETBSD   X-p0f-OS =~ /^NetBSD/<br />
score    P0F_NETBSD   -1.0<br />
describe P0F_NETBSD   Client is running NetBSD</p>
<p>header   P0F_SOLARIS  X-p0f-OS =~ /^Solaris/<br />
score    P0F_SOLARIS  -1.0<br />
describe P0F_SOLARIS  Client is running Solaris</p>
<p>header   P0F_HPUX     X-p0f-OS =~ /^HP-UX/<br />
score    P0F_HPUX     -1.0<br />
describe P0F_HPUX     Client is running HP-UX</p>
<p>header   P0F_TRU64    X-p0f-OS =~ /^Tru64/<br />
score    P0F_TRU64    -1.0<br />
describe P0F_TRU64    Client is running Tru64</p>
<p>header   P0F_AIX      X-p0f-OS =~ /^AIX/<br />
score    P0F_AIX      -1.0<br />
describe P0F_AIX      Client is running AIX</p>
<p>header   P0F_LINUX    X-p0f-OS =~ /^Linux/<br />
score    P0F_LINUX    -0.5<br />
describe P0F_LINUX    Client is running Linux</p>
<p>header   P0F_SUNOS    X-p0f-OS =~ /^SunOS/<br />
score    P0F_SUNOS    -1.0<br />
describe P0F_SUNOS    Client is running SunOS</p>
<p>header   P0F_IRIX     X-p0f-OS =~ /^IRIX/<br />
score    P0F_IRIX     -1.0<br />
describe P0F_IRIX     Client is running IRIX</p>
<p>header   P0F_OPENVMS  X-p0f-OS =~ /^OpenVMS/<br />
score    P0F_OPENVMS  -1.0<br />
describe P0F_OPENVMS  Client is running OpenVMS</p>
<p>header   P0F_RISCOS   X-p0f-OS =~ /^RISC OS/<br />
score    P0F_RISCOS   -1.0<br />
describe P0F_RISCOS   Client is running RISC OS</p>
<p>header   P0F_BSD      X-p0f-OS =~ /^BSD/<br />
score    P0F_BSD      -1.0<br />
describe P0F_BSD      Client is running BSD/OS</p>
<p>header   P0F_NEWTON   X-p0f-OS =~ /^NewtonOS/<br />
score    P0F_NEWTON   0.1<br />
describe P0F_NEWTON   Client is running NewtonOS</p>
<p>header   P0F_NEXT     X-p0f-OS =~ /^NeXTSTEP/<br />
score    P0F_NEXT     -1.0<br />
describe P0F_NEXT     Client is running NeXTSTEP</p>
<p>header   P0F_BEOS     X-p0f-OS =~ /^BeOS/<br />
score    P0F_BEOS     -1.0<br />
describe P0F_BEOS     Client is running BeOS</p>
<p>header   P0F_OS400    X-p0f-OS =~ /^OS\/400/<br />
score    P0F_OS400    -1.0<br />
describe P0F_OS400    Client is running OS/400</p>
<p>header   P0F_ULTRIX   X-p0f-OS =~ /^ULTRIX/<br />
score    P0F_ULTRIX   -1.0<br />
describe P0F_ULTRIX   Client is running ULTRIX</p>
<p>header   P0F_QNX      X-p0f-OS =~ /^QNX/<br />
score    P0F_QNX      -1.0<br />
describe P0F_QNX      Client is running QNX</p>
<p>header   P0F_NETWARE  X-p0f-OS =~ /^Novell NetWare/<br />
score    P0F_NETWARE  2.0<br />
describe P0F_NETWARE  Client is running NetWare</p>
<p>header   P0F_INTRANETWARE X-p0f-OS =~ /^Novell IntranetWare/<br />
score    P0F_INTRANETWARE 2.0<br />
describe P0F_INTRANETWARE Client is running IntranetWare</p>
<p>header   P0F_BORDERMGR    X-p0f-OS =~ /^Novell BorderManager/<br />
score    P0F_BORDERMGR    2.0<br />
describe P0F_BORDERMGR    Client is running BorderManager</p>
<p>header   P0F_SCO          X-p0f-OS =~ /^SCO/<br />
score    P0F_SCO          -1.0<br />
describe P0F_SCO          Client is running SCO</p>
<p>header   P0F_DOS          X-p0f-OS =~ /^DOS/<br />
score    P0F_DOS          3.0<br />
describe P0F_DOS          Client is running DOS</p>
<p>header   P0F_OS2          X-p0f-OS =~ /^OS\/2/<br />
score    P0F_OS2          2.0<br />
describe P0F_OS2          Client is running OS/2</p>
<p>header   P0F_TOPS20       X-p0f-OS =~ /^TOPS-20/<br />
score    P0F_TOPS20       -1.0<br />
describe P0F_TOPS20       Client is running TOPS-20</p>
<p>header   P0F_AMIGA        X-p0f-OS =~ /^AMIGA/<br />
score    P0F_AMIGA        1.0<br />
describe P0F_AMIGA        Client is running AMIGAOS</p>
<p>header   P0F_MINIX        X-p0f-OS =~ /Minix/<br />
score    P0F_MINIX        -1.0<br />
describe P0F_MINIX        Client is running Minix</p>
<p>header   P0F_PLAN9        X-p0f-OS =~ /^Plan9/<br />
score    P0F_PLAN9        -1.0<br />
describe P0F_PLAN9        Client is running Plan9</p>
<p>header   P0F_FREEMINT     X-p0f-OS =~ /^FreeMiNT/<br />
score    P0F_FREEMINT     1.0<br />
describe P0F_FREEMINT     Client is running FreeMiNT</p>
<p>header   P0F_NETCACHE     X-p0f-OS =~ /^NetCache/<br />
score    P0F_NETCACHE     -0.1<br />
describe P0F_NETCACHE     Client is running NetCache</p>
<p>header   P0F_CACHEFLOW    X-p0f-OS =~ /^CacheFlow/<br />
score    P0F_CACHEFLOW    -0.1<br />
describe P0F_CACHEFLOW    Client is running CacheFlow</p>
<p>header   P0F_POWERAPP     X-p0f-OS =~ /^Dell PowerApp/<br />
score    P0F_POWERAPP     -0.1<br />
describe P0F_POWERAPP     Client is running PowerApp</p>
<p>header   P0F_PALMOS       X-p0f-OS =~ /^PalmOS/<br />
score    P0F_PALMOS       0.1<br />
describe P0F_PALMOS       Client is running PalmOS</p>
<p>header   P0F_SYMBIANOS    X-p0f-OS =~ /^SymbianOS/<br />
score    P0F_SYMBIANOS    0.1<br />
describe P0F_SYMBIANOS    Client is running SymbianOS</p>
<p>header   P0F_ZAURUS       X-p0f-OS =~ /^Zaurus/<br />
score    P0F_ZAURUS       0.1<br />
describe P0F_ZAURUS       Client is running Zaurus</p>
<p>header   P0F_POCKETPC     X-p0f-OS =~ /^PocketPC/<br />
score    P0F_POCKETPC     0.1<br />
describe P0F_POCKETPC     Client is running PocketPC</p>
<p>header   P0F_CONTIKI      X-p0f-OS =~ /^Contiki/<br />
score    P0F_CONTIKI      0.1<br />
describe P0F_CONTIKI      Client is running Contiki</p>
<p>header   P0F_PLAYSTATION  X-p0f-OS =~ /^Sony Playstation/<br />
score    P0F_PLAYSTATION  3.0<br />
describe P0F_PLAYSTATION  Client is running Sony Playstation</p>
<p>header   P0F_DREAMCAST    X-p0f-OS =~ /^Sega Dreamcast/<br />
score    P0F_DREAMCAST    3.0<br />
describe P0F_DREAMCAST    Client is running Sega Dreamcast</p>
<p>header   P0F_UNKNOWN      X-p0f-OS =~ /^UNKNOWN/<br />
score    P0F_UNKNOWN      0.8<br />
describe P0F_UNKNOWN      Client OS is unknown
</p></blockquote>
<p>redémarrons spamassassin (/etc/init.d/spamassassin restart)</p>
<p>Si tout va bien l&#8217;entete X-Amavis-OS-Fingerprint: apparait dans les mails.</p>
<p>Spamassassin peut donc &#8220;scorer&#8221; les mails en fonction de cet entete.</p>
<p>! Attention ! Il faut une version >= 2.4.3 de amavisd</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2009/05/06/detection-des-spams-par-prise-dempreinte-des-paquets-tcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bridger une interface réseau sous VirtualBox</title>
		<link>http://blog.unix-scripts.info/2008/04/14/bridger-une-interface-reseau-sous-virtualbox/</link>
		<comments>http://blog.unix-scripts.info/2008/04/14/bridger-une-interface-reseau-sous-virtualbox/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 17:56:20 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/?p=121</guid>
		<description><![CDATA[VirtualBox est tres pratique pour lancer windows depuis une machine linux (par exemple). Problème: L&#8217;interface réseau est nattée, il est donc impossible d&#8217;établir une connexion directe vers la machine invitée (ici Windows). La solution: Bridger l&#8217;interface utilisée par VirtualBox et &#8230; <a href="http://blog.unix-scripts.info/2008/04/14/bridger-une-interface-reseau-sous-virtualbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>VirtualBox est tres pratique pour lancer windows depuis une machine<br />
linux (par exemple).</p>
<p>Problème: L&#8217;interface réseau est nattée, il est donc impossible<br />
d&#8217;établir une connexion directe vers la machine invitée (ici Windows).</p>
<p>La solution: Bridger l&#8217;interface utilisée par VirtualBox et la carte<br />
réseau de la machine hote (eth0 ici).</p>
<p>Comment faire:</p>
<p>donald:~# apt-get install uml-utilities bridge-utils</p>
<p>editer /etc/network/interfaces</p>
<p>La section eth0 est à présent comme suit:<br />
auto eth0<br />
iface eth0 inet manual</p>
<p>Nous avons une nouvelle interface (tap1) pour les machines virtuelles:<br />
auto tap1<br />
iface tap1 inet manual<br />
        pre-up tunctl -d tap0<br />
        pre-up tunctl -u lcaron</p>
<p>(N&#8217;oubliez pas de remplacer lcaron par votre login)</p>
<p>Et enfin le bridge qui lui prend l&#8217;ancienne @IP d&#8217;eth0</p>
<p>auto bridge0<br />
iface bridge0 inet dhcp<br />
    post-up chmod ugo+rw /dev/net/tun<br />
    bridge-ports eth0 tap0<br />
    bridge-ageing 7200<br />
    bridge-fd 0</p>
<p>donald:~# /etc/init.d/networking restart </p>
<p>Dans les préférences de la machine virtuelle sous VirtualBox, Activer<br />
l&#8217;adaptateur réseau, l&#8217;attacher à l&#8217;adaptateur réseau hôte, dans le nom<br />
de l&#8217;interface, indiquer tap0</p>
<p>Votre machine virtuelle est à présent joignable sur une @IP de la même<br />
classe que le système hote.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2008/04/14/bridger-une-interface-reseau-sous-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taches de vin</title>
		<link>http://blog.unix-scripts.info/2006/07/01/taches-de-vin/</link>
		<comments>http://blog.unix-scripts.info/2006/07/01/taches-de-vin/#comments</comments>
		<pubDate>Sat, 01 Jul 2006 18:43:57 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Lolo's life]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/2006/07/18/taches-de-vin/</guid>
		<description><![CDATA[Cette fois, une astuce de grand-maman Voici un truc qui fonctionne à tout coup. Il suffit de faire bouillir du lait dans un chaudron, puis de fermer le feu et d&#8217;y faire tremper le tissu taché plusieurs heures. Par exemple, &#8230; <a href="http://blog.unix-scripts.info/2006/07/01/taches-de-vin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Cette fois, une astuce de grand-maman</p>
<p><font face="Arial"> Voici un truc qui fonctionne à tout coup. Il suffit de faire bouillir du lait dans un chaudron, puis de fermer le feu et d&#8217;y faire tremper le tissu taché plusieurs heures. Par exemple, après une soirée, on peut faire tremper la nappe souillée dans le lait bouilli jusqu&#8217;au lendemain. Si le méfait arrive hors de la maison (durant une dîner par exemple), il n&#8217;y a pas de mal à mettre du sel sur la tache avant de faire tremper le vêtement dans le lait, mais on ne doit jamais appliquer d&#8217;eau sur une tache de vin. </font></p>
<p><font face="Arial">Testé et approuvé <img src='http://blog.unix-scripts.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </font></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2006/07/01/taches-de-vin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips SSH</title>
		<link>http://blog.unix-scripts.info/2006/04/18/tips-ssh/</link>
		<comments>http://blog.unix-scripts.info/2006/04/18/tips-ssh/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 14:32:14 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/2006/04/18/tips-ssh/</guid>
		<description><![CDATA[Comment se connecter à un système distant sans taper sans cesse son mot de passe: Je souhaite me connecter de mon portable vers mon serveur web rapidement: $ ssh-copy-it -i ~/.ssh/id_dsa.pub monlogin@monserveurweb je tape mon mot de passe je peux &#8230; <a href="http://blog.unix-scripts.info/2006/04/18/tips-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Comment se connecter à un système distant sans taper sans cesse son mot de passe:</p>
<p>Je souhaite me connecter de mon portable vers mon serveur web rapidement:</p>
<p>$ ssh-copy-it -i ~/.ssh/id_dsa.pub monlogin@monserveurweb</p>
<p>je tape mon mot de passe</p>
<p>je peux maintenant taper ssh  monlogin@monserveurweb et je suis directement connecté à mon serveur web.</p>
<p>Attention, la clé ssh est utilisable par toute personne ayant un accès physique au portable. Il faut donc la protéger par un mot de passe :</p>
<p>ssh-keygen -p -f ~/.ssh/id_dsa</p>
<p>On entre le mot de passe, la clé est alors protégée.</p>
<p>On peut utiliser un mécanisme d&#8217;agent SSH afin de n&#8217;avoir à taper la passphrase qu&#8217;une seule fois à l&#8217;ouverture de la session.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2006/04/18/tips-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips procmail</title>
		<link>http://blog.unix-scripts.info/2006/04/18/tips-procmail/</link>
		<comments>http://blog.unix-scripts.info/2006/04/18/tips-procmail/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 14:28:33 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Procmail]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.unix-scripts.info/2006/04/18/tips-procmail/</guid>
		<description><![CDATA[Comment préfixer certains mails par une chaine de caracteres arbitraire: Je souhaite par exemple ajouter la date du jour au format JJ-MM-AAAA HH:MM devant tous les sujets de mes nouveaux mails: dans mon ~/.procmailrc j&#8217;ajoute: :0 * { SUBJECT=`formail -zxSubject:` &#8230; <a href="http://blog.unix-scripts.info/2006/04/18/tips-procmail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Comment préfixer certains mails par une chaine de caracteres arbitraire:</p>
<p>Je souhaite par exemple ajouter la date du jour au format JJ-MM-AAAA HH:MM devant tous les sujets de mes nouveaux mails:</p>
<p>dans mon ~/.procmailrc j&#8217;ajoute:</p>
<p>:0<br />
*<br />
{<br />
SUBJECT=`formail -zxSubject:`<br />
SUBDATE=`date +%d-%m-%Y\ %H:%M`<br />
:0fhw<br />
| formail -I&#8221;Subject: [$SUBDATE] $SUBJECT&#8221;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unix-scripts.info/2006/04/18/tips-procmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
