From: Victor S. <vi...@vi...> - 2009-04-29 11:05:30
|
Jan Kratochvil пишет: > On Wed, 29 Apr 2009 11:46:07 +0200, Victor Safronov wrote: > >> This code gives me "pcntjumpbcnt" repeated n times, where n is rules >> amount in that chain. >> > > And what rules do you have in the "billing" chain? > > For filter->INPUT I get these keys: > bcnt > destination > destination-port > destination-ports > in-interface > jump > mark > matches > pcnt > protocol > reject-with > source > source-port > > You may rather want to use there: > print join ",",keys(%{$_}); > > > Regards, > Jan > I have two rules. [root@ns2 bin]# iptables -nvL billing Chain billing (0 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- * * 10.20.1.1 0.0.0.0/0 0 0 ACCEPT all -- * * 0.0.0.0/0 10.20.1.1 |