Re: FBSD 5.4 - netstat -p tcp

From: Will Maier (willmaier_at_ml1.net)
Date: 09/30/05

  • Next message: Damon Blom: "libchk - method to fix libraries"
    Date: Fri, 30 Sep 2005 15:05:55 -0500
    To: freebsd-questions@freebsd.org
    
    

    > > On 9/30/05, Brian Henning <henninb@gmail.com> wrote:
    > > > Using FBSD 5.4 and trying to see if there are open ports on my
    > > > machine. when i use netstat -p tcp, it yields no results, but i know
    > > > for a fact that i am running an sshd server on the machine because i
    > > > am logged in remotely with putty.

    > On 9/30/05, Andrew P. <infofarmer@gmail.com> wrote:
    > > Try the -a switch:
    > > # netstat -ap tcp

    On Fri, Sep 30, 2005 at 11:35:08AM -0500, Brian Henning wrote:
    > i have tried that with no luck :(

    (Please don't top post -- I've reordered the quoted sections above)

    lsof often works for me where sockstat (sockstat -4) or netstat
    haven't:

        # lsof -ni

    -- 
    o--------------------------{ Will Maier }--------------------------o
    | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net |
    | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu |
    *------------------[ BSD Unix: Live Free or Die ]------------------*
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Damon Blom: "libchk - method to fix libraries"

    Relevant Pages

    • Re: is one of my hosts a scanner?
      ... Use lsof or sockstat ... ; NKritsky ... To unsubscribe, ...
      (FreeBSD-Security)
    • Re: Big traffic on 412/tcp
      ... I've often found that 'sockstat' is a much more useful program than lsof. ... >> For more information on this free incident handling, management ...
      (Incidents)
    • Re: Problems with JAIL in 4.8R
      ... system sshd_config, the sockstat shows: ... >> sort of daemon in a jail, while running the same daemon in you're host ... >> In this case you should set the ListenAddress parameter in you're ... To unsubscribe, ...
      (FreeBSD-Security)
    • Re: command to inentify the process that is listening in a port.
      ... IP port? ... when sockstat/fstat are in the base system and seem to cover the same ground? ... I would have recommended lsof simply because I wasn't aware of sockstat. ...
      (freebsd-questions)
    • Re: Need urgent help regarding security
      ... is doing with lsof, but depending on what backdoor ... because intelligent rootkits hide themself ... Then sockstat ...
      (freebsd-questions)