Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to cut and kill tcp connections?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 513

PostPosted: Sun Jan 26, 2020 12:48 am    Post subject: how to cut and kill tcp connections? Reply with quote

i found the programm "cutter"

Code:
cutter
usage: cutter ip [ port [ ip [ port ] ] ]


so i try
Code:
cutter 111.125.208.20 52155 192.168.0.1 3003
openning /proc/net/ip_conntrack: No such file or directory


i have see this connection in tcptrack, established 1641m

what do i wrong?

how do i kill or cut this connection?
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1959
Location: Frankfurt, Germany

PostPosted: Sun Jan 26, 2020 1:28 am    Post subject: Reply with quote

  1. Have you read the documentation: http://www.digitage.co.uk/digitage/software/linux-security/cutter?

  2. You didn't tell us anything about your setup - so I don't know where and how you issued the cutter command. Documentation says:
    Quote:
    cutter is not designed to work on the systems hosting the server or client using the connection, it only works on a linux firewall or router over which the connection is made, and it must be run by the root user of the firewall

    Did you start cutter on a firewall or a rooter? As root?

  3. Please tell us what you want to achieve. It's likely that there are better tools and techniques to reach your goals. Usage of a tool like cutter is unusual. It might be the right tool if you're a firewall or network stack developer.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44900
Location: 56N 3W

PostPosted: Sun Jan 26, 2020 1:41 am    Post subject: Reply with quote

SarahS93,

Code:
whois 111.125.208.20
shows that the net block that IP belongs to is in India.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 513

PostPosted: Sun Jan 26, 2020 10:31 pm    Post subject: Reply with quote

i have try to run cutter on a router.

i think i should try tcpkill
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1847

PostPosted: Mon Jan 27, 2020 10:41 am    Post subject: Reply with quote

I'd simply insert an iptables rule with -j REJECT. It makes your firewall respond with RST flagged packet instead of ACK which informs the sender that an error occurred and the connection is not valid and can't be used.
Since iptables rules can match packets by source ip and port and destination ip and port, you are able to target a service, a client talking to your service or even a particular connection, by adding more or fewer matches as you need it.
Inserting a rule to INPUT will reset your client's end, inserting a rule to OUTPUT will reset your end of connection (of course source/destination are swapped in those chains)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum