Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Proftpd Help
helpdeskdan
post Dec 19 2005, 11:01 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 19-December 05
Member No.: 5,877



Please help - Can't connect!

dan@dan:/etc/init.d$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:04:85:ED:C1
inet addr:10.xx.42.10 Bcast:10.255.255.255 Mask:255.255.255.0
...

dan@dan:/etc/init.d$ ftp 10.xx.42.10
Connected to 10.xx.42.10.
500 Sorry, no server available to handle request on 10.xx.42.10
ftp>

dan@dan:~$ ftp localhost
Connected to localhost.localdomain.
220 ProFTPD 1.2.10 Server (ProFTPD) [127.0.0.1]
Name (localhost:dan):

Localhost?! How do I set it to the 10.xx.42.10? (DHCP - can set it static if DHCP difficult)

Many thanks,
-Dan
Go to the top of the page
 
+Quote Post
Jim
post Dec 20 2005, 03:06 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



IPtables? Localhost wont always go out to come back through the filewall. Make sure you have the port open, or I could go do it for you.

Second, localhost is always ALWAYS a reference to 127.0.0.1. If you change that you will not be a happy camper. localhost is just a loop back.

In the future don't post full IPs regardless of if they are valid or not.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
helpdeskdan
post Dec 20 2005, 09:49 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 19-December 05
Member No.: 5,877



Thanks for your reply!

And, thanks for your concern about my IP! I'm not too concerned about somebody knowing my private dhcp addr. It's with in the RFC 1918. However, I probably shouldn't have posted my MAC addr!

I've no iptables. (See below) I believe what I need is for ProFTPD to believe it is hosted from (located at) my 10 addr, NOT from the loopback. I'm not sure if this is within ProFTPD or what!

dan@dan:~$ sudo iptables -L
Password:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Go to the top of the page
 
+Quote Post
Jim
post Dec 20 2005, 11:15 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



ProFTP doesn't care where it hosted from. Thats not the issue.

Do this. Run nmap -P0 -p 21 10.xx.xx.xx and see what it says. It will tell you if it can make a connection on that port or not.

You can also run telnet 10.xx.xx.xx 21 and see what service is trying to run on 21.

I am still convinced that you have some sort of firewall running on your computer or somewhere in your network.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
helpdeskdan
post Dec 21 2005, 11:03 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 19-December 05
Member No.: 5,877



Telnet doesn't give anything usefull.

500 Sorry, no server available to handle request on 10.42.XX.10
Connection closed by foreign host.


dan@dan:~$ nmap -P0 -p 21 10.42.XX.10

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-12-21 21:12 EST
Interesting ports on 10.42.XX.10:
PORT STATE SERVICE
21/tcp open ftp

Nmap finished: 1 IP address (1 host up) scanned in 0.079 seconds


It's open. Keep in mind, I'm typing in all these command locally on the same machine the server is running on. 10.42.XX.10 would not be able to access the localhost. There's no route!

dan@dan:~$ route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.42.XX.0 * 255.255.255.0 U 0 0 0 eth0
default floppyfw.charte 0.0.0.0 UG 0 0 0 eth0

Firewall in my network shouldn't matter. The traffic is local. I'm not sure what would be filtering if my iptables are empty. sad.gif
Go to the top of the page
 
+Quote Post
DS2K3
post Dec 22 2005, 06:22 PM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



It looks to me like the server is listening fine, it just doesn't have a virtual-server setup to actually handle the transaction. So I dont think it is a firewall problem.

Webmin (like usual) has a module for configuring ProFTP which has worked for me in the past - see www.webmin.com (or, get the package from your distributor, most of them provide it)

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
helpdeskdan
post Dec 24 2005, 12:12 AM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 4
Joined: 19-December 05
Member No.: 5,877



First off, I'd personally like to take this chance to thank Jim and DS2K3 for helping me.

After installing webmin, I looked around. Looked everywhere; finally saw there was an option for virtual servers:

Handles any FTP connections not handled by virtual servers.
Address Any Server name Default

Hmm... so I added one:
Handles all connections to 10.42.XX.10
Address 10.42.XX.10 Server name

Fixed it! My only mild concern is... I'm not 100% sure what a virtual server is, at least in this case.
Go to the top of the page
 
+Quote Post
DS2K3
post Dec 24 2005, 08:36 AM
Post #8


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



Basically, ProFTP can handle multiple configurations, from different addresses or ports. A "virtual server" is the configuration for a speicific address or port. It's similar to the Virtual Servers used by Apache, and allows you to host multiple FTP services on one server, using one copy of ProFTP.

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 07:50 PM