Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Audun on January 26, 2008, 03:49:29 PM

Title: FTP
Post by: Audun on January 26, 2008, 03:49:29 PM
Hello folks!

I just tried setting up an AmiFTPd server on my pegasos machine here. The server runs smoothly from within the local network, I can connect and upload/download files etc. When I ninja-connect to my neighbours internet and ftp to my own server from there I can log in fine, but I can't enter passive mode or do a list. This seems to be a problem with the data-connection ports, which are 1024-2000 if I understand right, that is what my flashfxp client uses on my pc at least and gets refused. I tried opening these ports and also forwarding them all to my server's local ip, no luck. I am using MiamiDX as my TCP stack.

My internets is connected via a router which is running a pppoe connection through a bridged dsl modem. Serv-U servers on pcs here seem to work fine, but they now cheat by using upnp- so I am sure it is possible to somehow do this manually... I just am too clueless about networking. Oh and I'm not behind a NAT.

Does anyone know what I can do to fix this? I appreciate any help I can get!
Title: Re: FTP
Post by: pVC on January 26, 2008, 06:29:44 PM
You've got it otherwise correctly, passive mode uses usually ports from 1024 for data connection and those should be forwarded to correct computer on LAN, but I guess the problem is, that your ftp server tells it's LAN ip address to client ftp. Therefore it only works in your own LAN. To be working, it should tell your router's public IP address instead.

The solutions which comes in my mind quickly... You must have ftpd which would have configurable IP-address setting for passive mode or it would dig out it automatically. Or just use active mode, but then client should have those data ports open. Or connect to internet directly from your server computer instead of using router (MiamiDX can do PPPOE).

The best solution is to have ftpd which digs out the IP-address, but I don't know if any Amiga/MOS server can do it out-of-the-box. BUT it's possible to add such feature to some clients... I'm using wu-ftpd on my Amigas and Pegasos and it has sources available on Aminet. I've added that feature to it myself, so it works behind the router from all computers to outside world. I've also compiled it separately for each computer so that dataports won't overlap and I know which ones to forward from router.

Edit: proftpd seems to have "MasqueradeAddress" setting, which should do the trick. There's a port in Aminet, I'd try if the setting works with it.
Title: Re: FTP
Post by: Audun on January 27, 2008, 10:16:46 PM
Ahh, I understand :] Thank you! I am trying proftpd now, but it is extremely confusing. I have no experience with Unix/Linux type things, so this installation looks like a huge challenge to say the least! Going to work at it though. Good stuff :]