RE: Is it possible to change a chains default policy when rules are already present?

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

 



Hi

Thx for the quick reply. Forgot to mention I am using NFTables...but I guess this should be then possible as well.

Thx
Andy 

Am 13.08.20 um 14:28 schrieb Andreas Hoefler:
> I have a chain with default policy drop.
> I would like to first have the default policy set to accept, then add rules and later change it to drop.
> Is this possible?

iptables -t <table> -P <CHAIN> ACCEPT
iptables -t <table> -P <CHAIN> DROP




[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