Skip Menu |

This queue is for tickets about the IPTables-IPv4 CPAN distribution.

Report information
The Basics
Id: 30026
Status: new
Priority: 0/
Queue: IPTables-IPv4

People
Owner: Nobody in particular
Requestors: ssnnss [...] bk.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: nat table bug
Date: Tue, 16 Oct 2007 12:22:05 +0400
To: bug-IPTables-IPv4 [...] rt.cpan.org
From: Сергеев Сергей Николаевич <ssnnss [...] bk.ru>
Hello, bug-IPTables-IPv4. module has not seen "source" or "destination" fields of rule, when working with "nat" table. ======================================== iptables -t nat -L NATING -nv Chain NATING (0 references) pkts bytes target prot opt in out source destination 0 0 DNAT 0 -- * * 0.0.0.0/0 212.45.15.253 to:10.44.55.12 0 0 SNAT 0 -- * * 10.44.55.12 0.0.0.0/0 to:212.45.15.253 ======================================== $table = IPTables::IPv4::init('nat'); if($table->is_chain('NATING') == 1){ @rules = $table->list_rules('NATING'); foreach(@rules){ my $hashref=$_; my %rulehashe=%{$hashref}; print join(" ", keys(%rulehashe)), "\n"; print join(" ", values(%rulehashe)), "\n"; ..... shows: pcnt to-destination jump bcnt 0 10.44.55.12 DNAT 0 to-source pcnt jump bcnt 212.45.15.253 0 SNAT 0 ======================================== -- Best regards, Sergeyev mailto:ssnnss@bk.ru