PDA

View Full Version : extemely annoying!


MidKnight
04-29-2003, 10:40 AM
for some reason the server keeps closing down or something, like, when connecting to it, its refused, but if you wait for about 3 minutes it start working again.

This keeps happening between appx 15min to 30min

anyone know what might be happening?

darkone
04-29-2003, 11:17 AM
Disable Service_Update scheduler event & make sure that you're running the latest version (4.6.1 or 4.6.2)

MidKnight
04-29-2003, 08:31 PM
is this done by just deleting this line?

Service_Update = 10,30,50 * * * &Service_Update

neXus
04-29-2003, 08:50 PM
just write an ; in front of this line

MidKnight
04-29-2003, 08:51 PM
whats the purpose of this line?

Mouton
04-29-2003, 11:06 PM
check if your IP has changed

MidKnight
04-30-2003, 04:01 AM
ok that has seemed to slow it down a bit, but its still doing it. anymore ideas please?

Sup3rm4n
04-30-2003, 10:04 AM
try disable your scheduled task one by one and se which one is causing the problem!!

MidKnight
05-01-2003, 04:43 AM
i have nothing in scheduled section at all, and its still doing it

Sup3rm4n
05-01-2003, 04:53 AM
what isp do you have a what connection??

And what os?

MidKnight
05-01-2003, 04:55 AM
w2k3, 10Mbit

Zer0Racer
05-01-2003, 06:15 AM
I think more info is needed here.

Please show your devices and services settings (to sort out which ports are used where) and other things that may be relevant. Does your ISP provide you with permanent IP or is it configured by DHCP? Are you using scripts with ioFTPD? In that case.. which ones? What do you mean exactly with "server closes down or something"? Do you get login incorrect (which could be an ident issue) or do you get connection refused? Firewall? Behind router?

Etc. etc.

MidKnight
05-01-2003, 08:43 PM
Static IP. and what i mean by serer closes down is when you try and connection (whether its inet users, or over LAN), the connection is refused, then a few to 5min later its online again.

But remember it can't have anything to do with my inet connection, because i get refused connection when connecting over LAN. it is something in ioFTPD thats doing it

---
[ioFTPD]
Ftp_Login_Attempts = 10
Hide_Tray = False
Cache_Max = 100 # Maximum number of cookie files to cache
Directory_Cache_Max = 5000 # Maximum number of directories to cache
TCL_Pool_Size = 10
Read_Asynchronous = True
Double_Click = https://127.0.0.1:10000/
Process_Priority = High # (Idle/Normal/High/Realtime)
Worker_Thread_Min = 10 # Minimum amount of worker threads
Worker_Thread_Max = 20 # Maximum amount
Worker_Thread_Priority = Normal # (Idle/Lower/Low/Normal/High/Highest/Critical)
Io_Thread_Min = 3 # Io Threads
Io_Thread_Priority = High # (Idle/Lower/Low/Normal/High/Highest/Critical)
LogIn_TimeOut = 15 #
Idle_TimeOut = 300 #


[Locations]
Password_File = ..\etc\passwd
Group_File = ..\etc\group
User_Files = ..\users
Group_Files = ..\groups
Log_Files = ..\logs
Cache_Files = ..\cache

Ftp_Messages = ..\text\ftp
Telnet_Messages = ..\text\telnet
Html_Files = ..\text\http

Permission_DB = ..\etc\ioftpd.db
Default_Vfs = ..\etc\DEFAULT.vfs
Environment = ..\etc\ioftpd.env


##################### DEVICES ########################

##
#
# HOST <Host> = External host. Address that is shown to clients.
# PORTS <Begin-End> = Ports to use for transfers. May contain comma seperated list of port ranges.
# RANDOM <True/False> = Use ports in random order
# BIND <Host> = Internal host. If specified, connections are bind to this address instead of HOST.
#
#


[Any]
##
#
# This device allows connections from any local ip
#

Host = <dynamic host name> (edited this out)
Ports = 1401-1500
Bind = 192.168.0.152

[Nat]
##
#
# This is NAT device example, where External (Internet) Ip is 212.146.42.251 and Internal (Lan) ip is 192.168.1.10
#

Host = <dynamic host name>
Ports = 1401-1500
Bind = 192.168.0.152


################## END OF DEVICES ####################







##################### SERVICES #######################

[FTP_Service]
Type = FTP
Listen_Device = Any
Port = 27015
Description = My FTP
MaxUsers = -1
Encryption = TLS
Allowed_Users = *
Req_Encrypted_Auth = !*
Req_Encrypted_Data = !*
Certificate = ..\etc\ioFTPD-rsa.pem
;Get_External_Ident = FALSE
;Data_Devices =
;Random_Devices =

