Results 1 to 5 of 5

Thread: Security Application to Shutdown Computer After Failed Attempts

  1. #1
    Join Date
    Oct 2007
    Beans
    182

    Security Application to Shutdown Computer After Failed Attempts

    Hello,
    I am planning on opening some ports on my home firewall to access my Ubuntu machine via VPN. As a security measure I would like to only allow 2 password attempts. If those two attempts fail then I would like for the machine to power down.

    Is there an application that will do this for me?

    Thanks for any feedback.
    CPU:AMD Turion(tm) 64 X2 Mobile Technology TL-52*slot: Socket S1,1600MHz*RAM: DIMM DDR2 667 MHz X 2 1GB*HDISK: Western Digital ATA Disk (320GB)*video: nVidia Geforce Go 6150 clock: 66MHz*wifi: Broadcom Corporation BCM4311
    eth0: nVidia MCP51

  2. #2
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,769
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Security Application to Shutdown Computer After Failed Attempts

    Quote Originally Posted by chiques View Post
    Hello,
    I am planning on opening some ports on my home firewall to access my Ubuntu machine via VPN. As a security measure I would like to only allow 2 password attempts. If those two attempts fail then I would like for the machine to power down.

    Is there an application that will do this for me?

    Thanks for any feedback.
    I'm not so sure about shutting down the machine, though you could script it yourself based on the output of an application like fail2ban. Personally, I would use fail2ban to block the connection attempt there is really no need to shut down the machine.

    Here is some relevant documentation on setting up fail2ban for OpenVPN http://www.fail2ban.org/wiki/index.php/OpenVPN

    hope that helps.

  3. #3
    Join Date
    Oct 2007
    Beans
    182

    Re: Security Application to Shutdown Computer After Failed Attempts

    Quote Originally Posted by Dangertux View Post
    I'm not so sure about shutting down the machine, though you could script it yourself based on the output of an application like fail2ban. Personally, I would use fail2ban to block the connection attempt there is really no need to shut down the machine.

    Here is some relevant documentation on setting up fail2ban for OpenVPN http://www.fail2ban.org/wiki/index.php/OpenVPN

    hope that helps.
    Hi Dangertux,
    Thanks for the response. It sounds like blocking the connection is more practical. I have an inexperienced security question though:

    Is it common that an attacker would change their IP address? If the attacker has infinite IP addresses, would this allow for infinite password entries until the log in is cracked?

    By shutting down the machine, this would make future attacks impossible until I powered it back on.

    Thanks in advanced for any comments.
    CPU:AMD Turion(tm) 64 X2 Mobile Technology TL-52*slot: Socket S1,1600MHz*RAM: DIMM DDR2 667 MHz X 2 1GB*HDISK: Western Digital ATA Disk (320GB)*video: nVidia Geforce Go 6150 clock: 66MHz*wifi: Broadcom Corporation BCM4311
    eth0: nVidia MCP51

  4. #4
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,769
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Security Application to Shutdown Computer After Failed Attempts

    Quote Originally Posted by chiques View Post
    Hi Dangertux,
    Thanks for the response. It sounds like blocking the connection is more practical. I have an inexperienced security question though:

    Is it common that an attacker would change their IP address? If the attacker has infinite IP addresses, would this allow for infinite password entries until the log in is cracked?

    By shutting down the machine, this would make future attacks impossible until I powered it back on.

    Thanks in advanced for any comments.
    In theory your statement is correct. However the attacker does not have infinite IP addresses, and he/she will realistically get 2 to 3 tries per IP address, have to change IP addresses (assuming they even have more than one, they're not using a home connection more than likely a compromised machine elsewhere) which will take a few minutes. The point is it will slow down the process so much the system will no longer provide a positive return on investment for the attacker.

  5. #5
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Security Application to Shutdown Computer After Failed Attempts

    An additional point to consider: while the default duration of a fail2ban block is set at 10 minutes, it's quite simple to configure it to block for a longer interval -- for instance, one second less than 24 hours. That would get rid of many would-be intruders for a full day.

    I have to maintain an open server to support my little business, and use fail2ban with its default 10-minute setting. It has reduced the number of break-in attempts each day from several hundred to only about 30 (that is, three individuals making 10 attempts each before fail2ban shuts them out; they don't return after 10 minutes, but just go elsewhere).

    Examine your /var/log/auth.log file after making several deliberate log-in failures to see what kind of information it makes available about the failures. You can then set up fail2ban using that information, or create your own script to force a full shutdown, as you prefer.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

Tags for this Thread

Bookmarks

Posting Permissions

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