[精讚] [會員登入]
1058

[Centos] opentftp + selinux 安裝及設定

Centos 安裝微型ftp伺服器:tftp伺服器

分享此文連結 //n.sfs.tw/10659

分享連結 [Centos] opentftp + selinux 安裝及設定@新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-10-24 05:01:45 最後編修
2017-01-23 14:19:17 By 張○○
 

自動目錄

系統

Centos 5.3

一、下載 opentftp

目前最新版本為 1.66
http://sourceforge.net/projects/tftp-server/files/tftp%20server%20single%20port/

解壓
# tar zxvf opentftpspV1.66.tar.gz

二、建立存放下載檔案的目錄

# mkdir /home/axer/routeconf

三、設定 selinux 給 tftp 使用

# chcon -t tftpdir_t /home/axer/routeconf/

四、設定 opentftp.ini 設定內容

opentftp.ini就在解壓後的目錄中,編輯內容( 符號 ' #都代表註解)

[LISTEN-ON]
0.0.0.0

[HOME]
/home/axer/routeconf

[LOGGING]
'None
Errors
'All

[ALLOWED-CLIENTS]
'192.168.0.1-192.168.0.254
'10.0.0.1-10.255.255.254
'33.67.8.123

[TFTP-OPTIONS]
... 未更動略 ...

# 最大SIZE
blksize=65464

Read=Y
Write=Y
Overwrite=Y

五、拷背 opentftp.ini 到 /etc

# cp opentftp.ini /etc

六、開啟防火牆

請將 UDP 69 port 打開

七、啟動 opentftp server

# ./opentftp -v


原文 2012-03-26 14:05:38

END

你可能感興趣的文章

[Rocky Linux] 安裝gitlab gitlab+docker compose+ nginx 安裝Gitlab並結合nginx當網頁伺服器

[Rocky9] codeignitor4+ nginx+ php8.1-fpm + docker compose 這次的目標是把服務裝在docker,裡面放入 nginx 和 php8.1-fpm的 docker container, 並採用codeignitor4。

[CENTOS7 8] 查看記憶體 linux 中查看記憶體狀態指令整理

[Centos7] 安裝 semanage (selinux工具程式) 安裝selinux的工具程式 semanage

[Rocky9] LetsEncrypt + nginx + docker 使用 certbot container 配合 nginx 來設製HTTPS.

[Centos7] 安裝phpMyAdmin Centos 7有新的方式可以安裝phpmyadmin,不必再採用過去的tarball安裝法。

隨機好文

[Freebsd] 定時測試 ADSL 是否斷線並重連 中華電信 ADSL 雖有固定 ip,可是他卻會不定時「斷線」, 使用以下的 方法可以定時測試是否斷線,以及重新撥接。

安裝SPHINX支援中文 新版本的 sphinx 和舊版不同,網路上很多範例和教學是不能用的。此文是安裝和設定方法分享

Linux shell 的date表示法 linux下SHELL中的date表示法

TFTP Server 安裝及使用 讓設備的網路設定檔或是韌體經由TFTP拷備出來,操作的方法

[Win7] 燒錄 iso 檔 在Windows7 中內建燒錄程式,可以直接把檔案拉到光碟機裡,再執行燒錄。