Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-24-2004, 03:04 AM   #1
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default [REQ] BAN IP (site not user) for UP/DL

I do not know so there with already a script to do that

To ban a IP in DL or UP
example: No rlz can be up on IP banned from the site

glftpd do already that

hum in french...
Un script capable de bannir des ip pour DL ou UP Ã_ partir du site, glftpd gère déjÃ_ cet fonction, ainsi impossible d'uploader des rlz a partir du site vers l'ip ban, je ne suis pas sûr mais je pense que ca n'existe pas encore pour ioFTPD.. Ã_ confirmer
iam is offline   Reply With Quote
Old 08-24-2004, 07:53 PM   #2
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Not possible.

[L] PASV
[L] 227 Entering Passive Mode (ip1,port1)
[R] PORT ip1,port1
[R] 200 PORT command successful.
[R] STOR somefile.ext
[R] 150 Opening ASCII mode data connection for somefile.ext.
[L] RETR somefile.ext
[L] 150 Opening ASCII mode data connection for somefile.ext.

If your site is [R], in this case you could simply catch PORT commands, and return an error if ip1 is banned. But the thing is, if it fails that way, the FTP (FXP) client can simply try it the other way around, and it will work:

[R] PASV
[R] 227 Entering Passive Mode (ip2,port2)
[L] PORT ip2,port2
[L] 200 PORT command successful.
[L] STOR somefile.ext
[L] 150 Opening ASCII mode data connection for somefile.ext.
[R] RETR somefile.ext
[R] 150 Opening ASCII mode data connection for somefile.ext.

In this case, there's no way to block ip1, since we don't see it.

If you want to block all transfers to certain IPs, I suggest a firewall. Very simple then, simply add a custom rule to block all traffic to and from that IP.
Done.
Mouton is offline   Reply With Quote
Old 09-19-2004, 10:13 AM   #3
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

..or... quick and dirty..

block the siteaccess in HOSTS.RULES file with

DENY I xxx.xxx.xxx.xxx "No Access allowed from Site <sitename>"

(you have to restart ioFTPD for that)
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 09-19-2004, 10:52 AM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Hosts.Rules handles control connections, not data connections.
Mouton is offline   Reply With Quote
Old 10-28-2004, 08:04 AM   #5
dink-puller
Member
ioFTPD Foundation User
 
dink-puller's Avatar
 
Join Date: Sep 2004
Posts: 58
Default

I did it like this:

# Detailed permissions for directories
# Custom flags

Download = * D
Upload = * U

All users who can up/download will have these flags.
dink-puller is offline   Reply With Quote
Old 10-28-2004, 12:14 PM   #6
iam
Senior Member
 
Join Date: Mar 2004
Posts: 289
Default

SITE not USEr
iam is offline   Reply With Quote
Reply

Tags
ban, glftpd, pas, rlz, site

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP with xbox some file xfer some don't? Jaz97 General Discussion 8 10-23-2004 04:14 PM


All times are GMT -5. The time now is 06:25 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)