Log in

Bekijk de volledige versie : How can I stop/kill existing TCP connections?



samoht
05-02-2006, 15:58
Hi you,

my daughter is spending to much time in websurfing and ICQ chatting and I want to limit this. Therefore I created the following iptables firewall script and made it active via cronjob:


iptables -A FORWARD -s 192.168.1.123 -d 0/0 -j REJECT


After that, web surfing does no longer work. Thats OK. But she is still able to chat via ICQ, if the connection was established before the script became active.

How can I make it work, that exististing TCP connections are killed?

Cheers,
Thomas

crow
06-02-2006, 09:07
You coudl(i dont know how) to block icq port:

Trillian Pro AOL/ICQ Connection
Where the protocol is: TCP
and Where the direction is: Outbound
and Where the remote port is: 443, 5190
Allow It

This is presets from Outpost Firewall that i have use to "Allow" but you have port so you could try to block only port...

samoht
06-02-2006, 11:30
I donīt want to block ICQ at all, only at certain times. Now I use "cutter" to kill the existing connections: http://www.lowth.com/cutter

Thomas

britnet
06-02-2006, 12:42
I'm using Agnitum Outpost Firewall Pro.

There you have a screen with all the connections, and every connection can be stopt by a RightClick and choosing "Stop" or something like that.

http://www.agnitum.de/products/outpost/index.php

piezomotor
07-01-2008, 17:10
I donīt want to block ICQ at all, only at certain times. Now I use "cutter" to kill the existing connections: http://www.lowth.com/cutter

Thomas

Hi Thomas, how did you install it?

I have downloaded cutter-1.03.tgz and saved it on my WL500gP HD, what woould be the next steps?

Thanks.

samoth
07-01-2008, 18:43
I do not use cutter any more but kill the DSL-connection via cronjob with the command

killall -1 pppd

Best regards,
Thomas

al37919
07-01-2008, 19:02
killall -1 pppd
Just to explain. This command sends signal 1 a.k.a. -SIGHUP to the pppd which results in reconnection to the provider, so that all the existing connections are broken

piezomotor
08-01-2008, 15:53
I do not use cutter any more but kill the DSL-connection via cronjob with the command

killall -1 pppd

Best regards,
Thomas

Hi Thomas, thanks for your prompt reply! I do not have DSL, I use cable modem. How would you suggest modifying this command in my case? Also I do not like killing all the connections. I would like to cut the internet connection to one paricular PC.

How did you install cutter anyway?

WLAN-Fan
15-01-2008, 23:57
Hello,

my daughter is spending to much time in websurfing and ICQ chatting and I want to limit this.
have you finde a Solution?

Thanks.