PASV FTP

Hi guys,
I’ve searched for the resolution to this and I see a lot of old posts… but it looks like the people asking figured it out on their own and didn’t post their resolution in the thread for future users.

I’ve set up a clean CentOS 5.5 server and installed virtualmin (gpl)
I set up a domain
I created an FTP user
I’ve added conntrack module to iptables

Applying iptables firewall rules: [ OK ] Loading additional iptables modules: ip_conntrack_netbios_n ip_conntrack_ftp [ OK ]

I can successfully log in using PASV FTP but when my clients (filezilla and coreFTP) try to connect it times out on list. I’m also not sure why it says error setting IPV6_V6ONLY: Protocol not available. I don’t want to use IPV6…Where is this set up?

Response: 227 Entering Passive Mode (*,*,*,*,*). Command: LIST Response: 150 Opening ASCII mode data connection for file list Error: Connection timed out Error: Failed to retrieve directory listing

In /var/log/secure I see:

Oct 2 13:33:04 yada proftpd: pam_unix(proftpd:session): session opened for user username by (uid=0) Oct 2 13:33:04 yada proftpd: Deprecated pam_stack module called from service "proftpd" Oct 2 13:33:04 yada proftpd[11742]: my.domain.com (::ffff:97.234.234.84[::ffff:97.234.234.84]) - USER username: Login successful. Oct 2 12:33:04 yada proftpd[11742]: my.domain.com (::ffff:97.234.234.84[::ffff:97.234.234.84]) - Preparing to chroot to directory '/home/domain/public_html' Oct 2 12:33:05 yada proftpd[11742]: my.domain.com (::ffff:97.234.234.84[::ffff:97.234.234.84]) - error setting IPV6_V6ONLY: Protocol not available Oct 2 13:35:05 yada su: pam_unix(su:session): session opened for user postgres by (uid=0) Oct 2 13:35:05 yada su: pam_unix(su:session): session closed for user postgres

I also see that there is a deprecated pam_stack module called from proftpd. Is this related?

Thanks!

I’ve got it working with domain account.
I’ll mess with the FTP account now.

I just deleted the domain and recreated it. This server is behaving oddly… I think I may reinstall before I spend much more time on it.