Koozali.org: home of the SME Server

Is it possible To close access to specific IP FTP

Offline mgb

  • *****
  • 558
  • +0/-0
Is it possible To close access to specific IP FTP
« on: April 25, 2012, 07:34:49 AM »
Is it possible To close access to specific IP FTP
 I have a hacking attempts through FTP
deny ip port ftp  *.*.*.*
hosts .deny

 Thank you
Thanks all for helping
Skype yosii2009

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Is it possible To close access to specific IP FTP
« Reply #1 on: April 25, 2012, 08:10:06 AM »
Is it possible To close access to specific IP FTP
 I have a hacking attempts through FTP
deny ip port ftp  *.*.*.*
hosts .deny

 Thank you

Trying to block a specific IP is a waste of time.  Do not use FTP, it is (very) unsafe.  Use SFTP instead.  Check the Forums, there should be many posts about this topic.  There are a few free clients to install on your PC, Filezilla is a good choice with versions for Linux and Windows.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline janet

  • *****
  • 4,812
  • +0/-0
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Is it possible To close access to specific IP FTP
« Reply #3 on: April 25, 2012, 03:17:33 PM »
is not work
 config setprop manta DenyHosts 1.2.3.4
signal-event remoteaccess-update

log*1000000
16:07:27 server proftpd[12378]: 10.72.8.1 (1.2.3.4[1.2.3.4]) - FTP session opened.
Apr 25 16:07:27 server proftpd[12378]: 10.72.8.1 (1.2.3.4[1.2.3.4]) - FTP session closed.
Apr 25 16:08:27 server proftpd[12398]: 10.72.8.1 (1.2.3.4[1.2.3.4])  - FTP session opened.
Apr 25 16:08:27 server proftpd[12398]: 10.72.8.1 (1.2.3.4[1.2.3.4])  - FTP session closed.

 
Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Is it possible To close access to specific IP FTP
« Reply #4 on: April 25, 2012, 03:27:21 PM »
mgb

Quote
is not work
 config setprop manta DenyHosts 1.2.3.4

I am sure the command you used will not work.
You must replace manta with the service you want to affect ie ftp
You replace 1.2.3.4 with the IP you are blocking ie 66.421.38.7
eg
config setprop ftp DenyHosts 66.421.38.7
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Is it possible To close access to specific IP FTP
« Reply #5 on: April 25, 2012, 03:51:05 PM »
config setprop ftp DenyHosts 1.2.3.4
signal-event remoteaccess-update

is work
Thanks all for helping
Skype yosii2009

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Is it possible To close access to specific IP FTP
« Reply #6 on: April 26, 2012, 05:04:13 AM »
Trying to block a specific IP is a waste of time.  Do not use FTP, it is (very) unsafe.

I agree on both counts. mgb says "is work" - but for how long?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Is it possible To close access to specific IP FTP
« Reply #7 on: April 26, 2012, 05:39:57 AM »
mgb

Quote
mgb says "is work" - but for how long?

Yes I agree too with Chris & Charlie, the fix is only temporary until the hackers try from another IP.
mgb, you will only be kept busy entering "blocking rules" over and over as different IP's are used.
You are far better to implement & use ONLY secure protocols ie sftp, Public Private keys for ssh and so on, that provide full security and do not need to be "looked after".
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline calisun

  • *
  • 620
  • +0/-1
Re: Is it possible To close access to specific IP FTP
« Reply #8 on: April 29, 2012, 11:31:57 PM »
Try this contrib, works great for me:
http://wiki.contribs.org/Denyhosts
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Is it possible To close access to specific IP FTP
« Reply #9 on: April 30, 2012, 12:48:31 AM »
Try this contrib, works great for me:
http://wiki.contribs.org/Denyhosts

This contrib deals with SSH logon attempt, not FTP.
Nothing to do with topic.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline calisun

  • *
  • 620
  • +0/-1
Re: Is it possible To close access to specific IP FTP
« Reply #10 on: May 02, 2012, 09:34:30 AM »
If you disable ftp and only allow sftp, will this plugin not catch catch fake sftp attempts?
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite