Alex Samad wrote:
On Mon, Sep 10, 2007 at 02:42:48PM +1000, Jamie Wilkinson wrote:
This one time, at band camp, Alex Samad wrote:
Hi

I am just going through my firewall setup and I notice I can no longer do iptables -P INPUT REJECT

when did this happen ? I could have sworn that is what I used to use as a default, yes I know I can drop and add a -A -j REJECT
News to me.  What version of iptables do you have?
amd64 lenny
iptables -V
iptables v1.3.8
uname -r
2.6.20-1-amd64

 iptables -P INPUT REJECT
iptables: Bad policy name

but I can do a iptables -A INPUT -j REJECT

strange


What's the error message?
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Odd. My recollection was also that REJECT could be used in a policy. However, it seems clear from the man pages and searching around that ACCEPT, DROP, QUEUE, and RETURN are the only options. There are extended targets that include REJECT, but as you mentioned above, that only seems available for user chains.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to