Quote:
Originally Posted by cashton2k
i know this may be a stupid question but i need to be absolutley sure.
i log in to my firewall using ssh if i use the following commands will i block myself out?
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
cheers for any help
|
"-P" option sets the default policy.
So, these 3 commands set the default policy for INPUT,OUTPUT,FORWARD chains to DROP.
In other words, nothing will work.(Yes, you will block yourself out)
You need to put other rules too.
have you read the iptables manpage ? It explains a lot of things.
Also visit
http://iptables-tutorial.frozentux.net