Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339377 - net-firewall/arptables: /sbin/arptables-save generates malformed data
Summary: net-firewall/arptables: /sbin/arptables-save generates malformed data
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 19:08 UTC by Alexey Vlasov
Modified: 2010-10-09 13:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.