[Nat_FTP_Service]
Type = FTP
Listen_Device = Nat
Port = 27015
Description = My FTPP
MaxUsers = -1
Encryption = TLS
Allowed_Users = *
Req_Encrypted_Auth = M !*
Req_Encrypted_Data = !*
Certificate = ..\etc\ioFTPD-rsa.pem
;Data_Devices =
;Random_Devices =

[Telnet_Service]
Type = Telnet
Listen_Device = Any
Port = 10001
Description = My Telnet Service
Allowed_Users = T !*
MaxUsers = 10


[HTTP_Service]
Type = HTTP
Listen_Device = Any
Port = 10000
Description = My HTTP Service
Allowed_Users = H !*
MaxUsers = 50
Encryption = SSL
Certificate = ..\etc\ioFTPD-rsa.pem


################## END OF SERVICES ###################





[Network]
Services = FTP_Service Telnet_Service HTTP_Service

Nagle = False # Enable/Disable TCP Nagle algorithm
Ident_Lookup = True # Enable/Disable ident lookup (RFC1413)
Ident_Timeout = 15 # Set ident timeout
Hostname_Lookup = True # Hostname reverse lookup

Identity_Cache_Validity = 1800 # Seconds cached identity is valid
Suggested_Identity_Cache_Size = 256 # Maximum cached identities

Ftp_Send_Buffer = 16384 # FTP Data send buffer size
Ftp_Receive_Buffer = 16384 # FTP Data receive buffer size
Max_Send_Size = 65536 # Max bytes to send at once
Internal_Transfer_Buffer = 65536 # Internal transfer buffer size




[Sections]
## Maximum of 10 different credit sections ##
#
# <alias> = <credit section #> <path>
#

MAGATOK = 0 *




[VFS]
###
# Default attributes for files & directories
#
# Required Parameters: <filemode> <owner uid>:<owner gid>
#

Default_Directory_Attributes = 755 0:0
Default_File_Attributes = 644 0:0

###
# Command specific rules
#
Modify_Stats_On_Delete = False


###
# Detailed permissions for directories
#
# priviledge = <virtual path> <rights>
#
#

