iptables-save and match formatting
My project for the evening is to integrate Shorewall with iptables-save/iptables-restore. While debugging this facility, I found that iptables-save was generating DNS names when outputing "-m conntrack --ctorigdst <address>". The attached patch corrects the problem for me but may have undesirable side effects not obvious to the casual hacker such as myself :-)
-Tom
PS -- I'm using a Windoze system in the family room while watching a hockey game so the patch may need 'dos2unix'.
-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