• Home
  • Contact
Blue Orange Green Pink Purple

Archive for February 1st, 2008

You can use the search form below to go through the content and find a specific post or page:

Feb 01

Configuring Pure-FTP for Passive FTP

I’ve just had to configure a VPS server’s Pure-FTP and APF firewall installation to allow for passive FTP connections after getting the following error when trying to connect via FTP:

I won’t open a connection to xxx.xxx.xxx.xxx (only to xxx.xxx.xxx.xxx)

This error was caused by Pure-FTP not being set up to allow for passive connections, so here’s what I had to do to properly configure Pure-FTP and the firewall.

SSH into your server and open the /etc/apf/conf.apf in Vi (using the command: ‘vi /etc/apf/conf.apf’. Find the entry for IG_TCP_CPORTS and add a port as: ‘40000_50000′. Restart your firewall (in the case of APF the command is: ‘apf -r’).

Next you need to set the passive port range for Pure-FTP, in the pure-ftpd.conf file, open this file by running ‘vi /etc/pure-ftpd.conf’. In thi file uncomment out the ‘PassivePortRange’ entry by removing the ‘#’ and then change the listed value to the port range we just set, 40000 50000, so your entry for passive ports will now look like ‘PassivePortRange 40000 50000′. Now restart Pure-FTP by running ’service pure-ftpd restart’, and then run ‘iptables -F’ and you should now be able to FTP into your server using passive mode.

for help with Vi/Vim there is a cheatsheet available here.

區段40

    • No tweets available at the moment.
    • More updates...
  • Categories
    • Advertising
    • Apple
    • Blogging
    • clothing
    • Design
    • Gaming
    • Japan
    • Language
    • Linux
    • Sector40
    • Software
    • Taiwan
    • Tech
    • Uncategorized
    • Visa
    • Web
  • Recent Articles
    • BBC experiment to increase understanding of Globalisation
    • Chunghwa Telecom prepare for Taiwan iPhone release
    • iPhone 2.2 Firmware plus Pwnage Tool Update
    • Megaupload下載問題
    • Configuring Pure-FTP for Passive FTP
    • 在一分鐘內看Mac World的全部
  • Archives
    • December 2008
    • November 2008
    • February 2008
    • January 2008
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
  • Search






  • Home
  • Contact

© Copyright 區段40. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top