Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: How to block attackers automatically with /etc/hosts.deny (Different Services)

  1. #11
    Junior Member
    Join Date
    Mar 2012
    Location
    Panama City, Panama.
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default



    [root@cisco-ccna scripts]# cat /etc/rsyslog.d/50-default.conf | grep auth
    cat: /etc/rsyslog.d/50-default.conf: No such file or directory
    [root@cisco-ccna scripts]# ls /var/log/
    boot.log cron dmesg.old httpd maillog mysqld.log secure tallylog wtmp
    btmp dmesg fail2ban.log lastlog messages samba spooler vsftpd.log yum.log
    [root@cisco-ccna scripts]#

    I am doomed

  2. #12
    Junior Member
    Join Date
    Mar 2012
    Location
    Panama City, Panama.
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Looks like i'm doomed

    [root@cisco-ccna /]# cat /etc/rsyslog.d/50-default.conf | grep auth
    cat: /etc/rsyslog.d/50-default.conf: No such file or directory
    [root@cisco-ccna /]# ls /var/log/
    boot.log cron dmesg.old httpd maillog mysqld.log secure tallylog wtmp
    btmp dmesg fail2ban.log lastlog messages samba spooler vsftpd.log yum.log
    [root@cisco-ccna /]#

    Maybe i should be working on a Dedicated environment, and not a VM....

  3. #13
    Senior Member Rahul.Patil's Avatar
    Join Date
    Feb 2012
    Location
    Mumbai india
    Posts
    447
    Thanks
    10
    Thanked 46 Times in 43 Posts
    Rep Power
    6

    Default

    sorry , that's my mistake "/etc/rsyslog.d/50-default.conf" this file is available in Ubuntu base system. i have installed rsyslogd in my centos and checked the auth logs store in /var/log/secure and /var/log/messages

  4. #14
    Senior Member Rahul.Patil's Avatar
    Join Date
    Feb 2012
    Location
    Mumbai india
    Posts
    447
    Thanks
    10
    Thanked 46 Times in 43 Posts
    Rep Power
    6

    Default

    Hi,

    you can use Fail2ban is a similar program that prevents brute force attacks against SSH / VSFTPD.
    for more information link

Page 2 of 2 FirstFirst 1 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. NGINX: Block files and extensions with deny all
    By nixGeek in forum Web servers
    Replies: 4
    Last Post: 16th October 2011, 04:32 AM
  2. deny arpspoof using iptables
    By empik in forum Networking, Firewalls and Security
    Replies: 0
    Last Post: 6th November 2010, 05:03 PM
  3. SSH vs. Hosts.Allow!
    By cryingthug in forum Networking, Firewalls and Security
    Replies: 1
    Last Post: 6th June 2010, 02:31 PM
  4. Linux howto allow or deny access by IP address
    By goku in forum Linux software
    Replies: 1
    Last Post: 10th July 2006, 07:44 PM
  5. Sendmail control incoming email to accept, deny, or relay
    By jerry in forum All about FreeBSD/OpenBSD/NetBSD
    Replies: 1
    Last Post: 22nd June 2006, 01:39 PM

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41