Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 339377

Summary: net-firewall/arptables: /sbin/arptables-save generates malformed data
Product: Gentoo Linux Reporter: Alexey Vlasov <renton>
Component: [OLD] ServerAssignee: Peter Volkov (RETIRED) <pva>
Status: RESOLVED FIXED    
Severity: minor CC: base-system
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexey Vlasov 2010-10-01 19:08:10 UTC
It is absolutely unnecessary to have names instead of IP addresses otherwise at recovery you'll get nonsense.

Reproducible: Always

Steps to Reproduce:
1. Run /sbin/arptables-save
Actual Results:  
...
-A FORWARD -j ACCEPT -i any -o any -d example.com --dst-mac 00:15:5d:86:a4:5e --opcode Reply
...

Expected Results:  
...
-A FORWARD -j ACCEPT -i any -o any -d 123.123.123.123 --dst-mac 00:15:5d:86:a4:5e --opcode Reply
...

--- arptables-save.orig 2010-10-01 23:06:56.000000000 +0400
+++ arptables-save      2010-10-01 23:07:19.000000000 +0400
@@ -47,7 +47,7 @@
 # ========================================================

 unless (-x "$tool") { print "ERROR: Tool $tool isn't executable"; exit -1; };
-$table =`$tool -t filter -L -v`;
+$table =`$tool -t filter -L -v -n`;
 unless ($? == 0) { print $table; exit -1 };
 &process_table($table);
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-10-09 13:08:59 UTC
Thank you for report. Actually there were even more problems. I've borrowed some patches from debian and now it should work. Fixed in arptables-0.0.3.4-r2.