Upload = /-=Upload=-/* *
Upload = /-=Requests=-/* *
Resume = * *
Download = /-=Upload=-/MidKnight/* *
Download = /-=Upload=-/* M !*
Download = * *
MakeDir = /-=Upload=-/* *
MakeDir = /-=[Requests]=-/* *
RemoveDir = /-=Upload=-/* *
RemoveDir = /-=Requests=-/* *
Rename = * 1VM
RenameOwn = * *
Overwrite = * VM
Delete = /-=Upload=-/* *
Delete = /-=[Requests]=-/* *
Delete = * !*
DeleteOwn = * *


[Reset]
WeeklyReset = Monday
MonthlyReset = 1st


[Scheduler]
###
# Scheduler
#
# Event = <minutes> <hours> <day of week> <day of month> Command
#
# Internal Commands:
#
# &Reset : Resets upload/download counters
# &Service_Update : Reloads devices and Restarts services, if bind ip of service has changed
#
;Reset = 0 0 * * &Reset
;Service_Update = 10,30,50 * * * &Service_Update


[Events]
;OnUploadError = c:\progra~1\ioFTPD\scripts\FTPLogger.exe
OnUploadComplete = c:\progra~1\ioFTPD\scripts\FTPLogger.exe
;OnResume =
;OnUpload =
;OnFtpNewDir = ..\scripts\newdir\newdirlog.itcl
;OnFtpDelDir =
OnFtpLogIn = ..\ioA\ioA.exe logon
;OnTelnetLogIn =
;OnHttpLogIn =
;OnServerStart =
;OnServerStop =



[Pre]
;stor = ..\scripts\newdir\banfile.itcl
;mkd = ..\scripts\newdir\bandir.itcl
;mkd = ..\scripts\premkd.itcl



[Post]
;mkd =
;rmd =
;stor =
;dele =



[Scripts]
## SITE <script> <parameters>
#
# !file = Show file
# @string = Alias
# %file = Execute file (translate cookies)
# file = Execute file
#
NEW = ..\scripts\newdir\newdir.itcl
HELP = !..\help\help.msg
CHANGELOG = !..\changelog
#TEST = ..\scripts\test.itcl
TEST = ..\scripts\test.bat
WKUP = @stats wkup
nuke = ..\ioA\ioA.exe nuke
unnuke = ..\ioA\ioA.exe unnuke
nukes = ..\ioA\ioA.exe nukes
unnukes = ..\ioA\ioA.exe unnukes
request = ..\ioA\ioA.exe request
reqfilled = ..\ioA\ioA.exe reqfilled
reqdel = ..\ioA\ioA.exe reqdel
pre = ..\ioA\ioA.exe pre
invite = ..\ioA\ioA.exe invite
newdate = ..\ioA\ioA.exe newdate
ioaver = ..\ioA\ioA.exe ioaver
msg = ..\ioA\ioA.exe msg
wipe = ..\ioA\ioA.exe wipe
give = ..\ioA\ioA.exe give
take = ..\ioA\ioA.exe take
search = ..\ioA\ioA.exe search
rescan = ..\ioA\ioA.exe rescan
rescanall = ..\ioA\ioA.exe rescanall
onel = ..\ioA\ioA.exe onel
sfv = ..\ioA\ioA.exe sfv
size = ..\ioA\ioa.exe size
syslog = ..\ioA\ioa.exe syslog
errlog = ..\ioA\ioa.exe errlog
cmdlog = ..\ioA\ioa.exe cmdlog
weekly = ..\ioA\ioa.exe weekly

[Ftp-Permissions]
## SITE <cmd> ##
#
# 'M' - MASTER
# 'V' - VFS ADMINISTRATOR
# 'G' - GROUP LOCK (Administrator with this flag, can only edit users in his primary group)
# 'F' - FXP DENIED (DOWNLOAD)
# 'f' - FXP DENIED (UPLOAD)
# 'L' - SKIP MAX USERS PER SERVICE CHECK
#
#
new = !A *


[Ftp-SITE-Permissions]
adduser = 1GM
renuser = 1M
deluser = 1GM
gadduser = 1GM
grpadd = 1M
grpdel = 1M
grpren = 1M
grpnfo = 1M
renuser = 1M
kick = 1M
addip = 1GM
delip = 1GM
tagline = !A *
passwd = !A *
chgrp = 1M
who = !A *
chown = MV
chmod = !A *
config = M
uinfo = 1GM
users = 1GM
invite = *
ioaver = 1M
sfv = 1M
msg = *
newdate = 1M
nuke = 1M
nukes = *
unnuke = 1M
unnukes = *
request = *
reqfilled = *
pre = M
wipe = 1MV
take = 1MV
give = 1MV
search = *
rescan = 1MVS
rescanall = 1MVS
onel = *
size = 1M
syslog = 1M
errlog = 1M
cmdlog = 1M
weekly = 1MV

[Change-Permissions]
admingroup = 1M
ratio = 1GM
vfsfile = M
flags = 1M
credits = 1M
passwd = 1GM
stats = M
homedir = 1GM
tagline = 1GM
groupslots = 1M
groupdescription = 1M
groupvfsfile = M



[Telnet-Permissions]
adduser = 1GM
renuser = 1M
deluser = 1GM
gadduser = 1GM
grpadd = 1M
grpdel = 1M
grpren = 1M
grpnfo = 1M
renuser = 1M
kick = 1M
addip = 1GM
delip = 1GM
tagline = *
passwd = *
stats = *
chgrp = 1M
config = M
putlog = MT
uinfo = 1GM
who = *


[Http-Permissions]
users = 1GM
uinfo = 1GM
addip = 1GM
delip = 1GM
config = M

Zer0Racer
05-02-2003, 11:43 AM
Your conf seems OK. Only thing I can think of that may cause problems is the "Ports = 1401-1500". Number of data transfer ports could be low. Those could easily get filled up if not closed properly (fast enough) and/or if many files are transferred at the same time (or many small files after one another). Try setting Ports to 1401-2400.

And also the "MaxUsers = -1" should work, but you never know. Try positive number and see if problem remains.

Last but not least.. Since your setup goes through a router that gets it's IP from DHCP there could a problem when the router updates it's DHCP lease and/or gets new IP. The scheduled task Service_Update is there to cover for such changes. Do you know how often the DHCP lease is renewed? You could try enabling the Service_Update task and setting it to run with closer interval than the DHCP renew. But this should of course not interfere when you connect directly to LAN IP.

You could try running ioFTPD only on your LAN for a few hours (remove the dynamic IP for the [Any]-device) and see if you still get problems with connecting to ioFTPD. If it seems to work OK, it should be some problem with the router. If same problem appears it's something else. :)

Hmm.. tough one.

MidKnight
05-02-2003, 08:02 PM
i'll give this a try, thanks for your help

MidKnight
05-03-2003, 02:13 AM
i haven't had time to try this yet, but i was thinking, i can't see how the passive ports would be a problem, as they dont get used for the connection, port 27015 is the connecting port

Zer0Racer
05-03-2003, 04:47 AM
I only pointed out what could cause problems. I'm not sure how ioFTPD behaves if all data transfer ports are used and a new user wants to connect. He too has to get transfer ports assigned to his connection, when listing etc. But yes, the obvious thing is the connection port. But then again, other things can make programs in general to stop responding.

MidKnight
05-03-2003, 04:50 AM
i just changed the ports and its happened already. :confused: