service:proftpd
差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
| service:proftpd [2008/05/17 21:53] – wenpei | service:proftpd [2008/12/16 20:13] (目前版本) – wenpei | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== proftpd 使用 TLS 加密 ====== | ||
| + | ===== 產生金鑰 ===== | ||
| + | openssl genrsa -out proftpd.key2 1024 | ||
| + | |||
| + | openssl req -new -x509 -days 3650 -key proftpd.key -out proftpd.crt | ||
| + | |||
| + | < | ||
| + | Country Name (2 letter code) [AU]:TW | ||
| + | State or Province Name (full name) [Some-State]: | ||
| + | Locality Name (eg, city) []:Jhungli | ||
| + | Organization Name (eg, company) [Internet Widgits Pty Ltd]: | ||
| + | Organizational Unit Name (eg, section) []:FTP | ||
| + | Common Name (eg, YOUR name) []:sars.tw | ||
| + | Email Address []: | ||
| + | </ | ||
| + | |||
| + | chmod go-r proftpd.key proftpd.crt | ||
| + | |||
| + | mv proftpd.key proftpd.crt / | ||
| + | |||
| + | ===== 設定 tls.conf ===== | ||
| + | < | ||
| + | < | ||
| + | TLSEngine | ||
| + | TLSLog | ||
| + | TLSProtocol | ||
| + | TLSRSACertificateFile | ||
| + | TLSRSACertificateKeyFile | ||
| + | TLSVerifyClient | ||
| + | TLSRequired | ||
| + | TLSRenegotiate | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== 設定 proftpd.conf ===== | ||
| + | 在檔案中加入: | ||
| + | Include / | ||
| + | |||
| + | 並檢查 modules.conf 中是否有: | ||
| + | LoadModule mod_tls.c | ||
| + | |||
| ====== 用 mysql 管理 proftpd 帳號 ====== | ====== 用 mysql 管理 proftpd 帳號 ====== | ||
| http:// | http:// | ||
| 行 7: | 行 48: | ||
| http:// | http:// | ||
| - | |||
| - | ===== 支援 ===== | ||
| - | 確定 proftpd 有支援 sql module | ||
| - | # proftpd -l | grep sql | ||
| - | mod_sql.c | ||
| - | mod_sql_mysql.c | ||
| - | mod_quotatab_sql.c | ||
| ===== 建立資料庫 ===== | ===== 建立資料庫 ===== | ||
service/proftpd.1211032423.txt.gz · 上一次變更: 由 wenpei
