Aide Linux - Liste de diffusion Ze-Linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ Redhat [ iptables ] Ouvrir un port / [ Sendmail] install et config ]



Bon je viens d'essayé les deux commandes mais sans succès.
Je joint mon iptables -L pour avoir le plus d'aide que possibles.

# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
block      all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http
state NEW,RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
block      all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere           tcp spt:http
state RELATED,ESTABLISHED

Chain block (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere           state NEW
DROP       all  --  anywhere             anywhere


Merci à tous.


----- Original Message ----- 
From: "neo83.ath.cx" <neo83.ath.cx@free.fr>
To: <aide-linux@ze-linux.org>
Sent: Friday, October 31, 2003 7:21 PM
Subject: Re: [ Redhat [ iptables ] Ouvrir un port / [ Sendmail] install et
config ]


> Je fais essayé comme ça au cas ou. Merci
> ----- Original Message ----- 
> From: "deny" <deny@monaco.net>
> To: <aide-linux@ze-linux.org>
> Sent: Friday, October 31, 2003 11:50 AM
> Subject: Re: [ Redhat [ iptables ] Ouvrir un port / [ Sendmail] install et
> config ]
>
>
> > neo83.ath.cx wrote:
> >
> > >Bonsoir la liste,
> > >
> > >Je sais j'ai déjà posée cette question, mais apparemment ça na pas
marché
> > >comme il le fallait.
> > >
> > >1ère question:
> > >
> > >Je cherche a ouvrir le port 80 sur mon interface ppp0, le demon apache
> > >tourne bien ( j'y est accès en local ).
> > >
> > >J'ai bien fait ce que l'on ma conseillé:
> > >iptables -A OUTPUT -o ton_interface -p tcp --dport le_port -j ACCEPT
> > >iptables -A INPUT -i ton_interface -p tcp --dport le_port -j ACCEPT
> > >
> > >mais apparament ça n'a pas eu d'effet.
> > >
> > >La commande iptables -L me répond :
> > ># iptables -L
> > >Chain INPUT (policy DROP)
> > >target     prot opt source               destination
> > >ACCEPT     all  --  anywhere             anywhere
> > >ACCEPT     all  --  192.168.0.0/24       anywhere
> > >
> > >Chain FORWARD (policy DROP)
> > >target     prot opt source               destination
> > >ACCEPT     all  --  anywhere             anywhere
> > >
> > >Chain OUTPUT (policy DROP)
> > >target     prot opt source               destination
> > >ACCEPT     all  --  anywhere             anywhere
> > >ACCEPT     all  --  anywhere             192.168.0.0/24
> > >
> > >donc si quelqu'un veut bien m'aider car la c'est un peu nulle de pas
> pouvoir
> > >ce connecté au serveur apache.
> > >
> > >
> > salut
> > a condition que ton interface d'entree soit ppp0
> >
> > /sbin/iptables -A OUTPUT -o ppp0 -p tcp --sport www -m state --state
> > ESTABLISHED,RELATED -j ACCEPT
> > /sbin/iptables -A INPUT -i ppp0 -p tcp --dport www -m state --state
> > NEW,ESTABLISHED,RELATED -j ACCEPT
> >
> >
> > ----------------------------------
> > Informations, désabonnement, règles, obligations sur la liste Aide-Linux
:
> > http://lists.ze-linux.org/howto_ml.html
> >
> >
>
>
> ----------------------------------
> Informations, désabonnement, règles, obligations sur la liste Aide-Linux :
> http://lists.ze-linux.org/howto_ml.html
>


----------------------------------
Informations, désabonnement, règles, obligations sur la liste Aide-Linux :
http://lists.ze-linux.org/howto_ml.html


Aide Linux - Liste de diffusion Ze-Linux