OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: pusanggala on April 10, 2016, 04:55:19 pm

Title: Install additional freebsd package
Post by: pusanggala on April 10, 2016, 04:55:19 pm
Hi guys,

Sorry for the kinda noob question.

I trying to install additional package, for example iftop without messing OPNsense config.

I tried "pkg update" then "pkg search iftop" but seems can't find this package. I googled several Freebsd forums and followed them but seems can't make it. It seems like a Repo thing but I don't want to mess with the config of OPNsense.

I want to monitor my router from a terminal, that's why I want to install some package such as iftop.

pftop is fine but still i love iftop. also you if you can recommend terminal base traffic monitoring tool that is already present, i will be happy to know it.

thanks and God bless!
Title: Re: Install additional freebsd package
Post by: packet loss on April 10, 2016, 06:37:58 pm
This list appears to be the entire package list available from the OPNsense ports repo:

Code: [Select]
root@OPNsense:/ # pkg search /
archivers/libarchive           Library to create and read several streaming archive formats
archivers/lzo2                 Portable speedy, lossless data compression library
archivers/php56-zlib           The zlib shared extension for php
archivers/zip                  Create/update ZIP files compatible with PKZIP
audio/gsm                      Audio converter and library for converting u-law to gsm encoding
audio/libogg                   Ogg bitstream library
audio/libvorbis                Audio compression codec library
audio/mpg123                   Command-line player for MPEG Layer 1, 2, and 3 audio files
audio/portaudio                Portable cross-platform Audio API
audio/speex                    Audio compression format designed for speech
audio/speexdsp                 Audio compression format designed for speech
benchmarks/iperf3              Improved tool to measure TCP and UDP bandwidth
comms/gnokii                   Tools to talk to GSM cellular phones
comms/kermit                   Portable scriptable network and serial communication program
comms/spandsp                  DSP library and software FAX machine
converters/libiconv            Character set conversion library
databases/freetds              Sybase/Microsoft TDS protocol library
databases/gdbm                 GNU database manager
databases/php56-mysql          The mysql shared extension for php
databases/php56-mysqli         The mysqli shared extension for php
databases/php56-pdo            The pdo shared extension for php
databases/php56-pdo_sqlite     The pdo_sqlite shared extension for php
databases/php56-sqlite3        The sqlite3 shared extension for php
databases/postgresql93-client  PostgreSQL database (client)
databases/rrdtool12            Round Robin Database Tools v1.2
databases/sqlite2              SQL database engine in a C library
databases/sqlite3              SQL database engine in a C library
databases/unixODBC             ODBC library suite for Unix
devel/autoconf                 Automatically configure source code on many Un*x platforms
devel/bison                    Parser generator from FSF, (mostly) compatible with Yacc
devel/cmake                    Cross-platform Makefile generator
devel/cmake-modules            Modules and Templates for CMake
devel/cvsps                    Create patchset information from CVS
devel/gettext-runtime          GNU gettext runtime libraries and programs
devel/gettext-tools            GNU gettext development and translation tools
devel/git                      Distributed source code management tool
devel/glib20                   Some useful routines of C programming (current stable version)
devel/gmake                    GNU version of 'make' utility
devel/gmake-lite               Minimalist version of gnu make
devel/icu                      International Components for Unicode (from IBM)
devel/jansson                  C library for encoding, decoding, and manipulating JSON data
devel/jsoncpp                  JSON reader and writer library for C++
devel/libdaemon                Lightweight C library that eases the writing of UNIX daemons
devel/libedit                  Command line editor library
devel/libevent2                API for executing callback functions on events or timeouts
devel/libffi                   Foreign Function Interface
devel/libhtp                   Security-aware parser for the HTTP protocol
devel/libltdl                  System independent dlopen wrapper
devel/libpdel                  Packet Design multi-purpose C library for embedded applications
devel/libsigsegv               Handling page faults in user mode
devel/libslang2                Routines for rapid alpha-numeric terminal applications development
devel/libtool                  Generic shared library support script
devel/m4                       GNU m4
devel/newt                     Not Eriks Windowing Toolkit: console I/O handling library
devel/p5-File-LibMagic         Nice wrapper for libmagic
devel/p5-Term-ReadKey          Perl5 module for simple terminal control
devel/p5-TimeDate              Perl5 module containing a better/faster date parser for absolute dates
devel/patch                    GNU patch utility
devel/pcre                     Perl Compatible Regular Expressions library
devel/pear                     PEAR framework for PHP
devel/pear-PHP_CodeSniffer     PHP Script Tokenises and Sniffs PHP and JavaScript code
devel/php-xdebug               Xdebug extension for PHP
devel/php56-gettext            The gettext shared extension for php
devel/php56-json               The json shared extension for php
devel/php56-tokenizer          The tokenizer shared extension for php
devel/pkgconf                  Utility to help to configure compiler and linker flags
devel/popt                     Getopt(3) like library with a number of enhancements, from Redhat
devel/py-babel                 Collection of tools for internationalizing Python applications
devel/py-pytz                  World Timezone Definitions for Python
devel/py-setuptools27          Python packages installer
devel/talloc                   Hierarchical pool based memory allocator
dns/bind910                    BIND DNS suite with updated DNSSEC and DNS64
dns/ddclient                   Update dynamic DNS entries
dns/dnscrypt-proxy             Boost privacy and security of DNS
dns/dnsmasq                    Lightweight DNS forwarder, DHCP, and TFTP server
dns/idnkit                     Library to handle internationalized domain names
dns/ldns                       Library for programs conforming to DNS RFCs and drafts
dns/libidn                     Internationalized Domain Names command line tool
dns/maradns                    DNS server with focus on security and simplicity
dns/unbound                    Validating, recursive, and caching DNS resolver
editors/joe                    Joe's Own Editor
editors/nano                   Nano's ANOther editor, an enhanced free Pico clone
editors/vim-lite               Improved version of the vi editor (lite package)
emulators/open-vm-tools-nox11  Open VMware tools for FreeBSD VMware guests
ftp/curl                       Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
ftp/php56-curl                 The curl shared extension for php
ftp/uftp                       Multicast capable FTP client and server
graphics/gd                    Graphics library for fast creation of images
graphics/graphviz              Graph Visualization Software from AT&T and Bell Labs
graphics/jbigkit               Lossless compression for bi-level images such as scanned pages, faxes
graphics/jpeg-turbo            SIMD-accelerated JPEG codec which replaces libjpeg
graphics/libart_lgpl           Library for high-performance 2D graphics
graphics/p5-GD                 Perl5 interface to Gd Graphics Library version2
graphics/png                   Library for manipulating PNG images
graphics/tiff                  Tools and library routines for working with TIFF images
lang/gawk                      GNU version of Awk
lang/lua51                     Small, compilable scripting language providing easy access to C code
lang/p5-Error                  Error/exception handling in object-oriented programming style
lang/perl5.20                  Practical Extraction and Report Language
lang/php56                     PHP Scripting Language
lang/python2                   The "meta-port" for version 2 of the Python interpreter
lang/python27                  Interpreted object-oriented programming language
mail/p5-Email-Date-Format      Produce RFC 2822 date strings
mail/p5-MIME-Lite              Simple interface for creating (not parsing!) MIME messages
mail/p5-MIME-Types             Perl extension for determining MIME types
mail/p5-Mail-Tools             Perl5 modules for dealing with Internet e-mail messages
mail/p5-Net-SMTP-SSL           SSL support for Net::SMTP
mail/smtp-cli                  Powerful SMTP command line client
math/gmp                       Free library for arbitrary precision arithmetic
math/php56-bcmath              The bcmath shared extension for php
misc/e2fsprogs-libuuid         UUID library from e2fsprogs package
misc/gnu-watch                 GNU watch command
misc/help2man                  Automatically generating simple manual pages from program output
misc/libpri                    C implementation of the Primary Rate ISDN specification
misc/mc-light                  Lightweight Midnight Commander clone
misc/openr2                    MFC/R2 call setup library
net-mgmt/bandwidthd            Tracks bandwidth usage by IP address
net-mgmt/bsnmp-regex           bsnmpd module allowing creation of counters from log files
net-mgmt/bsnmp-ucd             bsnmpd module that implements parts of UCD-SNMP-MIB
net-mgmt/choparp               Simple proxy arp daemon
net-mgmt/darkstat              Network statistics gatherer and reporter
net-mgmt/flowd                 Small, fast, and secure NetFlow collector
net-mgmt/lldpd                 LLDP (802.1ab)/CDP/EDP/SONMP/FDP daemon and SNMP subagent
net-mgmt/mk-livestatus         Nagios event broker module
net-mgmt/nagios-plugins        Plugins for Nagios
net-mgmt/net-snmp              Extendable SNMP implementation
net-mgmt/nrpe                  Nagios Remote Plugin Executor
net-mgmt/rate                  Traffic analysis command-line utility
net-mgmt/zabbix24-agent        Enterprise-class open source distributed monitoring (agent)
net/GeoIP                      Find the country that any IP address or hostname originates from
net/apinger                    IP device monitoring tool
net/asterisk13                 Open Source PBX and telephony toolkit
net/dhcp6                      KAME DHCP6 client, server, and relay
net/freeradius3                Free RADIUS server implementation
net/igmpproxy                  Multicast forwarding IGMP proxy
net/isc-dhcp43-client          The ISC Dynamic Host Configuration Protocol client
net/isc-dhcp43-relay           The ISC Dynamic Host Configuration Protocol relay
net/isc-dhcp43-server          ISC Dynamic Host Configuration Protocol server
net/libdnet                    Simple interface to low level networking routines
net/libnet                     C library for creating IP packets
net/libosip2                   Low layer of SIP implementation
net/miniupnpd                  UPnP IGD implementation which uses pf/ipf
net/mpd5                       Multi-link PPP daemon based on netgraph(4)
net/ntp                        The Network Time Protocol Distribution
net/openldap24-client          Open source LDAP client implementation
net/p5-IO-Socket-IP            Drop-in replacement for IO::Socket::INET supporting IPv4 and IPv6
net/p5-Socket                  Networking constants and support functions
net/pecl-radius                Radius client library for PHP
net/php56-ldap                 The ldap shared extension for php
net/php56-sockets              The sockets shared extension for php
net/pjsip                      Multimedia communication library written in C language
net/quagga                     Free RIPv1, RIPv2, OSPFv2, BGP4, IS-IS route software
net/radiusclient               Client library and basic utilities for RADIUS AAA
net/radvd                      Linux/BSD IPv6 router advertisement daemon
net/relayd                     OpenBSD relay daemon
net/rsync                      Network file distribution/synchronization utility
net/samplicator                Receives UDP datagrams and redistributes them to a set of receivers
net/siproxd                    Proxy/masquerading daemon for the SIP protocol
net/sixxs-aiccu                SixXS IPv6 TIC+ tunnel broker heartbeat client
net/vnstat                     Console-based network traffic monitor
net/wol                        Tool to wake up Wake-On-LAN compliant computers
opnsense/beep                  Beeps a certain duration and pitch out of the PC Speaker
opnsense/bsdinstaller          BSD Installer mega-package
opnsense/clog                  Circular log support for FreeBSD syslogd
opnsense/cpustats              Gather system statistics
opnsense/dhcpleases            Read dhpcd.lease file and add it to hosts file
opnsense/filterdns             filterdns
opnsense/filterlog             Parse pflog(4) output
opnsense/ifinfo                Interface statistics reader
opnsense/minicron              A very small cron
opnsense/mpd4                  Multi-link PPP daemon based on netgraph(4)
opnsense/ngattach              Netgraph(4) tool for per-device attach
opnsense/opnsense              OPNsense release package
opnsense/opnsense-devel        OPNsense development package
opnsense/opnsense-update       OPNsense update utilities
opnsense/os-helloworld         A sample framework application
opnsense/os-test               A test package
opnsense/os-vmware             VMware tools wrapper
opnsense/os-xen                Xen guest utilities wrapper
opnsense/php-pfSense           Library for getting useful info
opnsense/py27-Jinja2           Fast and easy to use stand-alone template engine
opnsense/py27-netaddr          Manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
opnsense/py27-requests         HTTP library written in Python for human beings
opnsense/py27-sqlite3          Standard Python binding to the SQLite3 library (Python 2.7)
opnsense/py27-ujson            Ultra fast JSON encoder and decoder for Python
opnsense/sshlockout_pf         Automatically block IPs with failed SSH logins using pf(4)
opnsense/syslogd               FreeBSD syslogd with additions
ports-mgmt/pkg                 Package manager
print/freetype2                Free and portable TrueType font rendering engine
print/indexinfo                Utility to regenerate the GNU info page index
print/texinfo                  Typeset documentation system with multiple format output
security/autossh               Automatically restart SSH sessions and tunnels
security/ca_root_nss           Root certificate bundle from the Mozilla Project
security/easy-rsa              Small RSA key management package based on openssl
security/expiretable           Utility to remove entries from the pf(4) table based on their age
security/gnutls                GNU Transport Layer Security library
security/honeybadger           Quantum Insert detector and 0-day catcher
security/libgcrypt             General purpose crypto library based on code used in GnuPG
security/libgpg-error          Common error values for all GnuPG components
security/libmcrypt             Multi-cipher cryptographic library (used in PHP)
security/libressl              Free version of the SSL/TLS protocol forked from OpenSSL
security/libsodium             Library to build higher-level cryptographic tools
security/libtasn1              ASN.1 structure parser library
security/nettle                Low-level cryptographic library
security/nmap                  Port scanning utility for large networks
security/openssh-portable      The portable version of OpenBSD's OpenSSH
security/openvpn               Secure IP/Ethernet tunnel daemon
security/p11-kit               Library for loading and enumerating of PKCS#11 modules
security/p5-Authen-SASL        Perl5 module for SASL authentication
security/p5-Digest-HMAC        Perl5 interface to HMAC Message-Digest Algorithms
security/p5-GSSAPI             Perl extension providing access to the GSSAPIv2 library
security/p5-IO-Socket-SSL      Perl5 interface to SSL sockets
security/p5-Net-SSLeay         Perl5 interface to SSL
security/php-suhosin           PHP extension that implements high-level protections
security/php56-filter          The filter shared extension for php
security/php56-hash            The hash shared extension for php
security/php56-mcrypt          The mcrypt shared extension for php
security/php56-openssl         The openssl shared extension for php
security/softether             Softether VPN solution
security/strongswan            Open Source IKEv2 IPsec-based VPN solution
security/sudo                  Allow others to run commands as root
security/suricata              High Performance Network IDS, IPS and Security Monitoring engine
security/tinc                  Virtual Private Network (VPN) daemon
security/tor                   Anonymizing overlay network for TCP
security/trousers              The open-source TCG Software Stack
sysutils/apcupsd               Set of programs for controlling APC UPS
sysutils/ataidle               Utility to spin down ATA drives
sysutils/beadm                 Solaris-like utility to manage Boot Environments on ZFS
sysutils/cpdup                 Comprehensive filesystem mirroring and backup program
sysutils/dmidecode             Tool for dumping DMI (SMBIOS) contents in human-readable format
sysutils/iocage                Full featured, no dependency Jail container manager
sysutils/ipmitool              CLI to manage IPMI systems
sysutils/nut                   Network UPS Tools
sysutils/pftop                 Utility for real-time display of statistics for pf
sysutils/screen                Multi-screen window manager
sysutils/smartmontools         S.M.A.R.T. disk monitoring tools
sysutils/tarsnap               Online encrypted backup service (client)
sysutils/tmux                  Terminal Multiplexer
sysutils/xe-guest-utilities    FreeBSD VM tools for Citrix XenServer and XCP
sysutils/xen-guest-tools       Xen tools within FreeBSD domU
textproc/aspell                Spelling checker with better suggestion logic than ispell
textproc/expat2                XML 1.0 parser written in C
textproc/iksemel               XML parser library mainly designed for Jabber applications
textproc/libucl                Universal configuration library parser
textproc/libxml2               XML parser library for GNOME
textproc/libyaml               YAML 1.1 parser and emitter written in C
textproc/php56-ctype           The ctype shared extension for php
textproc/php56-dom             The dom shared extension for php
textproc/php56-simplexml       The simplexml shared extension for php
textproc/php56-xml             The xml shared extension for php
textproc/py-MarkupSafe         Implements XML/HTML/XHTML Markup safe string for Python
www/lightsquid                 Light and fast web based squid proxy traffic analyser
www/lighttpd                   Secure, fast, compliant, and flexible Web Server
www/neon                       HTTP and WebDAV client library for Unix systems
www/p5-Mozilla-CA              Perl extension for Mozilla CA cert bundle in PEM format
www/phalcon                    Phalcon PHP Framework written in C-language
www/php56-session              The session shared extension for php
www/polipo                     Small and fast caching web proxy
www/privoxy                    Privoxy is a web proxy with advanced filtering capabilities
www/sarg                       Squid log analyzer and HTML report generator
www/squid                      HTTP Caching Proxy
www/tinyproxy                  Small, efficient HTTP proxy server
www/webgrind                   Xdebug Profiling Web Frontend in PHP
x11-fonts/fontconfig           XML-based font configuration API for X Windows
x11-fonts/libfontenc           The fontenc Library
x11-fonts/mkfontdir            Create an index of X font files in a directory
x11-fonts/mkfontscale          Creates an index of scalable font files for X
x11-fonts/urwfonts             Another font package for X
x11/xproto                     X11 protocol headers

I suspect if other packages were compatible they would be in this list.

You can use vnstat for traffic monitoring but you will need to install the package. darkstat is available as well as a package.
Title: Re: Install additional freebsd package
Post by: franco on April 11, 2016, 07:48:11 am
Hi there,

This is indeed the full list. Other options would be to set up the ports tree and build packages yourself on the box (the ports tree is available on GitHub).

I've added iftop to the packages[1] for 16.1.10. You may want to consider switching to another tool as it was last updated in January 2014 and there has never been an actual release of iftop's version 1.0.


Cheers,
Franco

--
[1] https://github.com/opnsense/tools/commit/9933bb07f78c127e93851ae639c9a4f4d167c501