• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

conntrack: command not found

by Deepika

The conntrack command is a utility in Linux that is used to manipulate the connection tracking table. The connection tracking table is used by the kernel to keep track of the state of network connections, such as TCP and UDP connections.

To use the conntrack command, you will need to specify the operation that you want to perform on the connection tracking table.

If you encounter the below error while running the command conntrack:

conntrack: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install conntrack
Ubuntu apt-get install conntrack
Arch Linux pacman -S conntrack
Kali Linux apt-get install conntrack
CentOS yum install conntrack
Fedora dnf install conntrack
Raspbian apt-get install conntrack

conntrack Command Examples

1. List all currently tracked connections:

# conntrack --dump

2. Display a real-time event log of connection changes:

# conntrack --event

3. Display a real-time event log of connection changes and associated timestamps:

# conntrack --event -o timestamp

4. Display a real-time event log of connection changes for a specific IP address:

# conntrack --event --orig-src ip_address

5. Delete all flows for a specific source IP address:

# conntrack --delete --orig-src ip_address

Filed Under: Linux

Some more articles you might also be interested in …

  1. “resize2fs: Permission denied to resize filesystem” error while online resize of a filesystem
  2. iSCSI troubleshooting : Targets Not Detected After Reboot
  3. CentOS / RHEL 7 : How to set udev rules for ASM on multipath disks
  4. How to Create a Custom Log File Rotation by logrotate in Linux
  5. btrfs rescue Command Examples in Linux
  6. Glusterfs – Advanced Troubleshooting Tips and Tricks
  7. 10pt loadable: Metric (TFM) file not found
  8. Linux OS service ‘nfs’
  9. mount Command Examples in Linux
  10. chpasswd Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright