Go Back   FlashFXP Forums > > > >

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-10-2005, 01:21 PM   #1
Mr_X
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 142
Default Service

Type: Utility / Application

Make ioFTPD running as a service

Put this in ioFTPD system dir (where ioftpd.exe is located).
To install service (Automatic Start), type "ioservice -i" (to uninstall: "ioservice -u").
Then start first time service with: "net start ioftpd" (or reboot computer).
The program is warned when ioFTPD crashed or was killed and immediatly restart it.

If you want to use secure connections (SSL/TLS), you have to do this (Thanks to oldino and gpyfsk):
first U have to run ioftp as a service

You must have this in etc\ioftpd.env:
SYSTEMDRIVE=%[environment(SYSTEMDRIVE)]
SYSTEMROOT=%[environment(SYSTEMROOT)]

If they weren't there you have to restart ioftpd

Extract makecert.exe and rsa.bat in scripts\cert

in ioftpd.ini, add this line under FTP_Custom_Commands:
rsa = EXEC ..\scripts\cert\rsa.bat
don't forget to do a SITE CONFIG REHASH

Edit rsa.bat and replace the 2 NAME by your ip/host and then execute command under ioftpd then
u will have new cert under system dir. Double click it and voilà .

Of course don't forget to edit ioftpd settings for SSL/TLS and restart it
If U want 168bit 3DES as in glFTPD, set Encryption_Protocol to TLS and Min_Cipher_Strength and Max_Cipher_Strength to 168


Script page:
makecert and rsa.bat: http://esibruxelles.free.fr/ioservice/ioServiceSSL.zip
http://esibruxelles.free.fr/ioservice/
http://www.inicom.net/pages/en.ioftpd-scripts.php?id=77


Changelog:
0.1: First version
0.2: Bug found (crashes after 150 sec). Just replace exe
0.3: Automatically delete ioftpd.crash.log if exist. Just replace exe
0.4:
* Now instataneously restart ioftpd process if crashed or killed
* There's 2 versions: one that deletes ioftpd.crash.log and another without
Mr_X is offline   Reply With Quote
Old 08-14-2005, 07:09 AM   #2
Mr_X
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 142
Default

I just reuploaded ioServiceSSL.rar and made download link
Mr_X is offline   Reply With Quote
Old 08-14-2005, 01:28 PM   #3
leeson
Member
ioFTPD Foundation User
 
leeson's Avatar
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 31
Default

looks great
i'll try it
leeson is offline   Reply With Quote
Old 08-15-2005, 02:26 AM   #4
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

hmm..
when i do
site rsa
i get this

R] site rsa
[R] 200-
[R] 200-C:\ioFTPD\system>makecert.exe -r -n "CN=10.0.0.2" -b 01/01/2004 -e 01/01/2010 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr CurrentUser -sk 10.0.0.2 -a md5 -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 ioftpd.cer
[R] 200-Error: Save encoded certificate to store failed => 0x3 (3)

any ideas ??

btw, i followed the readme.. so why does it say C:\ioFTPD\system>makecert.exe when its placed in c:\ioFTPD\scripts\cert
?
but i copied it so its both places..

Still dont work.. :/
zOrP is offline   Reply With Quote
Old 08-15-2005, 05:31 AM   #5
Mr_X
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 142
Default

Put makecert.exe in ioftpd system dir and retry "site rsa".

Webpage and first post edited.
Mr_X is offline   Reply With Quote
Old 08-15-2005, 07:15 AM   #6
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

i tried that.. and also tried copying the bat to system dir..

the ioftpd.cer pops up
but same error..
and auth ssl not supported.. :x
zOrP is offline   Reply With Quote
Old 08-15-2005, 10:56 AM   #7
Mr_X
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 142
Default

I succeded creating and installing cert on windows then modifying ioftpd.ini then a restart ioftpd.
Meet me on irc, i'll try to help you: I have nick Mister_X
Mr_X is offline   Reply With Quote
Old 11-08-2005, 10:52 AM   #8
InvisiGod
Member
ioFTPD Foundation User
 
Join Date: Aug 2004
Posts: 32
Default

hmm, tried to install io as a service and i followed ur tut, but when i try to net start ioftpd i get an error which says that ioftpd could not be startet...

i'm using io 5.8.6r

what went wrong?
InvisiGod is offline   Reply With Quote
Old 11-29-2005, 03:48 PM   #9
ekke
Junior Member
 
Join Date: Nov 2005
Posts: 1
Default

in rsa.bat , if you are behind NAT should you enter the "private" ip that the ioftp servar actually running on ( ie 192.168.0.10 ) or the public IP från ur isp that you are using and portforwaring to the private ip ?
ekke is offline   Reply With Quote
Old 11-29-2005, 05:13 PM   #10
Mr_X
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 142
Default

it's not very important (it's what i think). And i used my computer's name for the certificate. You can use everything you want, it's just a name.
Mr_X is offline   Reply With Quote
Old 01-28-2006, 11:20 AM   #11
Mr_X
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 142
Default

I updated instructions to install SSL/TLS to ioftpd running as a service.
Mr_X is offline   Reply With Quote
Old 03-07-2006, 01:42 AM   #12
void4ever
Junior Member
 
Join Date: Nov 2005
Posts: 27
Default

I'm having an issue with certain scripts (namely alcobot) not seeing the messagewindow when ioFTPD is run as a service.

I tried adding WindowName = ioFTPD::MessageWindow to my INI hoping it wouldn't get lost in the mix but it still does.

I can only assume that because it's running as a service it's taking on ioservices window name? Because if i remove the service and run ioFTPD by itself it works just fine.

So my question, is it possible ioftpd is taking on ioservices window name, and if it is, what is that window name so i can modify the alcobot settings.

If thats completely off base does anyone have any ideas?
void4ever is offline   Reply With Quote
Old 03-07-2006, 04:10 AM   #13
EwarWoo
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 462
Default

Make sure the eggdrop and the ioFTPD are running from the same account.
You'll prolly find ioFTPD is running as SYSTEM and the bot as [USERNAME].
They're in a different shared memory space so cant see each other if using different accounts.
EwarWoo is offline   Reply With Quote
Old 03-07-2006, 01:00 PM   #14
void4ever
Junior Member
 
Join Date: Nov 2005
Posts: 27
Default

yes it is running as SYSTEM because it's a service. I was unaware that they couldn't see eachothers memory space in that respect. I appreciate the info, looks like the bot is turning into a service tonight as well :P

Thanks again!

Void4ever
void4ever is offline   Reply With Quote
Old 04-02-2006, 05:25 PM   #15
whocarez2k5
Senior Member
ioFTPD Foundation User
 
Join Date: Jul 2005
Posts: 147
Default

@MR X
I followed your SSL guide and i did't everything like said in readme but when i logon i get this msg:

[1] 220 FTP Server ready.
[1] AUTH SSL
[1] 504 AUTH SSL unsupported.

I have set ioftpd.ini like this

Require_Encrypted_Auth = *
Require_Encrypted_Data = *
Certificate_Name = my.ip.stands.here
Explicit_Encryption = True
Encryption_Protocol = SSL3
Min_Cipher_Strength = 128
Max_Cipher_Strength = 256

What have i done so far:
Installed io as service --> working perfect
Added lines to ioftpd.env
Created cert
Installed cert
Changed ioFTPD.ini (see above)
Changed SSL/TSL settings ftp program (AUTH SSL)
Started io and nothing happends

What am i doing wrong?

:update:
After alot of reading i noticed that for many a system reboot solved problem and it did for me also

Only problem atm is that some 1 connects to server there isn't any msg displayed when he is not on a SSL connection.
Any ideas?

instead off error msg to use ssl i get this

[2] PASS (hidden)
[2] 530 Login failed: Invalid password.
whocarez2k5 is offline   Reply With Quote
Reply

Tags
ioftpd, replace, restart, service, start


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
FlashFXP Behind Uni Proxy Problems... Idyll General Discussion 1 02-07-2005 06:11 PM
site msg in ioA peorth WarC's scripts 5 01-22-2003 09:22 PM


All times are GMT -5. The time now is 03:02 AM.

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