Skip to contentSkip to conversation

Difference between two policies

DISCUSSION Emmanuel lesouef 2 participants 2 messages Feb 11, 2003 – Feb 12, 2003

lore
Share & tools
lore
#0 lore raw

Hello all,

I would like to know if you see a difference between these two script-parts :

script 1 :

iptables -P INPUT ACCEPT
[... some rules related to INPUT...] iptables -A INPUT DROP

script 2 :

iptables -P INPUT DROP
[...the same rules related to INPUT...]

Thank you in advance.

Signature · 4 lines
Emmanuel Lesouef
Association CaLviX
Caen - 14000 (France)
[email protected]
#1 lore raw
Quoted 8 lines · Emmanuel lesouef

I would like to know if you see a difference between these two script-parts :
script 1 :
iptables -P INPUT ACCEPT
[... some rules related to INPUT...]
iptables -A INPUT DROP
script 2 :
iptables -P INPUT DROP
[...the same rules related to INPUT...]

Produce the same effect. The second one is, imho, much more clean.

Signature · 4 lines
Cédric Blancher  <[email protected]>
Consultant en sécurité des systèmes et réseaux  - Cartel Sécurité
Tél: +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
PGP KeyID:157E98EE  FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE