Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: KevinAMcGrail-CPAN [...] mcgrail.com
Cc:
AdminCc:

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



Subject: Make test fails if no iptables rules have been defined prior
make test throws errors such as: Use of uninitialized value in <HANDLE> at /usr/src/IPTables-IPv4-0.98/blib/lib/IPTables/IPv4/Toplevel.pm line 50. readline() on unopened filehandle at /usr/src/IPTables-IPv4-0.98/blib/lib/IPTables/IPv4/Toplevel.pm line 50. This is caused by trying to read /proc/net/ip_tables_names, etc. Creating blank rules with the following commands resolved my issue and allowed for a make test. #FLUSH EVERYTHING /sbin/iptables -t filter -F INPUT /sbin/iptables -t filter -F OUTPUT /sbin/iptables -t filter -F FORWARD /sbin/iptables -t nat -F PREROUTING /sbin/iptables -t nat -F OUTPUT /sbin/iptables -t nat -F POSTROUTING /sbin/iptables -t mangle -F PREROUTING /sbin/iptables -t mangle -F OUTPUT #DEFAULT RULES /sbin/iptables -t filter -P INPUT ACCEPT /sbin/iptables -t filter -P OUTPUT ACCEPT /sbin/iptables -t filter -P FORWARD DROP