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