Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details on branch 2026Q4
ngrep Network grep
1.48.3_1 net Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.48.3_1Version of this port present on the latest quarterly branch.
There is no maintainer for this port.
Any concerns regarding this port should be directed to the FreeBSD Ports mailing list via ports@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-10-13 18:51:12
Last Update: 2026-10-13 18:50:34
Commit Hash: 3d459b7
Also Listed In: security
License: BSD4CLAUSE
WWW:
https://ngrep.sourceforge.net/
https://github.com/jpr5/ngrep/
Description: #
ngrep is like GNU grep applied to the network layer. It's a PCAP-based tool that allows you to specify an extended regular or hexadecimal expression to match against data payloads of packets. It understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6, IGMP and Raw, across a wide variety of interface types, and understands BPF filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages: #
pkg-plist: as obtained via: make generate-plist #
Expand this list (5 items)
Collapse this list.
  1. bin/ngrep
  2. share/man/man8/ngrep.8.gz
  3. /usr/local/share/licenses/ngrep-1.48.3_1/catalog.mk
  4. /usr/local/share/licenses/ngrep-1.48.3_1/LICENSE
  5. /usr/local/share/licenses/ngrep-1.48.3_1/BSD4CLAUSE
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ngrep>0:net/ngrep
To install the port: #
cd /usr/ports/net/ngrep/ && make install clean
To add the package, run one of these commands:
  • pkg install net/ngrep
  • pkg install ngrep
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: ngrep
Flavors: there is no flavor information for this port. #
distinfo: #
TIMESTAMP = 1765188888 SHA256 (ngrep/v1.48.3%20source%20code.tar.gz) = 1900038c313412661693a55d75135ab527529c863a8611e0b8dda838af5b63c9 SIZE (ngrep/v1.48.3%20source%20code.tar.gz) = 297828

No package information for this port in our database #
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. gmake>=4.4.1 : devel/gmake
  2. autoconf>=2.73 : devel/autoconf
  3. automake>=1.18.1 : devel/automake
Library dependencies: #
  1. libpcre2-8.so : devel/pcre2
  2. libpcre2-posix.so : devel/pcre2
There are no ports dependent upon this port #

