Koozali.org: home of the SME Server

ProFtp starting

Peter

ProFtp starting
« on: January 08, 2003, 11:55:06 AM »
Hello,

I am trying to setup proftp to run on port 2121 because my isp closed 21.

Did the template thing and in its proftp.conf is like:

DefaultRoot             /home/e-smith/files
DefaultServer           on
DenyFilter \*.*/
AllowChmod              false
DisplayFirstChdir       .message
DisplayLogin            welcome.msg
Group                   public
IdentLookups off
MaxInstances            30
ServerAdmin             admin@smitti.mine.nu
ServerIdent             off
ServerName              "ProFTPD e-smith installation"
ServerType              inetd
UseFtpUsers             on
UseReverseDNS off
User                    public
Port                    2121

But if I do a : service proftp start I get the next message :

[root@server etc]# service proftpd start
Starting proftpd: server.smitti.mine.nu - Fatal: Socket operation on non-socket
server.smitti.mine.nu - (Running from command line? Use ServerType standalone' in config file!)
                                                           [ FAILED ]

After this I changed inetd to standalone and it wil start with nop errors.
only thing is I cant reach it from the internet ?

Has some any ideas what I am doing wrong ?

Thanx in advance

Peter

Terry Brummell

Re: ProFtp starting
« Reply #1 on: January 08, 2003, 01:41:13 PM »
See this thread about changing the FTP port:

http://forums.contribs.org/index.php?topic=13435.msg50887#msg50887

Peter

Re: ProFtp starting
« Reply #2 on: January 08, 2003, 07:16:08 PM »
I followed th tread and I have ftp running on port 2100 it works great exept from the Internet and that is my problem..... need acces from the internet

[root@server root]# service proftpd status
proftpd is stopped
[root@server root]#

so i gues there is something wrong in xinetd.conf mine looks like this :

service proftpd
{
 protocol = tcp
 port = 2100
 socket_type = stream
 wait = no
 user = root
 server = /usr/sbin/in.proftpd
}

tried opening port 2100 in the servermanager and a portscan says it is open but no ftp is possible from the internet.

been busy with this for about 7 hours now and i am getting lost.......

Peter

Re: ProFtp starting
« Reply #3 on: January 08, 2003, 10:06:58 PM »
I just found out in the log messages that I can log in but is says :

Jan  8 18:48:58 server proftpd[3291]: server.smitti.mine.nu (80.56.120.178[80.56.120.178]) - Refused PORT 192,168,0,101,6,0 (address mismatch).

I am confused now, the ip 192.168.0.101 is from an internal network behind another sme server?

wat can be the adres mismatch?

Peter

Charlie Brady

Re: ProFtp starting
« Reply #4 on: January 08, 2003, 11:39:15 PM »
Peter wrote:

> I just found out in the log messages that I can log in but is
> says :
>
> Jan  8 18:48:58 server proftpd[3291]: server.smitti.mine.nu
> (80.56.120.178[80.56.120.178]) - Refused PORT
> 192,168,0,101,6,0 (address mismatch).
>
> I am confused now, the ip 192.168.0.101 is from an internal
> network behind another sme server?

What you are seeing is a strangeness of the ftp protocol. It uses two connections, the first one (control) tells where the second one (data) will be. With a masqueraded connection, the control session must be intercepted midstream and the addresses re-written. This is done by a kernel module, which only listens on port 21.

You might find that "passive mode" set in the ftp client works.

Charlie

Peter

Re: ProFtp starting
« Reply #5 on: January 09, 2003, 10:59:35 AM »
Thanx Charlie,

It works on passive mode, just another month and my ports wil be open.
I am happy now.