Find the answer to your Linux question:
Results 1 to 6 of 6
Hi everyone. I have a problem with vsftpd I want to block IP for vsftpd. I installed debian in virtualbox. for block I tried /etc/hosts.deny but still there is problem. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4

    How to IP ban for vsftpd


    Hi everyone.
    I have a problem with vsftpd

    I want to block IP for vsftpd. I installed debian in virtualbox.
    for block I tried /etc/hosts.deny but still there is problem.

    How can I block in /etc/hosts.deny ?

  2. #2
    Just Joined!
    Join Date
    Feb 2011
    Posts
    23
    Cheleby,
    I don't believe that hosts.deny is enabled by default. Check your vsftpd.conf to see if hosts.deny is enabled.

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4
    Quote Originally Posted by willnoit View Post
    Cheleby,
    I don't believe that hosts.deny is enabled by default. Check your vsftpd.conf to see if hosts.deny is enabled.
    I checked to vsftpd.conf but I didn' see hosts.deny in that.

  4. #4
    Linux Newbie objuan's Avatar
    Join Date
    Jul 2006
    Location
    california
    Posts
    234
    Cheleby,
    add the hostname or ipaddress to the /etc/hosts.deny file.
    --------------------------
    Linux is the FORCE

  5. #5
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4
    Quote Originally Posted by objuan View Post
    Cheleby,
    add the hostname or ipaddress to the /etc/hosts.deny file.
    I added but not working. I tried :

    vsftpd : 192.x.x.x
    192.x.x.x

  6. #6
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    You more than likely will need to restart your networking.
    /etc/init.d/network restart
    Might even want to restart vsftpd also.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

Posting Permissions

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