just a remind
Hello.
I have a rule set and I want to disable the acces of my server to some ips (they are "request flooding" me, and it's just a temporary rejection, just to give me the time to set up the scaling of the server)
- I have the policy rules at the beginning (they DROP all by default)
- then I have the allowing rules for the port 80 TCP (web server)
- then allow ssh for all (dynamic IP at the admin's home)
- then follows the rectrivtion, I rejects the IPs I want to reject on all ports.
Is that the right steps? or should I reject them _before_ allowing 80 TCP for all?
It's iptables 1.2.10 and 1.2.11
Thank you for all.
Signature · 4 lines
ASPO Infogérance http://aspo.rktmb.org/activites/infogerance Unofficial FAQ fcolc http://faq.fcolc.eu.org/ LUG sur Orléans et alentours (France). Tél : 02 34 08 26 04 / 06 33 26 13 14
Hi
you need to Drop all and allow what are the services required that is the best practice
hare
----- Original Message ----- From: "Rakotomandimby (R12y) Mihamina" <[email protected]>
To: <[email protected]>
Sent: Friday, May 13, 2005 5:23 PM
Subject: just a remind
Hello.
I have a rule set and I want to disable the acces of my server to some ips (they are "request flooding" me, and it's just a temporary rejection, just to give me the time to set up the scaling of the server)
- I have the policy rules at the beginning (they DROP all by default)
- then I have the allowing rules for the port 80 TCP (web server)
- then allow ssh for all (dynamic IP at the admin's home)
- then follows the rectrivtion, I rejects the IPs I want to reject on all ports.
Is that the right steps? or should I reject them _before_ allowing 80 TCP for all?
It's iptables 1.2.10 and 1.2.11
Thank you for all.
Signature · 4 lines
ASPO Infogérance http://aspo.rktmb.org/activites/infogerance Unofficial FAQ fcolc http://faq.fcolc.eu.org/ LUG sur Orléans et alentours (France). Tél : 02 34 08 26 04 / 06 33 26 13 14
Quoted 2 lines · hareram
you need to Drop all and allow what are the services required that is the best practice
Yes, the policy is to drop.
But is REJECT a terminatig target?
(I just dont remember)
I know that ACCEPT is "terminating". I mean if a packet matches and is ACCEPTed, it is not processed by the following rules.
Signature · 4 lines
ASPO Infogérance http://aspo.rktmb.org/activites/infogerance Unofficial FAQ fcolc http://faq.fcolc.eu.org/ LUG sur Orléans et alentours (France). Tél : 02 34 08 26 04 / 06 33 26 13 14
Hi,
DROP = refuse the packets and do nothing.
REJECT = refuse the packets and send unreachable or other packet (what you have set for REJECT target) to sender.
MIRROR = Reverse the source and destination IP and send the packet back to sender.
All are terminating targets.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Rakotomandimby (R12y) Mihamina
Sent: 13 May 2005 14:37
To: [email protected]
Subject: Re: just a remind
Quoted 2 lines · hareram
you need to Drop all and allow what are the services required that is the best practice
Yes, the policy is to drop.
But is REJECT a terminatig target?
(I just dont remember)
I know that ACCEPT is "terminating". I mean if a packet matches and is ACCEPTed, it is not processed by the following rules.
Signature · 4 lines
ASPO Infogérance http://aspo.rktmb.org/activites/infogerance Unofficial FAQ fcolc http://faq.fcolc.eu.org/ LUG sur Orléans et alentours (France). Tél : 02 34 08 26 04 / 06 33 26 13 14