LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cannot connect to my own proftpd server (https://www.linuxquestions.org/questions/linux-networking-3/cannot-connect-to-my-own-proftpd-server-392264/)

darkx 12-13-2005 04:24 AM

cannot connect to my own proftpd server
 
hi all,

after spending hours trying to get my proftp server up and running, which i finally did, but now i've ran into another problem. I am able to access my ftp locally, but when i try to access it through one of my LAN computer, i get a server time out, unknown host. I've been searching all night long on google for an answer and I've not come up with a solution. please help.

bathory 12-13-2005 04:40 AM

Check if you have a firewall rinning that blocks port 21

darkx 12-13-2005 04:57 AM

Quote:

Originally Posted by bathory
Check if you have a firewall rinning that blocks port 21

on my linux box or my windows xp box?

on my windows box port 21 is open, because i am able to ftp to my school server.

if on my linux box, how do i check the firewall setting?

bathory 12-13-2005 05:29 AM

You should check the box running proftpd (I guess linux box). Run as root:
Code:

iptables -L:grep ftp
You should something like:
Quote:

ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
if port 21 (ftp) is open

darkx 12-13-2005 05:33 AM

Quote:

Originally Posted by bathory
You should check the box running proftpd (I guess linux box). Run as root:
Code:

iptables -L:grep ftp
You should something like:

if port 21 (ftp) is open

this is my output:
Code:

darkxlinux:/home/darkx # iptables -L|grep ftp
ACCEPT    udp  --  anywhere            anywhere            udp dpt:tftp
darkxlinux:/home/darkx #


bathory 12-13-2005 06:13 AM

Well, that's wrong since ftp is a tcp based protocol and with that rule you allow only udp. You should change it to allow tcp port 21.
Use your distro's firewall config tool to do this, or run
Code:

iptables -A INPUT -p tcp --dport 21 -j ACCEPT
to open the port for now

darkx 12-13-2005 01:16 PM

Quote:

Originally Posted by bathory
Well, that's wrong since ftp is a tcp based protocol and with that rule you allow only udp. You should change it to allow tcp port 21. Use your distro's firewall config tool to do this, or run
Code:

iptables -A INPUT -p tcp --dport 21 -j ACCEPT
to open the port for now

ok i did what you said and i still get this error message from my windoze
Code:

Windows cannot access the folder.
Make sure you typed the file name correctly
and that you have permission to access the folder.
Details: The connection with the server was reset

Here is what I have in my proftpd.conf file
Code:

# 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 Default Installation"
ServerType                      standalone
DefaultServer                  on
IdentLookups off
ServerIdent on "FTP Server ready."
# 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                    30

# Set the user and group under which the server will run.
User                            darkx
Group                          nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
#DefaultRoot /home/darkx/public_html

# 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 /home/darkx/public_html/>
  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                    10

  # 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>


darkx 12-13-2005 01:44 PM

ok you know what, I'm gonna give up on suse, it is just to much hassle, and i dont want to lose any more sleep over it. I'm gonna switch over to Ubuntu and see if i can get it working there. I've found a site that provide step to step tutorial on how to get proftpd working. I'm gonna give that a go, if that also don't work, then i'll be back here again :D.

thank for all the helps Bathory.

darkx 12-13-2005 07:23 PM

Alternative Solution
 
Ok, well i've finish installing ubuntu and all my necessary server for hosting my web site. everything is running great, ftp and http server all up and running. now i can say to the dust bin with Suse :D. those i have problem accessing my window box through the firefox browser, but that is ok because i can access it through command line, so its all good :D


All times are GMT -5. The time now is 11:43 AM.