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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

conntrack Command Examples in Linux

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.

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. fdupes: Finds duplicate files in a given set of directories
  2. What is the difference between & (ampersand) and && (double ampersand) while executing simultaneous commands on Linux
  3. fg: Run jobs in foreground
  4. uuid Command Examples in Linux
  5. bpftrace Command Examples in Linux
  6. CentOS / RHEL : How to create a Thinly Provisioned Logical Volume
  7. bb Command Examples (Native Clojure interpreter for scripting)
  8. help2man Command Examples
  9. CentOS / RHEL : How to Set up SFTP to Chroot Jail only for Specific Group
  10. lvconvert Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright