Slashdot Mirror


TCP/IP Connection Cutting On Linux Firewalls

Chris Lowth writes "Network security administrators sometimes need to be able to abort TCP/IP connections routed over their firewalls on demand. This would allow them to terminate connections such as SSH tunnels or VPNs left in place by employees over night, abort hacker attacks when they are detected, stop high bandwidth consuming downloads - etc. There are many potential applications. This article describes how a Linux IPTables based firewall/router can be used to send the right combination of TCP/IP packets to both ends of a connection to cause them to abort the conversation. It describes the steps required to perform this task, and introduces a new open-source utility called 'cutter' that automates the process."

8 of 233 comments (clear)

  1. great by mike_scheck · · Score: 5, Insightful

    So now I don't just have to worry about losing my vpn into work in the middle of the night because of some unavoidable packet loss, but also because of some automagic utility that people will throw into place for my benefit. Will the "features" never stop?

    1. Re:great by ColdGrits · · Score: 5, Insightful

      Or we just employ proper secutiry procedures, rather than relying upon a script running twice a day to kill off connections (let's face it, the original suggestion, namely run this twice a day, is pointless - the intruder woudl already have been in, done whatever they were doing, and gone long before the script dropped their connection. Yes, you'd have a nice shiny log to say "J00 waz 0wn3d", but it's a bit late by that point...

      The actual killing of connections, now, THAT is a useful tool where your intrusion detection has detected an active intrusion (or intrusion attempt). But that's not what was being discussed in this subthread :)

      --
      People should not be afraid of their governments - Governments should be afraid of their people.
  2. Re:Would be handy by ColdGrits · · Score: 4, Insightful

    Which is all well and good if your organisation is strictly a 9-5 place.

    However, given that a hell of a lot of places run 24/7, when woudl you propose running said script in their cases?

    --
    People should not be afraid of their governments - Governments should be afraid of their people.
  3. Re:fuckwit? I don't think so. by tomhudson · · Score: 4, Insightful
    By definition, if it's a 24/7 operation, you wouldn't be terminating tcpip connections at all...</quote>

    Oh, come on, you can have your web server and ftp server up 24/7, and terminating connections twice every day isn't going to have much effect on legit users, unless you're hosting isos, in which case they'll just have to restart their ftp client and resume from where they left off.

    the web server can be shut down and restarted every hour with no effect on users - http is, after all, a connectionless protocol, and on todays machines, it only takes 3 to 4 seconds to shut down and restart apache.

    Also, with the newer high-latency DDOoS attacks, this would be a good way to stop them :-)

    Just because you don't see the utility of something like this right off doesn't mean there is no use, or that it can't be adapted to certain situations.

  4. Can of Cron and a Script? by Line_Fault · · Score: 3, Insightful

    I don't see how this is really that much different than running a script that intermittently drops access to certain ports.

    Why do you need to ask either side of a tcp connection to abort? Shouldn't the fact that the connection is lost be enough?
    If you're trying to stop large downloads run a usage tracking app to a database and temporarily block the IP. Geez.

    I, like many people here, develop software. But I have to say, in this case, is this really needed? It just seems like it would be just another thing to test, configure, manage and keep up to date.

  5. An idea by d3faultus3r · · Score: 3, Insightful

    Instead of running the script once after everyone left, why not combine it with some kind of intrusion detector so that it only runs when there's suspicious activity. This would prevent accidently kicking people off and would actually stop attacks completely. You can't crack something that isn't connected after all.

    --
    read my blog
    musings on politics and technol
  6. Re:Would be handy by radish · · Score: 3, Insightful

    If you have internal desktops visible to the outside world you have bigger problems...

    --

    ---- Den ene knappen er powerknapp, den andre er Bender voice knapp "Bite My Shiny Metal Ass"

  7. Re:Would be handy by tomhudson · · Score: 4, Insightful
    If your security at work consists of a Linux box running iptables, I would be scared.</quote>

    If the box is running only the minimum of services, only allows incoming connections that are established & related, doesn't allow connections from a blacklist of known bad ip blocks, etc., and has someone checking the logs on a regular basis, requires external access through a second box, doesn't have a bunch of /virus-laden internal machines/windows boxes/ on the internal network to serve as zombies for internal attacks (went through that once, all the sales reps lost their windows boxes, cd-roms and floppy drives the same day. They bitched for a while, but they got used to linux) :-), what's the problem?