Problem of Setting dafault polocies to 'DROP'

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

 



Hi,
I have created IPTABLES rules from command prompt.
Save and Restore them with iptables-save and
iptables-restore command.
Hi,
As advised in some of the tutorials, I tried to set
IPTABLES rules first 'FLUSH' and then tried to set
default policies of INPUT, OUTPUT and FORWARD to DROP
as follows :

###############

iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD

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

################

from command prompt.

The moment I set "iptables -P INPUT DROP"
System hangs.

Tutorial says, first set all default policies to DROP
and then setup rules to ACCEPT.

Please tell me How it can be achieved.
Thanks for support.




__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux