I fixed conntrack-viewer 1.3 for 2.6.18-194.el5

This neat Perl script for viewing your masqueraded connections via ip_conntrack hadn’t been updated since 2002 and was erroring out with the messages below. Fixing it involved correcting the regexes for the new version of netfilter. Since it’s GPLed I’m including the modified source here: http://www.mediafire.com/?pes7sb66vhgp77j

  Use of uninitialized value in getservbyport at ./conntrack-viewer.pl line 114. Use of uninitialized value in getservbyport at ./conntrack-viewer.pl line 115. Use of uninitialized value in length at ./conntrack-viewer.pl line 128. Use of uninitialized value in length at ./conntrack-viewer.pl line 133. Use of uninitialized value in length at ./conntrack-viewer.pl line 143. Use of uninitialized value in concatenation (.) or string at ./conntrack-viewer.pl line 151. Use of uninitialized value in string ne at ./conntrack-viewer.pl line 154. Use of uninitialized value in subroutine entry at ./conntrack-viewer.pl line 162. Use of uninitialized value in gethostbyaddr at ./conntrack-viewer.pl line 162. Use of uninitialized value in gethostbyaddr at ./conntrack-viewer.pl line 163.