LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to kill a share vnc connection (https://www.linuxquestions.org/questions/linux-security-4/how-to-kill-a-share-vnc-connection-758540/)

bacocr 09-29-2009 05:50 PM

how to kill a share vnc connection
 
So if u use vnc real and u share the vnc to a guest and u give him the password, and after he ends the look, u want to kill him how can u do that on the xterm i know that vncconfig can do it, but i want to know if there is a way to do it by your self, killing the ip or something

thanks

win32sux 09-29-2009 07:34 PM

Welcome to LQ! :)

Quote:

Originally Posted by bacocr (Post 3701029)
So if u use vnc real and u share the vnc to a guest and u give him the password, and after he ends the look, u want to kill him how can u do that on the xterm i know that vncconfig can do it, but i want to know if there is a way to do it by your self, killing the ip or something

I use cutter for this kind of stuff, but I've got a dedicated firewall (and it sounds like you don't). I've never tried cutter on the box to which the connection is established, but it sounds like it's not designed to work that way. So if you don't have a dedicated firewall, maybe try something like tcpkill? It's part of the dsniff package.

BTW, a not-so-elegant alternative is to create an iptables rule which will use the REJECT target to send a RST packet to the IP. This is described on the cutter homepage (just make sure you use the INPUT and OUTPUT chains instead of the FORWARD chain if this isn't a dedicated firewall).


All times are GMT -5. The time now is 12:33 AM.