[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Iptables ...



Giancarlo Martini wrote:
Ho installato un proxy trasparente usando iptables/squid/dansguardian.
E tutto funziona .....
Funziona anche quando ho bisogno che non funzioni, per esempio quando devo aggiornare dei clients windows scaricando dei files con estensione exe. Mi sono preparato uno script che cancelli le regole di iptables con iptables -F pensando che mi avrebbe rimosso anche
iptables -t nat -A PREROUTING .........
ma non ha funzionato.
Non è che il comando funziona solo con INPUT, FORWARD e OUTPUT ?
Ciao



prova questo:

#!/bin/sh
IPT="/sbin/iptables"
$IPT -F
$IPT -t nat -F
$IPT -t mangle -F
$IPT -X
$IPT -t nat -X
$IPT -t mangle -X
$IPT -P INPUT ACCEPT
$IPT -P FORWARD ACCEPT
$IPT -P OUTPUT ACCEPT
$IPT -t nat -P PREROUTING ACCEPT
$IPT -t nat -P POSTROUTING ACCEPT
$IPT -t nat -P OUTPUT ACCEPT
$IPT -t mangle -P PREROUTING ACCEPT
$IPT -t mangle -P OUTPUT ACCEPT
echo "Cancellate tutte le regole IPTables"



--
il mio blog su:  www.cryptolife.org
jabber ID: filippo.elbalinux@jabber.org
gpg --keyserver http://pgp.mit.edu  --recv-key 8DD3AA73



Reply to: