• Home
  • Contact
Blue Orange Green Pink Purple

Archive for the ‘Linux’ Category

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.

Nov 05

Linux的樣子成了OS X

HowToForge有一篇新文章關於把Linux作業系統做成蘋果OS X Leopard的樣子。雖然OSX用戶當然知道是假的, 我還是覺得很厲害。他們解釋怎麼換很多軟體的樣子, 像Firefox(Safari)、Pidgin(iChat)、xmms(iTunes)… …什麼的, 連OSX的聲音也有。我買Asus Eee的話, 覺得要安裝Ubuntu然後做這樣, Eee跟Macbook比起來, 好像都有Intel的GMA910, 所以我希望沒有問題。

這裡有很多圖片、這裡也有ㄧ部Youtube影片。



區段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
    • HTC G1 APN Settings for Taiwan
    • 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
  • Archives
    • January 2009
    • 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