Configuration Options: #
===> The following configuration options are available for ngrep-1.48.3_1: CAPSICUM=on: Build with capsicum if kernel supports it DOCS=on: Build and/or install documentation IPV6=on: IPv6 protocol support PCRE=on: Use PCRE2 instead of GNU regex PORTS_PCAP=off: Use ports PCAP instead of system PCAP ===> Use 'make config' to modify these settings
Options name: #
net_ngrep
USES: #
autoreconf gmake
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
Expand this list (40 items)
Collapse this list.
  1. http://cfhcable.dl.sourceforge.net/project/ngrep/v1.48.3/
  2. http://cytranet.dl.sourceforge.net/project/ngrep/v1.48.3/
  3. http://deac-ams.dl.sourceforge.net/project/ngrep/v1.48.3/
  4. http://deac-fra.dl.sourceforge.net/project/ngrep/v1.48.3/
  5. http://deac-riga.dl.sourceforge.net/project/ngrep/v1.48.3/
  6. http://downloads.sourceforge.net/project/ngrep/v1.48.3/
  7. http://excellmedia.dl.sourceforge.net/project/ngrep/v1.48.3/
  8. http://freefr.dl.sourceforge.net/project/ngrep/v1.48.3/
  9. http://gigenet.dl.sourceforge.net/project/ngrep/v1.48.3/
  10. http://ixpeering.dl.sourceforge.net/project/ngrep/v1.48.3/
  11. http://jaist.dl.sourceforge.net/project/ngrep/v1.48.3/
  12. http://kumisystems.dl.sourceforge.net/project/ngrep/v1.48.3/
  13. http://liquidtelecom.dl.sourceforge.net/project/ngrep/v1.48.3/
  14. http://nchc.dl.sourceforge.net/project/ngrep/v1.48.3/
  15. http://netactuate.dl.sourceforge.net/project/ngrep/v1.48.3/
  16. http://netcologne.dl.sourceforge.net/project/ngrep/v1.48.3/
  17. http://onboardcloud.dl.sourceforge.net/project/ngrep/v1.48.3/
  18. http://phoenixnap.dl.sourceforge.net/project/ngrep/v1.48.3/
  19. http://sinalbr.dl.sourceforge.net/project/ngrep/v1.48.3/
  20. http://sitsa.dl.sourceforge.net/project/ngrep/v1.48.3/
  21. https://cfhcable.dl.sourceforge.net/project/ngrep/v1.48.3/
  22. https://cytranet.dl.sourceforge.net/project/ngrep/v1.48.3/
  23. https://deac-ams.dl.sourceforge.net/project/ngrep/v1.48.3/
  24. https://deac-fra.dl.sourceforge.net/project/ngrep/v1.48.3/
  25. https://deac-riga.dl.sourceforge.net/project/ngrep/v1.48.3/
  26. https://downloads.sourceforge.net/project/ngrep/v1.48.3/
  27. https://excellmedia.dl.sourceforge.net/project/ngrep/v1.48.3/
  28. https://freefr.dl.sourceforge.net/project/ngrep/v1.48.3/
  29. https://gigenet.dl.sourceforge.net/project/ngrep/v1.48.3/
  30. https://ixpeering.dl.sourceforge.net/project/ngrep/v1.48.3/
  31. https://jaist.dl.sourceforge.net/project/ngrep/v1.48.3/
  32. https://kumisystems.dl.sourceforge.net/project/ngrep/v1.48.3/
  33. https://liquidtelecom.dl.sourceforge.net/project/ngrep/v1.48.3/
  34. https://nchc.dl.sourceforge.net/project/ngrep/v1.48.3/
  35. https://netactuate.dl.sourceforge.net/project/ngrep/v1.48.3/
  36. https://netcologne.dl.sourceforge.net/project/ngrep/v1.48.3/
  37. https://onboardcloud.dl.sourceforge.net/project/ngrep/v1.48.3/
  38. https://phoenixnap.dl.sourceforge.net/project/ngrep/v1.48.3/
  39. https://sinalbr.dl.sourceforge.net/project/ngrep/v1.48.3/
  40. https://sitsa.dl.sourceforge.net/project/ngrep/v1.48.3/
Collapse this list.

Number of commits found: 1 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.48.3_1
13 Oct 2026 18:50:34
commit hash: 3d459b72ba03882e4afd74f1a9c02076d1dda80ccommit hash: 3d459b72ba03882e4afd74f1a9c02076d1dda80ccommit hash: 3d459b72ba03882e4afd74f1a9c02076d1dda80ccommit hash: 3d459b72ba03882e4afd74f1a9c02076d1dda80c files touched by this commit
Vladimir Druzenko (vvd) search for other commits by this committer
Author: Lasse Bang Mikkelsen
net/ngrep: Fix Capsicum support

- Fix Capsicum sandbox crash when using -I (offline capture):
pcap_fileno() returns -1 for handles opened with pcap_open_offline().
cap_rights_limit(-1, ...) fails with EBADF rather than ENOSYS,
bypassing the guard and causing ngrep to exit with "unable to limit pcap
pcap descriptor" whenever -I is used.
Cache pcap_fileno(pd) and skip cap_rights_limit() and cap_ioctls_limit()
when the fd is -1.  Offline handles do not need Capsicum fd sandboxing
at this point since the file is already open; live captures on a BPF
device are unaffected.

- Fix USE_CAPSICUM always defined:
patch-configure.ac never initialises USE_CAPSICUM to "0", so
AC_DEFINE_UNQUOTED emits "#define USE_CAPSICUM" (empty) regardless of
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found: 1