Problem of Setting dafault polocies to 'DROP'
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
Quoted 2 lines · ads nat
The moment I set "iptables -P INPUT DROP"
System hangs.
Are you working on a local keyboard + screen, or via a remote ssh session?
If you are on a network connection, then of course an empty ruleset + default DROP policy will block your connection.
Antony.
Signature · 5 lines
Abandon hope, all ye who enter here.
You'll feel much better about things once you do.
Please reply to the list;
please don't CC me.On Wed, 24 Dec 2003 11:12:00 +0000,
Antony Stone <[email protected]> wrote in message <[email protected]>:
Quoted 10 lines · ads nat
Quoted 3 lines
The moment I set "iptables -P INPUT DROP"
System hangs.Are you working on a local keyboard + screen, or via a remote ssh session?
If you are on a network connection, then of course an empty ruleset + default DROP policy will block your connection.
...so you will wanna set up a rule set that allows you to finish setup of the firewall, before you set up the drop policy. ;-)
Signature · 4 lines
..med vennlig hilsen = with Kind Regards from Arnt... ;-) ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case.