>>>>> "YS" == Yann Souchon <[EMAIL PROTECTED]> writes:
> Je suis en train de faire un firewall sur une machine qui possède
> une carte réseau pour le LAN et une connexion PPP pour internet.
> J'ai trouvé un moyen d'avoir l'adresse IP de la connexion PPP, mais
> j'arrive pas à exécuter cette commande à l'intérieur de mon script
> (firewall) pour mettre le résultat dans une variable.
pourquoi tu ne lancerais pas ton firewall depuis un des scripts dans
/etc/ppp/ip-up.d/ (dans debian, ailleurs ca se trouve peut-etre juste
dans /etc/ppp/ip-up). ou tu as deja a disposition l'interface, le
numero ip, ...
ensuite tu peux aussi redescendre ton firewall dans
/etc/ppp/ip-down.d/
tom
PS: sacrement rapide ces mails, plus de 24h pour m'atteindre:
> Received: from mail.kpnqwest.ch by elca.ch (8.8.8/SMI-SVR4)
> id TAA27063; Thu, 1 Mar 2001 19:07:48 +0100 (MET)
> Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by mail.kpnqwest.ch
>(8.9.3/1.34) via SMTP id SAA79328
> for <[EMAIL PROTECTED]>; Thu, 1 Mar 2001 18:14:59 GMT
> env-from ([EMAIL PROTECTED])
> Received: (qmail 21491 invoked by alias); 1 Mar 2001 18:13:54 -0000
> Received: (qmail 21447 invoked by uid 0); 1 Mar 2001 18:13:53 -0000
> Received: from sitebco-home-5-17.urbanet.ch (HELO vulcan.alphanet.ch) (194.38.85.209)
> by mx0.gmx.net (mx14) with SMTP; 1 Mar 2001 18:13:53 -0000
> Received: (from mdom@localhost)
> by vulcan.alphanet.ch (8.9.3/8.9.3) id TAA11986
> for linux-leman-outstuff; Thu, 1 Mar 2001 19:03:33 +0100
> Received: from mail.worldcom.ch (mail1.worldcom.ch [212.74.176.11])
> by vulcan.alphanet.ch (8.11.1/8.11.1) with ESMTP id f21I3LG11951
> for <[EMAIL PROTECTED]>; Thu, 1 Mar 2001 19:03:21 +0100
> Received: from gateway.linuxch.home (portge071.worldcom.ch [212.74.162.71])
> by mail.worldcom.ch (8.9.3+Sun/8.9.3) with ESMTP id QAA13752
> for <[EMAIL PROTECTED]>; Wed, 28 Feb 2001 16:06:37 +0100 (MET)
> Received: from alphanet.ch (pc1.linuxch.home [192.168.0.11])
> by gateway.linuxch.home (Postfix) with ESMTP id 971DED491
> for <[EMAIL PROTECTED]>; Wed, 28 Feb 2001 15:13:49 +0100 (CET)
--
in a world without fences and walls, who needs gates and windows?
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question.