Re: iptables
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
This message is part of the following thread:
the complete thread tree sorted by date
Raphael Jacquot at
2005-01-10 06:47
Olivier Allard-Jacquin at
2005-01-10 20:29
Author:
nt.guilde
Date:
2005-01-10 19:34
UTC
CC:
GUILDE
Subject:
Re: iptables
>Pour suprimer, changer, ajouter une règle "au vol", il est nécessaire de
>connaître son No d'ordre.
Non : il est suffisant ; on peut aussi remplacer le '-A' par '-D' :
/etc/ppp/ip-up :
iptables -A INPUT -i $1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE
/etc/ppp/ip-down :
iptables -D INPUT -i $1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -D POSTROUTING -o $1 -j MASQUERADE
-Nicolas T.
--
"The position taken by the Scots and the English take regarding their
relations is very certainly none of your affair - you insignificant
little frog-eating chancer." -Charles Walmsley