Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Peter 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
-
See this thread about changing the FTP port:
http://forums.contribs.org/index.php?topic=13435.msg50887#msg50887
-
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.......
-
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
-
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
-
Thanx Charlie,
It works on passive mode, just another month and my ports wil be open.
I am happy now.