<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
    <title>Posteet: network</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/posteet_network" /><feedburner:info uri="posteet_network" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
        <title>Limit bandwith for a specific protocol on MacOS</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/FatN0ukGlnA/1105</link>
        <description>
        <![CDATA[<pre># MacOS is able to limit bandwith form specific protocol or source-ip on the fly. Creating an bandwidth limtation rule won't break your download 

#Build a pipe with a limited bandwidth (example 1Mbits/s)
sudo ipfw pipe 1 config bw 1Mbit/s

#Assign a rule to redirect the protocol on that pipe (for example http from www.example.com)
sudo ipfw add 1 pipe 1 proto tcp src-port 80 src-ip www.example.com

#You can show your pipe like that
sudo ipfw pipe show

#Delete the created pipe with that both comands
# delete the redirection rule :
sudo ipfw del 1 
# delete the pipe :
sudo ipfw pipe 1 delete</pre> <a href="http://www.posteet.com/tags/bandwidth">[bandwidth]</a>  <a href="http://www.posteet.com/tags/ipfw">[ipfw]</a>  <a href="http://www.posteet.com/tags/mac">[mac]</a>  <a href="http://www.posteet.com/tags/MacOS">[MacOS]</a>  <a href="http://www.posteet.com/tags/network">[network]</a> ]]>        </description>
        <dc:creator>reorx</dc:creator>
        <pubDate>Wed, 16 Jul 2008 12:22:52 +0200</pubDate>

            <category>bandwidth</category>
            <category>ipfw</category>
            <category>mac</category>
            <category>MacOS</category>
            <category>network</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1105</feedburner:origLink></item>

  
    <item>
        <title>Fichiers hosts, services, network sous Windows</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/b-573gJB4No/859</link>
        <description>
        <![CDATA[<pre>/WINDOWS/system32/drivers/etc</pre> <a href="http://www.posteet.com/tags/hosts">[hosts]</a>  <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/services">[services]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Fri, 04 Apr 2008 13:26:06 +0200</pubDate>

            <category>hosts</category>
            <category>network</category>
            <category>services</category>
            <category>windows</category>
    
    <feedburner:origLink>http://www.posteet.com/view/859</feedburner:origLink></item>

  
    <item>
        <title>Rename interfaces (eth0 to eth1) on Linux</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/ydc83-17CXA/682</link>
        <description>
        <![CDATA[<pre># Debian : edit the following file (mac to eth association)
/etc/udev/rules.d/z25_persistent-net.rules

# The long way : change the name when loading the module for the NIC
cat /etc/sysconfig/hwconf | grep -A 16 NETWORK
class: NETWORK
bus: PCI
detached: 0
device: eth0
driver: 8139t
# Then change the device name in the ifcfg script: /etc/sysconfig/network-scripts/ifcfg-ethX</pre> <a href="http://www.posteet.com/tags/debian">[debian]</a>  <a href="http://www.posteet.com/tags/eth">[eth]</a>  <a href="http://www.posteet.com/tags/hwconf">[hwconf]</a>  <a href="http://www.posteet.com/tags/ifcfg">[ifcfg]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/network">[network]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 22 Jan 2008 09:22:23 +0100</pubDate>

            <category>debian</category>
            <category>eth</category>
            <category>hwconf</category>
            <category>ifcfg</category>
            <category>linux</category>
            <category>network</category>
    
    <feedburner:origLink>http://www.posteet.com/view/682</feedburner:origLink></item>

  
    <item>
        <title>Utilisation des dossiers « if-pre-up » et « if-post-down »</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/HHtcxDqNhvY/582</link>
        <description>
        <![CDATA[<pre>Les scripts placés dans le dossier « /etc/network/if-post-down.d » seront lancés automatiquement après chaque arrêt d'une interface réseau.

Les scripts placés dans le dossier « /etc/network/if-pre-up.d » seront lancés automatiquement après chaque démarrage d'une interface réseau.

Mais pour que les scripts fonctionnement, il faut respecter quelques règles :
-  Il doivent être exécutables (chmod +x)
-  Ils doivent Indiquer l'interpréteur de commande sur la première ligne (ex : # !/bin/sh)
-  Le nom ne doit contenir que des caractères, chiffres, '_' et '-' (Pas de points)

Quand le script est exécuté, il peut utiliser plusieurs variables ( :
-  IFACE : Nom de l'interface physique concernée (eth0, lo,..)
-  LOGICAL : Nom de l'interface logique
-  ADDRFAM, METHOD, MODE, PHASE et VERBOSITY
Le script peut donc utiliser ces variables pour s'adapter en conséquence.

ATTENTION : En plaçant le script d'arrêt du firewall dans le dossier « if-post-down », celui-ci sera exécuté quelque soit l'interface réseau arrêté. Par exemple si le firewall est destiné à filtrer l'interface eth0, il sera désactivé lorsque l'interface lo sera arrêtée, ce qui peut entraîner une grosse faille de sécurité.

Pour remédier à ce problème, il faut ajouter au début du script un test pour qu'il s'exécute uniquement pour l'interface concernée:

if [ $IFACE != &quot; eth2&quot; ]; then
exit
fi

== Configuration du fichier /etc/network/interfaces ==

Une autre méthode pour arrêter et démarrer un firewall est d'utiliser les directives « pre-up » et « post-down » dans le fichier «  /etc/network/interfaces ». Exemple :
auto eth0
iface eth0 inet dhcp
 pre-up /etc/firewall-start
 post-down /etc/firewall-stop</pre> <a href="http://www.posteet.com/tags/down">[down]</a>  <a href="http://www.posteet.com/tags/ifconfig">[ifconfig]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/systeme">[systeme]</a>  <a href="http://www.posteet.com/tags/up">[up]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Thu, 13 Dec 2007 15:57:02 +0100</pubDate>

            <category>down</category>
            <category>ifconfig</category>
            <category>linux</category>
            <category>network</category>
            <category>systeme</category>
            <category>up</category>
    
    <feedburner:origLink>http://www.posteet.com/view/582</feedburner:origLink></item>

  
    <item>
        <title>Changer l'adresse mac</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/yCjyslEKTp0/142</link>
        <description>
        <![CDATA[<pre>#passer en root
ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ifconfig">[ifconfig]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/mac">[mac]</a>  <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>jon207</dc:creator>
        <pubDate>Sat, 03 Nov 2007 18:04:33 +0100</pubDate>

            <category>bash</category>
            <category>ifconfig</category>
            <category>linux</category>
            <category>mac</category>
            <category>network</category>
            <category>shell</category>
    
    <feedburner:origLink>http://www.posteet.com/view/142</feedburner:origLink></item>

  
    <item>
        <title>[Linux] Netstat - Les bonnes options pour tout voir</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/fIS-ZpsbSSE/112</link>
        <description>
        <![CDATA[<pre>netstat -lapute</pre> <a href="http://www.posteet.com/tags/awesome">[awesome]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/netstat">[netstat]</a>  <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/réseau">[réseau]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/système">[système]</a> ]]>        </description>
        <dc:creator>henri</dc:creator>
        <pubDate>Thu, 25 Oct 2007 09:15:53 +0200</pubDate>

            <category>awesome</category>
            <category>linux</category>
            <category>netstat</category>
            <category>network</category>
            <category>réseau</category>
            <category>shell</category>
            <category>système</category>
    
    <feedburner:origLink>http://www.posteet.com/view/112</feedburner:origLink></item>

  
    <item>
        <title>Envoyer les logs syslog vers un hote distant</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/l1OxI1JQLDY/46</link>
        <description>
        <![CDATA[<pre># Dans /etc/syslog.conf
facility.priority               @IP ou nom</pre> <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/syslog">[syslog]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Mon, 01 Oct 2007 12:33:50 +0200</pubDate>

            <category>network</category>
            <category>syslog</category>
    
    <feedburner:origLink>http://www.posteet.com/view/46</feedburner:origLink></item>

  
    <item>
        <title>Logger les messages d'hotes distants dans syslog</title>
        <link>http://feedproxy.google.com/~r/posteet_network/~3/k-OaOwqjG1U/45</link>
        <description>
        <![CDATA[<pre>syslogd -m 0 -r</pre> <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/syslog">[syslog]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Mon, 01 Oct 2007 12:32:24 +0200</pubDate>

            <category>network</category>
            <category>syslog</category>
    
    <feedburner:origLink>http://www.posteet.com/view/45</feedburner:origLink></item>


</channel>
</rss>

