conntrack - delete connection

From thelinuxwiki
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.