Home Linux Misc
tcpkill  kills  specified  in-progress TCP connections

Kill all outgoing connection on a port

tcpkill -i eth0 port <port#>


Kill all connection to / from an ip

tcpkill host xxx.xxx.xxx.xxx


kill all between aaa.aaa.aaa.aaa and any host except bbb.bbb.bbb.bbb

tcpkill ip host aaa.aaa.aaa.aaa and not bbb.bbb.bbb.bbb