Tag Archives: kill

Conntrack: how to kill established connection

root@nozdrik.ru /home/alter # conntrack -L -p tcp --dport 3306 --src «10.0.0.21»
tcp      6 428865 ESTABLISHED src=10.0.0.21 dst=10.0.0.16 sport=44615 dport=3306 packets=10 bytes=751 src=10.0.0.16 dst=10.0.0.21 sport=3306 dport=44615 packets=9 bytes=971 [ASSURED] mark=0 secmark=0 use=2
conntrack v0.9.14 (conntrack-tools): 1 flow entries have been shown.
root@nozdrik.ru /home/alter # conntrack -D -p tcp --dport 3306 --src «10.0.0.21»
tcp      6 428860 ESTABLISHED src=10.0.0.21 dst=10.0.0.16 sport=44615 dport=3306 packets=10 bytes=751 src=10.0.0.16 dst=10.0.0.21 sport=3306 dport=44615 packets=9 bytes=971 [ASSURED] mark=0 secmark=0 use=2
conntrack v0.9.14 (conntrack-tools): 1 flow entries have been deleted.
root@nozdrik.ru /home/alter # conntrack -L -p tcp --dport 3306 --src «10.0.0.21»
conntrack v0.9.14 (conntrack-tools): 0 flow entries have been shown.