Re: Changing iptable policy
From: YAMABANA Kengou (junk_at_g13.org)
Date: 11/13/03
- Next message: Jukka Hellen: "Re: SMC router and Printer"
- Previous message: Marina Roos: "Re: dhcp issue"
- In reply to: tjcreek55: "Changing iptable policy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 13 Nov 2003 08:05:32 +0900
tjcreek55 wrote:
> I want to create a new chain and have the policy to changed to DROP.
> Each time I enter the command iptables -P FIRE DROP, I get the
> following error message: iptables: Bad built-in chain name
>
> However, if I change one of the default chains of INPUT, FORWARD or
> OUTPUT with the command iptables -P INPUT DROP, the command is
> accepted. What am I missing?
User-defined chains cannot have policies.
See
man iptables
You should add a catch-all rule to the end of your chain.
iptables -A FIRE DROP
YAMABANA Kengou
Gifu, Japan
- Next message: Jukka Hellen: "Re: SMC router and Printer"
- Previous message: Marina Roos: "Re: dhcp issue"
- In reply to: tjcreek55: "Changing iptable policy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|