FreeBSD Unix Find Out Which Programs Are Listing On a Given Port Number

openbsm-logo has posted yet another tutorial on how to see what programs are listed on a certain port on FreeBSD.

I’m a new FreeBSD Unix system user. How can I find out the process/programs names listing on a certain port on a FreeBSD Unix systems using command line? How do I lookup the process which is currently bound to the given network port on a FreeBSD server?

Tutorial details
Difficulty Easy (rss)
Root privileges Yes
Requirements none
Estimated completion time 5m

You can use any one of the following command-line tools that displays network connections, routing tables, and a number of network interface statistics on a FreeBSD operating systems.

  • netstat command – Use to see network status including open ports, tcp/udp connections, and more.
  • sockstat command – Show open sockets.
  • lsof command – List open files such as network sockets and files on disks.

FreeBSD has a command called sockstat and netstat tools. These are already on a standard FreeBSD install. You need to install the lsof tool from ports collection.

View the full tutorial here:

How to integrate Active Directory with FreeBSD 10.0 using security/sssd?

This tutorial by Vinícius Ferrão shows us how to integrate Active Directory with FreeBSD 10, using security/sssd.

Q: What are the required steps to authenticate users from an Active Directory running on Windows Server 2012 R2 in FreeBSD 10.0 using sssd with the AD backend with Kerberos TGT working?

A: There are some tricky considerations to make everything works out-of-the-box. FreeBSD only supports sssd version 1.9.6 at this moment. So there’s no support for   Enterprise Principal Names.

If you have a domain with non matched UPNs it will fail to login, since the Kerberos authentication will fail during the process, even with FreeBSD supporting Enterprise Principal Names with Kerberos, the sssd cannot handle this case.

So in actual version of sssd you are limited to have the User Principal Name within the same Domain Name, for example:

Domain Name =
User Principal Name: sAMAccountName: username

Knowing this we can describe the steps to successfully authenticate users from AD in FreeBSD.

View the full tutorial here:

Installing a Unix-Like Operating System FreeBSD 10.1 (+ Configuring Network)

This tutorial by shows us how to get FreeBSD 10.1 setup, including configuring the network interface.

FreeBSD is a Free Unix like operating system from Berkeley Software distribution, which is available for all major platforms x86_64, IA-32, POWERPC, ARM etc, and mainly focuses on features, speed, and performance stability.

FreeBSD 10.1 Installation GuideFreeBSD 10.1 Installation Guide

FreeBSD used by many top-level IT companies like Juniper Networks, NetApp, Nokia, IBM, etc. and available for server platforms with command line interface only, but we can use any other Desktop environments such as Xfce, KDE, GNOME etc. to make it user friendly distro.

My Environment Setup
IP Address	:
Hostname	:
Hard Disk	:	10GB
Memory		:	1GB

This article will walk you through the some brief instructions on installing FreeBSD 10.1 and configure network (setting static IP address) interfaces using a text-based installation utility named bsdinstall under i386 and AMD64 architectures.

View the full guide here:

FreeBSD Foundation February 2015 Update

freebsdfoundationThe FreeBSD Foundation’s February update consists of information on PCI Express Hot­Plug Project, FreeBSD on POWER8, FOSDEM ’15, an #InstallFreeBSD event, as well as fundraising updates.

As February comes to a close, I’m excited, not only because spring is
near, but because the Foundation has so many great things in the works
right now. From excellent progress on projects we’re supporting to
promoting FreeBSD at conferences, we’re working at full speed towards
meeting our 2015 goals. Be sure to check out the next installment of our
“From the Trenches” series and take time to find out how to get involved
in the upcoming #installFreeBSD fests. Each month, the support and
ideas that come from you, the FreeBSD community, remind me why we
work so hard to support such a vibrant and thriving community. Thank
you for all you do, and enjoy our latest update!


View the PDF here:

FreeBSD on the POWER8: it’s alive!

