LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-13-2005, 04:24 AM   #1
darkx
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
Unhappy 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.
 
Old 12-13-2005, 04:40 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Check if you have a firewall rinning that blocks port 21
 
Old 12-13-2005, 04:57 AM   #3
darkx
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 12-13-2005, 05:29 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
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
 
Old 12-13-2005, 05:33 AM   #5
darkx
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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 #
 
Old 12-13-2005, 06:13 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,905

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
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
 
Old 12-13-2005, 01:16 PM   #7
darkx
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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>

Last edited by darkx; 12-13-2005 at 01:28 PM.
 
Old 12-13-2005, 01:44 PM   #8
darkx
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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 .

thank for all the helps Bathory.
 
Old 12-13-2005, 07:23 PM   #9
darkx
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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 . 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd (ftp server) Adrian13 Linux - Software 3 10-18-2004 04:22 PM
proftpd - localhost works. but can't connect from a PC on the network cevjr Linux - Networking 6 02-22-2004 04:44 PM
ProFTPd - can connect locally but...Could it be that Verizon DSL does not allow port cevjr Linux - Networking 5 02-22-2004 04:42 PM
ProFTPD can't connect... wolftechmn Linux - Networking 4 11-26-2003 07:23 PM
proftpd - can't connect from outside lan hammer63 Linux - Networking 19 10-08-2003 07:08 AM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration