Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-14-2015, 07:48 AM   #16
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 899

Original Poster
Rep: Reputation: 41

Hi, thank you for reply.
Interesting finding. I took latest sources for netstat-nat and complied but apparently this problem is still not corrected.

Could you please elaborate little bit what do you mean by: "Using conntrack instead solves the problem" ?
Do you mean to load conntrack module ?

Last edited by czezz; 09-14-2015 at 07:53 AM.
Old 10-20-2016, 04:21 AM   #17
LQ Newbie
Registered: Oct 2016
Posts: 1

Rep: Reputation: Disabled
I also had the same issue (using Debian Jessie and Kernel 4.7.4).
To workaround this, I replaced my netstat-nat (under /usr/bin) with this script:


print "Proto NATed Address                  Destination Address            State\n";
foreach $line ( `conntrack -g -n -L 2> /dev/null` ) {
    chomp( $line );
    if( $line =~/(\w+) .* (\w+) src=(\d+.\d+.\d+.\d+) .* sport=(\d+) .* src=(\d+.\d+.\d+.\d+) .* sport=(\d+)/ )
		print "$1   $3:$4             $5:$6             $2\n";
		print "Parse error! orig line = $line";
I saved this script as /usr/bin/netstat-nat (after backing up the original netstat-nat) and made it an executable (chmod a+x /usr/bin/netstat-nat)

Last edited by chookapp; 10-20-2016 at 04:25 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to 'netstat -nat + host ' at every time a user logs into SSH daemon ? frenchn00b Linux - Server 11 05-30-2008 12:25 AM
fc6---nat doesnt work :( pengusaha Linux - Networking 7 12-16-2007 02:22 AM
using netstat -nat shipon_97 Linux - Newbie 1 04-23-2007 02:03 PM
NAT doesnt work for me this time.. stradivarius Linux - Networking 0 04-17-2004 12:00 PM
NAT doesnt work for me this time.. stradivarius Linux - Networking 0 04-17-2004 11:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration