
5th May 2006, 00:09
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
FTP Not working
I can ftp to the server fine in my internal network but external it wont work. Plus I cant find the log for the ftp server. And when my server starts I get a warning about there is another ftp server running. Here are the two proftpd config files. # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "ProFTPD Server" ServerIdent on "FTP Server Ready" ServerType standalone DefaultServer on # Port 21 is the standard FTP port. Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 20 # Set the user and group under which the server will run. User nobody Group nogroup # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ # Normally, we want files to be overwriteable. AllowOverwrite on # Bar use of SITE CHMOD by default #<Limit SITE_CHMOD> # DenyAll #</Limit> # A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. <Anonymous ~ftp> User ftp Group ftp # We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp # Limit the maximum number of anonymous logins MaxClients 5 "Sorry, max %m users -- try again later" # We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayFirstChdir .message # Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> </Anonymous> DefaultRoot ~ IdentLookups off Include /etc/proftpd_ispconfig.conf ************************************************** ********* ################################### # # ISPConfig proftpd Configuration File # Version 1.0 # ################################### <VirtualHost xxx.xxx.xxx.3> DefaultRoot ~ AllowOverwrite on Umask 002 </VirtualHost> <VirtualHost xxx.xxx.xxx.4> DefaultRoot ~ AllowOverwrite on Umask 002 <Anonymous /srv/www/web4/ftp> User web4_anonftp Group web4_anonftp UserAlias anonymous web4_anonftp UserAlias guest web4_anonftp MaxClients 10 <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> <Directory /srv/www/web4/ftp/incoming> Umask 002 <Limit STOR> AllowAll </Limit> <Limit READ> DenyAll </Limit> </Directory> </Anon Thanks for any help
|

5th May 2006, 09:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
You can ignore the warning.
If you cant FTP from otside, it is in most caeses a firewall issue. have you tried both, active and passive FTP?
|

5th May 2006, 09:56
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
My router firewall is not on, and the default one for suse is not on either. But I will check all of them anyway, it does sound like the router because it will work inside my network
Thanks
|

5th May 2006, 23:15
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
I am 98% certain that my router is not the problem any ideas where to start on the server, ssh wont work either outside my network but pop mail and web pages are working ok (except for perl scripts).... So where do I start.
Thanks
|

6th May 2006, 12:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Ask your ISP if they block certain ports like 21 and 22.
|

8th May 2006, 09:39
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
Checked with the ISP and they do not block any ports.
Thanks
|

8th May 2006, 09:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Did you forward ports 21 and 22 from your router to your ISPConfig box? Maybe also port 20 for FTP.
Did you try both active and passive mode in your FTP client?
|

8th May 2006, 12:34
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
I have turned off the firewall on the router so that my server is public. At the moment port 80 and 81 and 110 and 25 work fine... so I am guessing that something on the server is stopping the ftp and ssh from working seeing as though everything else works fine through the router.
Thanks
|

8th May 2006, 22:12
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
Ok so I can ftp from my internal network using the public addresses.
BUT I cant ftp from the outside and also I cant ssh from internal or external.
The firewall on my router is not on, ISPC's firewall is not on, but when it is nothing works and as far as I can tell there are no other firewalls turned on including the default suse one.
Web (port 80) https (port 81) and mail (port 25 and 110) are working fine so can anyone shed some light as to why ftp and ssh will not work.
When I try and ftp I get a connected to "address" and then after a minute or so I get "connection closed by remote host"
When I am trying ssh and use telnet from windows (or putty) after typing telnet "address" 22 I the screen gets cleared and I am left with "SSH-1.99-OpenSSH_4.1 with a blinking cursor underneath and then after a while I get a message saying "Connection to host lost"
My ISP does not block any ports.
Can anyone help with this one.
Thanks
|

8th May 2006, 22:24
|
|
Senior Member
|
|
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
Quick note on ssh, when looking at the config files /etc/ssh/ssh_config and sshd_config why are most of the option commented out, I would expect to see more options enabled here is the file.
ssh:
# $OpenBSD: ssh_config,v 1.20 2005/01/28 09:45:53 dtucker Exp $
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
# Site-wide defaults for some commonly used options. For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.
Host *
# ForwardAgent no
# ForwardX11 no
# If you do not trust your remote host (or its administrator), you
# should not forward X11 connections to your local X11-display for
# security reasons: Someone stealing the authentification data on the
# remote side (the "spoofed" X-server by the remote sshd) can read your
# keystrokes as you type, just like any other X11 client could do.
# Set this to "no" here for global effect or in your own ~/.ssh/config
# file if you want to have the remote X11 authentification data to
# expire after two minutes after remote login.
ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
# mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
# in this release. The use of 'gssapi' is deprecated due to the presence of
# potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptible to.
# GSSAPIEnableMITMAttack no
# This enables sending locale enviroment variables LC_* LANG, see ssh_config(5).
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
SendEnv LC_IDENTIFICATION LC_ALL
Thanks
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:15.
|
|
Recent comments
50 min ago
1 hour 49 min ago
5 hours 36 min ago
6 hours 50 min ago
10 hours 26 min ago
17 hours 42 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 19 hours ago
1 day 21 hours ago