Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th May 2008
CTOS's Avatar
CTOS CTOS is offline
New User
Join Date: May 2008
Posts: 1
Default netstat state LISTEN change

In 4.2-RELEASE to show IPv4 ports that included state LISTEN I did:
$ netstat -ln -f inet
But in 4.3-RELEASE I noticed I now had to use -a instead of -l to view the same information:
$ netstat -an -f inet
Here's the source diff explaination:


I thought I'd pass this along just in case anyone else was using the old way like me. I did the old way first on a new 4.3-RELEASE install and saw nothing listed. Wow, I thought. OpenBSD really is secure by default, nothing in state LISTEN.

Last edited by CTOS; 4th May 2008 at 02:27 PM.
Reply With Quote
  #2   (View Single Post)  
Old 4th May 2008
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,596

To anyone wondering why his mail or webserver is not working I have always suggested to use
netstat -an -f inet
For an example for sshd see http://www.bsdforums.org/forums/show...3&postcount=10
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change for rc.lkm IdOp NetBSD General 2 24th August 2009 02:33 PM
State of Native Java in NetBSD? shep NetBSD Package System (pkgsrc) 1 2nd June 2009 08:13 AM
pftop state query. bsdnewbie999 OpenBSD General 1 10th April 2009 03:33 AM
How to check CPU state in non-interactive mode? bsddaemon FreeBSD General 2 18th October 2008 04:50 PM
*BSD support for solid state disks? JMJ_coder General Hardware 3 27th June 2008 11:21 PM

All times are GMT. The time now is 04:14 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick