netstat -lptun gives a list of servers with the following details:
- local and foreign address
- PID and program name
What is the command's equivalent in FreeBSD?
The command you want is
netBSD also have netstat program alongside their repository since netBSD 2.0, if on your machine doesn't have, you can install it, so you can use netstat on netBSD. here the guide http://modman.unixdev.net/?sektion=1&page=netstat&manpath=NetBSD-2.0
On FreeBSD specifically,
You could also use