Adrian Chadd posts about Nathan Whitehorn’s findings on FreeBSD on POWER8.

A post to freebsd-ppc from a couple of vmonths ago asked if we had support for POWER8 and offered to provide remote access to anyone interested in working on it. I was sufficiently intrigued that I approached the FreeBSD powerpc hackers to ask about it, and was informed that it’d be nice, but we didn’t have hardware.

After a bit of wrangling of hardware logistics and with the FreeBSD Foundation purchasing a box, a Tyan POWER8 evaluation server appeared. Nathan Whitehorn started poking at it and managed to get a basic “hello world” going, but stalled on issues with the Linux KVM virtualisation environment.

Fast forward a few weeks – he’s figured out the KVM issues, their lack of support for some mandated hypervisor APIs and other bugs – FreeBSD now boots inside of the hypervisor environment and seems stable enough to do development on.

He then found the existing powerpc pmap (physical memory management) code wasn’t very SMP friendly – it works fine on one and two CPU powerpc machines, but this POWER8 evaluation board is a 4-core, 32-thread CPU. So a few days of development went by and he rewrote most of the pmap code to be much more fine grained locked and scale much, much better than the existing code. (He also found the PS3 hypervisor layer isn’t thread-safe.)

What’s been done thus far?
[Read more…]

10 Steps to Installing FreeBSD on Rackspace servers using nginx

FreeBSD user Kiki Schirr shows us how to set up FreeBSD on your Rackspace server uising nginx.

A gif-recipe for the easiest way I can imagine to host your own site


  • Rackspace hosting (I’m using Cloud)
  • A domain (I’m using

Step One: Create the Server

Click “Create server” and type in your domain ( Don’t forget the top-level domain (the .com)! If you do, your website will be slower.

[Read more…]

SCALE 13x Trip Report: Michael Dexter

The Foundation recently sponsored Michael Dexter to attend SCALE 13x. Michael provides the following trip report:

SCALE 13x was the 13th Southern California Linux Expo and took place February 19th through 20th in Los Angeles, California. Despite its name, this year’s event demonstrated sincere outreach to the BSD community as demonstrated by two booths and several BSD-related talks. The first booth featured FreeBSD, the FreeBSD Foundation, FreeNAS, PC-BSD and pfSense while the second featured OpenBSD and NetBSD. Both booths were filled with familiar faces including Dru Lavigne, Denise Ebery, Matt Olander, James Nixon, David Maxwell, Brooke and Seth and two toddlers!

The variety of booth visitors were very familiar for SCALE: a mix of students, consultants, open source developers and military/aerospace contractors. I heard lots of “I got started on FreeBSD” and “I use FreeNAS” plus the occasional “When can we have a military-certified BSD so we can stop using Linux?” The last one is something I have heard at every SCALE I have attended and is representative of the region. Hats off to the SCALE organizers for also attracting such a diverse

Read Michael Dexter’s full report here:

FreeBSD From the Trenches: ZFS, and How to Make a Foot Cannon

The FreeBSD Foundation rounded up a story from Glen Barber, discussing the ZFS filesystem.

This month’s story comes to us from Glen Barber, UNIX Systems Administrator.

The ZFS filesystem is regarded for its robustness and extensive feature set.

Its robustness can be haunting, however, if a mistake is made.  I learned this the hard way through a seemingly innocent typo, a mistake I certainly will not soon repeat.

We use ZFS almost exclusively in the FreeBSD cluster.  I say “almost” because there is one remaining machine that does not use ZFS, because the machine is too underpowered to handle it.

All machines are installed in a netboot environment while logged in at the serial console, providing the utilities necessary for extremely customizable installations.  Most of the installations I have performed on machines in the cluster have been pseudo-scripted, with subtle differences depending on the machine, such as if the disks are da(4) or ada(4), the number of disks, how much space to allocate for swap, the number of ZFS pools, and so on.

Read Glen Barber’s full story: