Port allocations, netstat etc


6 posts in this topic Last Reply

Recommended Posts

Given that unRAID supports bridges and Docker now, allowing users native visibility to port allocations will become an ever more important part of the process of adding containers and plugins etc.


In its simplest form this is just presenting netstat information via emHTTP but it is expected better code exists under GPL to make this more user friendly



Link to post
  • 6 years later...

How/Where do I get netstat for UnRAID? I want to list the ports that the server is listening to.

To clarify, I tried running netstat and it said no such file or directory.

I tried installing a package I found online for slackware: 

upgradepkg --install-new net-tools-20181103_0eebece-i586-1.txz

But I still get the same error. Can anyone please help me get netstat working?


# netstat --help
-bash: /bin/netstat: No such file or directory


Edited by frakman1
Link to post

OK. I found something that works here. Installed it like this and it worked.

# wget http://slackware.cs.utah.edu/pub/slackware/slackware64-14.2/slackware64/n/net-tools-1.60.20120726git-x86_64-1.txz

# upgradepkg --install-new net-tools-1.60.20120726git-x86_64-1.txz


Edited by frakman1
Link to post

Works for me too.

0 root@ToyVB:~# wget ftp://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/n/net-tools-*.txz

0 root@ToyVB:~# installpkg net-tools-*.txz

0 root@ToyVB:~# which -a netstat

0 root@ToyVB:~# netstat --version | line
net-tools 2.10-alpha

0 root@ToyVB:~# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0*               LISTEN      1671/sshd
tcp        0      0*               LISTEN      9062/nginx: master
tcp        0      0*               LISTEN      8921/smbd

This output reassures me that I have nicely hardened all my services to only listen on my private "admin-only" interface. :-)

Edited by Pourko
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.