Alain EMPAIN wrote:

On Sat, 2002-11-30 at 12:08, daniel wrote:

Salut tout le monde
avec une debian, la commande "echo > 1 /proc/sys/net/ipv4/ip_fordward" doit estre mise dans un fichier de boot, oui mais lequel ? (je n'ai pas trouve de fichier rc.local) le systeme de boot est bizarre sur debian ;-) !

daniel


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: efnet.unixtech.be:6667 - #unixtech

Attention, echo > 1 n'est pas correct ;-)

"Desole je suis glisse chef"

echo 1 > /proc/sys/net/ipv4/ip_forward

A mon avis, tant que le forwarding est activé quand tu en as besoin, le
fichier particulier où tu insères la commande (celui qui configure le
réseau ?) n'a pas beaucoup d'importance.

Par ex. j'ai sur SuSE le /etc/init.d/boot qui contient :

boot:if test -f /etc/init.d/boot.local ; then
boot:        echo "Running /etc/init.d/boot.local"
boot:        /bin/sh /etc/init.d/boot.local

Tu peux bricoler qqch comme cela.

je vais voir dans le fichier /etc/init.d/networking

merci

daniel



_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à