LinuxQuestions.org
Help answer threads with 0 replies.
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 11-21-2008, 10:13 AM   #1
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
Ftp between Guest and Host using proftpd


I am running a Debian Lenny Guest O.S. on my Debian Etch host. I installed proftpd on the guess Debian Lenny.

On the host I would like to ftp into the guest. When I do this from the command line this is what happens.

Code:
ftp> open localhost 9021
Connected to localhost.
220 ProFTPD 1.3.1 Server (Debian) [::ffff:10.0.2.15]
Name (localhost:somename): music
331 Password required for music
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (10,0,2,2,152,57)
ftp: connect: Connection timed out
This is my start string for Qemu.
Code:
qemu -redir tcp:53630:10.0.2.15:53630 -redir tcp:53631:10.0.2.15:53631 -m 128 -soundhw es1370 -kernel-kqemu -hda debian.qcow
Ok I have read about passive port mode. I found this very helpfull.

PASV
Syntaxe : PASV
Tells the server to enter "passive mode". In passive mode, the server will wait for the client to establish a connection with it rather than attempting to connect to a client-specified port. The server will respond with the address of the port it is listening on, with a message like:
227 Entering Passive Mode (a1,a2,a3,a4,p1,p2)
where a1.a2.a3.a4 is the IP address and p1*256+p2 is the port number.

From here http://www.redfoxcenter.org/Internet/ftp.html

So I decided to use this directive for proftpd within this file /etc/proftpd/proftpd.conf
PassivePorts 53630 53631

If that is correct then I should see something like this.

Entering Passive Mode (10,0,2,2,209,126)
Entering Passive Mode (10,0,2,2,209,127)

Instead I still get random ports assign for the passive port range. How can I limit the server to use ports 53630 - 53631 as the passive ports?

I think this directive might have something to do with passive mode settings but the documentation confuses me.

MasqueradeAddress
 
  


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
Please help about vmware guest and linux host halimulalam Linux - Newbie 3 10-18-2008 08:54 AM
FTP between host(win xp) & guest(fedora 9) os in vmware pdwivedi Linux - Networking 6 07-14-2008 01:27 PM
cannot connect Host to Guest OS (vmware) ic_torres Linux - Networking 2 10-23-2007 04:53 AM
communication of guest OSes with host OS anant Linux - Newbie 1 12-21-2006 02:06 PM
network between the host and guest in VMWare gongcon Linux - Networking 1 03-08-2005 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration