Skip to content

Instantly share code, notes, and snippets.

View kylelix7's full-sized avatar
💭
forward is forward

Kyle Li kylelix7

💭
forward is forward
View GitHub Profile
@kylelix7
kylelix7 / gist:25b68afd065b3652d71e46696ca1a6f8
Created November 15, 2016 22:53 — forked from vdw/gist:09efee4f264bb2630345
Kill tcp connection with tcpkill on CentOS

Install tcpkill
yum -y install dsniff --enablerepo=epel

View connections
netstat -tnpa | grep ESTABLISHED.*sshd.

Block with ip tables
iptables -A INPUT -s IP-ADDRESS -j DROP

Kill connection