Results 1 to 9 of 9

Thread: How can I stop/kill existing TCP connections?

  1. #1
    Join Date
    Jun 2005
    Location
    Karlsruhe, Germany
    Posts
    44

    Question How can I stop/kill existing TCP connections?

    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:
    Code:
    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

  2. #2
    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...

  3. #3
    Join Date
    Jun 2005
    Location
    Karlsruhe, Germany
    Posts
    44
    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

  4. #4
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    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
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  5. #5
    Quote Originally Posted by samoht View Post
    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.

  6. #6
    I do not use cutter any more but kill the DSL-connection via cronjob with the command

    killall -1 pppd

    Best regards,
    Thomas

  7. #7
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    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

  8. #8
    Quote Originally Posted by samoth View Post
    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?
    Last edited by piezomotor; 13-01-2008 at 05:45.

  9. #9
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    423
    Hello,
    Quote Originally Posted by samoht View Post
    my daughter is spending to much time in websurfing and ICQ chatting and I want to limit this.
    have you finde a Solution?

    Thanks.

Similar Threads

  1. FTP Problem
    By smallkeung in forum WL-500g Q&A
    Replies: 9
    Last Post: 16-07-2005, 17:05
  2. LAN devices lose connectivity?
    By tomilius in forum WL-500g Q&A
    Replies: 11
    Last Post: 26-03-2005, 22:51
  3. Security Scan: Port 80 Closed, Not Blocked
    By tomilius in forum WL-500g Q&A
    Replies: 10
    Last Post: 28-02-2005, 15:27
  4. Firmware v1.8.1.7 CR2 [Oleg] - updated ( CR2a )
    By Oleg in forum WL-500g Firmware Releases
    Replies: 69
    Last Post: 08-12-2004, 10:01
  5. icmp bloking ...
    By Kronos in forum WL-500g Q&A
    Replies: 0
    Last Post: 03-05-2004, 02:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •