PDA

View Full Version : Question about pureFTPd


fatnack
6th April 2006, 10:54
Hi @ all

I read the tutorial http://www.howtoforge.com/pureftpd_mysql_virtual_hosting_p3, it's just fantastic. All features are working correctly...but I can only connect to localhost.

On the Server I enter:

ftp> open localhost
--> this is okay

But when I enter:

ftp> open mydomain.ch
then he says "Connection refused"

I hope you can help me that I can establish connections from outside!

Thank's a lot
Remo

till
6th April 2006, 11:19
Please post the output of:

netstat -tap

fatnack
6th April 2006, 11:50
danemark:/usr/sbin# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:sunrpc *:* LISTEN 1436/portmap
tcp 0 0 *:auth *:* LISTEN 1835/inetd
tcp 0 0 *:ftp *:* LISTEN 1964/pure-ftpd (SER
tcp 0 0 *:smtp *:* LISTEN 1817/exim4
tcp 0 0 *:891 *:* LISTEN 1981/rpc.statd
tcp6 0 0 *:www *:* LISTEN 1992/apache2
tcp6 0 0 *:ftp *:* LISTEN 1964/pure-ftpd (SER
tcp6 0 0 *:ssh *:* LISTEN 1970/sshd
tcp6 0 0 *:smtp *:* LISTEN 1817/exim4
tcp6 0 720 ::ffff:192.168.0.5:ssh adsl-156-56.dsl.i:10350 ESTABLISHED2870/sshd: remo [pr


Thank's a lot!

(Deutsch wäre auch möglich;) )

falko
6th April 2006, 11:51
Ok, ftp is listening on all interfaces. Please make sure your firewall doesn't block port 21 (and maybe also 20).
What's the output of iptables -L?

fatnack
6th April 2006, 11:53
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


Remo

PS: I've no firewall here

falko
7th April 2006, 13:30
Does FTP work with an FTP client like SmartFTP from another computer?