Re: Setting a default policy does not work :(

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

 



On Tuesday 02 December 2003 10:53, Chris Brenton wrote:
> On Tue, 2003-12-02 at 10:33, Michael Gale wrote:
> > Inserting the following to the bottom of my firewall script:
> >
> > ### Causes all traffic to or from the box on either interface to be
> > dropped regardless of all other rules.
> >
> > iptables --policy INPUT DROP
> > iptables --policy OUTPUT DROP
> > iptables --policy FORWARD DROP
>
> Try:
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
> iptables -P FORWARD DROP
>
> Works for me on multiple firewalls using multiple interfaces.
>

OK, now *I'm* confused. Aren't they the same command?

Jeff



[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