Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is the a SSH commands reference list?

    Scheduled Pinned Locked Moved Documentation
    4 Posts 3 Posters 10.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mystic
      last edited by

      Specifically I'm looking for commands to view logs in real time.  I'm trying to debug various NAT & VPN issues but unlike my other firewall devices, I can't seem to find something that will do this.

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        The diagnostics menu in the gui is very helpful, but you can get most of the same info via shell.
        Most of the commands are stock FreeBSD and the man pages are available online. Eg- arp, netstat, pfctl… http://www.freebsd.org/cgi/man.cgi?query=pfctl&apropos=0&sektion=0&manpath=FreeBSD+7.1-RELEASE&format=html
        pftop is also quite useful http://www.eee.metu.edu.tr/~canacar/pftop/pftop.8.html

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          The logs issue is covered specifically on the Doc Wiki:

          http://doc.pfsense.org/index.php/Why_can%27t_I_view_view_log_files_with_cat/grep/etc%3F_(clog)

          Though I suppose it could use an entry in the How-To section as well.

          As for the other commands, pfSense includes only a subset of the available commands found in the normal FreeBSD base system, and some others from various included packages. Your best bet is to look at the list of files in the various places on the path (/bin, /sbin, /usr/sbin, /usr/bin, /usr/local/sbin, /usr/local/bin) and look them up in more detail using FreeBSD's online man pages that dotdash linked to, or other online resources.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • M
            mystic
            last edited by

            I have seen the clog page & have found it somewhat useful.  It seems to be limited on which messages can be view @ a time.  Basically 1 of the issue I'm trying to determine why using the FQDN doesn't work for IPsec.  I got the tunnel to come right up when connecting the other end to IPCop, but then I saw in the messaging where the errors where & correct them on the spot.  CLOG isn't showing me anything useful.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.