[PATCH} iptables-save and -m conntrack (Repost)
Currently, the iptables-save output produced by the connection tracking match module contains DNS names rather than IP addresses. This causes a subsequent iptables-restore using that output to fail. The attached trivial patch corrects the problem.
-Tom
Signature · 3 lines
Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [email protected]
libipt_conntrack.c renamed from libipt_conntrack.c~ +1 -1
@@ -504,7 +504,7 @@/* Saves the matchinfo in parsable form to stdout. */ static void save (const struct ipt_ip *ip,const struct ipt_entry_match *match) { -matchinfo_print (ip, match,0 ,"--" ); +matchinfo_print (ip, match,1 ,"--" ); } static
Hi Tom,
Quoted 4 lines · Tom Eastep
Currently, the iptables-save output produced by the connection tracking match module contains DNS names rather than IP addresses. This causes a subsequent iptables-restore using that output to fail. The attached trivial patch corrects the problem.
Thank you, patch is applied.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary