Buhus Teodor-Marius said:
> Pune in loc de -A  -I , si vei vedea ca nu e stupid.
> -A  --append
> -I  --insert
>
riiiight
[root:pts/0][~]# iptables -N test
[root:pts/0][~]# iptables -A test -s 1.1.1.1 -j DROP
[root:pts/0][~]# iptables -I test -s 1.1.1.1 -j DROP
[root:pts/0][~]# iptables -L test
Chain test (0 references)
target     prot opt source               destination
DROP       all  --  1.1.1.1              anywhere
DROP       all  --  1.1.1.1              anywhere
[root:pts/0][~]# iptables -I test -s 1.1.1.1 -j DROP
[root:pts/0][~]# iptables -I test -s 1.1.1.1 -j DROP
[root:pts/0][~]# iptables -L test
Chain test (0 references)
target     prot opt source               destination
DROP       all  --  1.1.1.1              anywhere
DROP       all  --  1.1.1.1              anywhere
DROP       all  --  1.1.1.1              anywhere
DROP       all  --  1.1.1.1              anywhere
[root:pts/0][~]#


-- 
save the ozone layer

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui