I wrote this script to parse nat translations, maybe it could be a starting point. https://github.com/vyos/vyatta-nat/blob/lithium/scripts/vyatta-nat-translations.pl On Thu, Jan 1, 2015 at 4:10 PM, Karsten Hohmeier <karsten.hohmeier@xxxxxxxxxxxxx> wrote: > Hi Dennis, > >> What is the best way to parse this information in a reliable way? > > Maybe you could try dumping the table in XML as mentioned by the manpage? > > conntrack -L -o xml > Dump the connection tracking table in XML > > Best Regards > > Karsten > > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html