conntrack - delete connection

From thelinuxwiki
Revision as of 19:29, 17 June 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


List connection to be deleted

# conntrack -L |grep 10.0.0.1
udp      17 123 src=192.168.1.7 dst=10.0.0.1 sport=54231 dport=4500 src=10.0.0.1 dst=66.82.111.149 sport=4500 dport=54231 [ASSURED] mark=0 use=1
conntrack v0.9.14 (conntrack-tools): 114 flow entries have been shown.


Deleting the above connection

# conntrack -D --orig-dst 10.0.0.1
udp      17 123 src=192.168.1.7 dst=10.0.0.1 sport=54231 dport=4500 src=10.0.0.1 dst=66.82.111.149 sport=4500 dport=54231 [ASSURED] mark=0 use=1
conntrack v0.9.14 (conntrack-tools): 1 flow entries have been deleted.