我按您所提的第一種方式把SS 安裝在我的Synology NAS上了,按您的說明安裝相當順利. 也將Router該開的port都打開了.可是連線時出了問題,我查了一下log file內容(如下),看來SS有收到client的連線要求,所以從外網連接到SS應該是通的了,但在parsing的過程出了問題.我確認過password and encryption method都沒有問題.
2018-09-01 13:35:58 INFO starting server at 0.0.0.0:8388 2018-09-01 13:35:58 WARNING unsupported addrtype 49, maybe wrong password or encryption method 2018-09-01 13:35:58 ERROR can not parse header when handling connection from 49.216.211.87:52951 2018-09-01 13:35:59 WARNING unsupported addrtype 175, maybe wrong password or encryption method 2018-09-01 13:35:59 ERROR can not parse header when handling connection from 49.216.211.87:52952 2018-09-01 13:36:00 WARNING unsupported addrtype 185, maybe wrong password or encryption method 2018-09-01 13:36:00 ERROR can not parse header when handling connection from 49.216.211.87:52953
Log file中偶而也會有"看似"正在連接中的狀態,不過實際上都不曾成功連線過.
2018-09-01 13:37:52 INFO connecting 91.40.207.206:44265 from 49.216.211.87:53125 2018-09-01 13:37:53 WARNING unsupported addrtype 188, maybe wrong password or encryption method 2018-09-01 13:37:53 ERROR can not parse header when handling connection from 49.216.211.87:53126
試過不同的 port & 加密, 還換到另一台NAS上安裝,結果都一樣. Router上的設定也都打開了,從log file的內容可以確認client端的request都有送到 server. 用了iPhone and Macbook做為 client來連線,結果都顯示連線成功,但網頁都無法正常開始, server side的 log也都一直接到request, 只是都是不斷重復下面的錯誤訊息.
2018-09-02 13:28:17 WARNING unsupported addrtype 162, maybe wrong password or encryption method 2018-09-02 13:28:17 ERROR can not parse header when handling connection from 49.216.XX.XX:52524
感謝樓主的分享,小弟下個月去內地,依照第一個方法架設 SS 成功 (小弟家裡的 NAS 是 DS216j),這2天原本都只有家裡的內網可以連線,外網(手機的4G)都不行,就在剛剛將Synology 提供的 DDNS 換成 NO-IP提供的DDNS之後,神奇的事情發生了終於可以連了,感謝樓主!! 另外想要請教我的 NAS (DS216j 不支援 Docker ) 是否就不能架設 SSR 了嗎?? 還是有其他方法,畢竟下個月就要出發了,想要有個備案避免被擋(而且聽說 SSR 比 SS 更快),再次感謝樓主