Long overdue first commit with content
This commit is contained in:
parent
f63ce5bdd8
commit
6cc9d8c72a
92 changed files with 2031 additions and 97 deletions
17
content/en/blog/commands/clean-conntrack-states.md
Normal file
17
content/en/blog/commands/clean-conntrack-states.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: "Clean conntrack states"
|
||||
linkTitle: "Clean conntrack states"
|
||||
date: 2018-03-02
|
||||
description: >
|
||||
Clean conntrack states
|
||||
---
|
||||
|
||||
Here is an example of how to clean conntrack states that match a specific query on a linux firewall :
|
||||
|
||||
{{< highlight sh >}}
|
||||
conntrack -L conntrack -p tcp –orig-dport 65372 | \
|
||||
while read _ _ _ _ src dst sport dport _; do
|
||||
conntrack -D conntrack –proto tcp –orig-src ${src#*=} –orig-dst ${dst#*=} \
|
||||
–sport ${sport#*=} –dport ${dport#*=}
|
||||
done
|
||||
{{< /highlight >}}
|
Loading…
Add table
Add a link
Reference in a new issue