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

Re: FIREWALL.SH EN 2 REGLE



k13 wrote:

voila mon firewall
---
#!/bin/sh

iptables -X

iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

iptables -A INPUT -i lo -j ACCEPT

iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
---


iptables -A INPUT -i lo -j ACCEPT <--- le pourquoi mon system ne lague plus ;-)

voila j'aurais aimé savoir si sa protegé bien...
merci


Si ça peut t'aider :
mezig@box:/etc/firehol$ less firehol.conf
#
# $Id: client-all.conf,v 1.2 2002/12/31 15:44:34 ktsaou Exp $
#
# This configuration file will allow all requests originating from the
# local machine to be send through all network interfaces.
#
# No requests are allowed to come from the network. The host will be
# completely stealthed! It will not respond to anything, and it will
# not be pingable, although it will be able to originate anything
# (even pings to other hosts).
#

version 5

# Accept all client traffic on any interface
interface any world
       client all accept

C le fichier de base de FireHol ; doc au :
http://firehol.sourceforge.net/
Mi


Reply to: