Analytics

顯示具有 QNAP 標籤的文章。 顯示所有文章
顯示具有 QNAP 標籤的文章。 顯示所有文章

2019年1月31日 星期四

[QNAP]如何 於Container Station上建立mritd/shadowsocks容器(How to create a mritd/shadowsocks container on QNAP Container Station)


問題

如何 於Container Station上建立mritd/shadowsocks服務


解決方法

1.建立映像檔
左邊欄[建立]=>輸入[shadowsocks]=>找到mritd/shadowsocks=>點擊[建立]

2.建立容器
左邊欄[映像檔]=>找到mritd/shadowsocks=>點擊[+]

3.設定容器
於進入點輸入
/entrypoint.sh -s "-s 0.0.0.0 -p 6444 -m aes-256-gcm -k passward --fast-open" -k "-t 127.0.0.1:6444 -l :6544 -mode fast2" -x

說明:
0.0.0.0   採用Host IP,不需變更
6444      監聽端口,可自行設置
aes-256-gcm  加密方式,可自行設置(aes-256-cfb/xchacha20-ietf-poly1305/aes-256-gcm/rc4-md5)

點擊[進階設定]=>[網段]=>網路模式=>選擇Host=>點擊[建立]

2018年2月21日 星期三

[QNAP]解決 QNAP升級韌體4.3.4後iSCSI儲存遺失 顯示"指定的目標沒有可用的LUN"(Resolve QNAP Upgrade Firmware 4.3.4 Loss of iSCSI Storage After Display "Specified Target Has No Available LUNs")


問題

 QNAP升級韌體4.3.4後iSCSI儲存遺失 顯示"指定的目標沒有可用的LUN"


解決方法

1.選取iSCSI目標清單
=>點擊 儲存與快照總管=>iSCSI=>iSCSI儲存

2.停用異常的LUN磁區
=>點擊LUN磁區=>右上方 動作=>停用=>提示"所有存在的連線都會中斷"=>點確定=>該LUN磁區的狀態會變為停用


3.卸載異常的LUN磁區
=>點擊LUN磁區=>右上方 動作=>卸載=>該LUN磁區會被標在"未掛載iSCSI磁碟清單"

4.建立新的iSCSI目標
=>上方 建立=>選擇 建立一個iSCSI目標=>下一步=>輸入iSCSI目標名稱(ex:test1)=>下一步=>下一步=>下一步=>完成

5.將LUN磁區掛載到新的iSCSI目標 =>點擊LUN磁區=>右上方 動作=>掛載=>選擇步驟4建立的iSCSI目標(ex:test1)=>套用

2017年4月27日 星期四

[QNAP]解決 Virtualization Station透過虛擬交換器無法連線到網路 (Resolve Virtualization Station can not connect to the network through virtual switch)


問題
虛擬交換器中顯示Virtualization Station內VM以連線到網路


但是實際上Virtualization Station內VM卻無法連上網路



解決方法
1.關閉Virtualization Station內網路連線有問題的VM
2.Virtualization Station中於該VM內=>設定=>網路=>刪除網路卡


3.刪除後選擇上方的新增裝置


4.裝置種類選網路=>類型預設為Intel(建議VirtIO),因為Intel為模擬1G,VirtIO為模擬10G網路=>選好後確定


5.重新啟動VM

2017年4月21日 星期五

[SSH]解決 SSH連線時發生can't agree a host key algorithm錯誤 (To solve the SSH connection can not agree a host key algorithm error)


問題
SSH連線時發生can't agree a host key algorithm錯誤



解決方法
1.下載Putty
2.Putty選用Telnet遠端連線,輸入IP與PORT並點選下方OPEN按鈕,接著輸入帳號=>ENTER=>接著輸入密碼=>ENTER,成功進入後會出現#,輸入以下各行指令並每一行按下ENTER

chmod 0600 /etc/ssh/ssh_host_rsa_key
chmod 0600 /etc/ssh/ssh_host_dsa_key
chmod 0600 /etc/config/ssh/ssh_host_rsa_key
chmod 0600 /etc/config/ssh/ssh_host_dsa_key
chmod 0644 /etc/ssh/*.pub
chmod 0644 /etc/config/ssh/*.pub
接著重開Putty選用SSH遠端連線,輸入IP與PORT並點選下方OPEN按鈕以連線

2017年3月28日 星期二

[Shadowsocks]如何 於QNAP NAS上設定Shadowsocks Server


問題
如何 於QNAP NAS上設定Shadowsocks Server



解決方法
1.在QNAP上安裝對應版本的Shadowsocks Server
2.安裝好後開啟Shadowsocks


這時候如果進不去,就代表這台NAS躲在ROUTER後面,所以先進區網內才有辦法設定
可是在區往內開啟後,可能收到這個畫面


這時候,把dns改為內網的NAS IP就可以了!


點選Config File,你會看到設定畫面,這就是這篇說的重點!!!!!


設定會像這樣
{
"server":"192.168.1.100",
"server_port":8388,
"local_port":1080,
"password":"password1234",
"timeout":600,
"method":"aes-256-cfb"
}
NAS在ROUTER內的話
{
"server":"內網NAS的IP",
"server_port":8388,
"local_port":1080,
"password":"可以自訂",
"timeout":600,
"method":"aes-256-cfb"
}
METHOD是指加密方式隨喜好,推荐是aes-256-cfb
ROUTER的port forward設定為
TCP+UDP port 8388
local host 內網NAS的IP
local port 留空白
NAS不在ROUTER內的話
{
"server":"對外IP或DNS NAME",
"server_port":8388,
"local_port":1080,
"password":"可以自訂",
"timeout":600,
"method":"aes-256-cfb"
}
設定好後按下Modify,先關閉Shadowsocks Server後,再啟用
成功後使用Client連接測試下載位置

2014年6月12日 星期四

[QNAP]How to check the ramdisk full issue


問題
For the ramdisk full error, some process incorrectly saves files on the system partition and fills it up. To check which files are causing the disk to fill up



解決方法
Wait for the ramdisk full error to start coming in system logs In SSH console:
du -hx / >> /share/Public/du_full.txt
Reboot the NAS In SSH console:
 
du -hx / >> /share/Public/du_good.txt
Compare du_full.txt and du_good.txt to find which folder contains extra large files. This should be the cause of the issue.

熱門文章