[精讚] [會員登入]
1114

[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

你可能感興趣的文章

[Centos8] 網頁化的系統管理介面 cockpit Centos8 提供一個網頁化的管理介面,稱為駕駛艙,值得一試

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

[Centos7] 修改啟動的runlevel centos7的 runlevel修改和前面的版本都不一樣

[Oracle9] 查看磁碟檔案類型、掛載和uuid linux 如何查看掛載的磁碟類型?此文做個整理。

使用dnstop 來觀察dns運作的情形 dnstop是非常方便的工具,可以觀察即時的dns查詢。 安裝 yum install dnstop

[bc] linux 的計算機 bc 設定小數位數、計算π、次方根 linux 的計算機 bc 設定小數位數、計算π、次方根

隨機好文

使用Google尋找你的手機 這近發現google竟然可以用來找android的手機,而且不需要經過什麼設定或安裝軟體。

UTF-8 BOM (Byte Order Mark) 的問題 在 Michael Kaplan 那看到 Every character has a story #4: U+feff

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

維修冰箱 維修冰箱

[CodeIgniter 3] 資料庫的使用方法整理2/2 CI3 承襲 CI2,有很多的builder class可以用,依各人的使用習慣,有人喜歡一堆sql字串,有人喜歡用helper