PDA

View Full Version : [Old] ident and ip bans


goom
11-25-2005, 05:28 AM
hello guys, i was reading readme.txt again, and i saw that:

#########
## ban ##
#########
#
# 1 rule per line
# you can put as many line as you want
# if ANY line is matched, the command won't be executed
#
# Syntax:
# ^ means start with
# $ means ends with
#
# Eg: ^127. means starts with 127.; will match 127.*.*.*
# 127 means contains 127; will match 127.*.*.* and *.127.*.* and *.*.127.* and *.*.*.127
# .1$ means ends with .1; will match *.*.*.1
# ^127.0.0.1$
# means IS 127.0.0.1; will match 127.0.0.1 only
# !!! Same applies to ident matching !!!

ip=^80.230.140.66$
ident=^RPG$
ip_ident=^RPG$@^80.230.
#ip=^127.0.0.1$



So, that means, i can ban and ip or a host from my site using ioBanana ?

if yes, how can i set a ban ??

thx

Harm
11-25-2005, 03:30 PM
It looks like you're answering it yourself. Have a look to the excerpt of the readme file you've pasted, everything is there.

goom
11-25-2005, 11:21 PM
It looks like you're answering it yourself. Have a look to the excerpt of the readme file you've pasted, everything is there.


Harm look

i don't know if i'm correct, but if i set


^ 200.200.200.200 <-- so this IP will be banned ? that's it ?

and what i do not understood is, what command should i use to set the ban ??

like

setban ^ 200.200.200.200 ??

Harm
11-26-2005, 10:45 AM
What command ? I suggest "notepad ioBanana.ini" (or "vim ioBanana.ini"). It's only a configuration setting.
You only add lines to ioBanana.ini specifying what you want to match (ident, ip or both) and the regular expression used.

goom
11-26-2005, 11:17 AM
What command ? I suggest "notepad ioBanana.ini" (or "vim ioBanana.ini"). It's only a configuration setting.
You only add lines to ioBanana.ini specifying what you want to match (ident, ip or both) and the regular expression used.

Harm:

i know u're trying help, and aslo know it's real hard chat with a noob. But could u be a little more specific ??

in iobanana.ini i have the option:

## ban ##

so if i add the line
ip=^192.168.1.1$

means it will ban 192.168.1.1 ???


And look, under ioFTPD.ini i added a line like:

[FTP_Pre-Command_Events]
;pass = EXEC C:\Program Files\ioFTPD\scripts\scripts\ioBanana.exe ban

is that right ?

Mouton
11-27-2005, 02:59 PM
Harm:
I'm not Harm, but I care about his mental health, so allow me to try to help you with that.

in iobanana.ini i have the option:

## ban ##

so if i add the line
ip=^192.168.1.1$

means it will ban 192.168.1.1 ???
Yes. As the .ini comments says:
# ^127.0.0.1$
# means IS 127.0.0.1; will match 127.0.0.1 only

So yes, replacing 127.0.0.1 by any IP address will ban this exact IP address.

And look, under ioFTPD.ini i added a line like:

[FTP_Pre-Command_Events]
;pass = EXEC C:\Program Files\ioFTPD\scripts\scripts\ioBanana.exe ban

is that right ?

Read the ioFTPD installation guide here: http://www.inicom.net/pages/en.ioftpd-documentation.php?s=2
Under the point 2. there's a note that explains what does ";" mean in ioFTPD.ini
Quote: ...disabled options/settings are preceeded by a semicolon ";"

So if you want to DISABLE the ioBanana ban option, then yes, leave a ; before that line.
If you want to use it, then remove the ;

Hope this helps.

goom
11-27-2005, 08:16 PM
JESUS...

Mouton

Thank You SOOO MUCH MAN.

Really many thx. I finally got it all working now :PPPPPP

Thx again man !!!!