# proxychains&sock5 server build - 網路匿蹤用途 ## proxychains 自訂proxylist - 開啟/etc/proxychains4.conf ### 設定模式 - dynamic_chain ![](https://i.imgur.com/yoMYgG4.png) ### 增加proxylist ![](https://i.imgur.com/qdY2I1k.png) ### 執行 ``` proxychains4 -f /etc/proxychains4.conf curl google.com.tw ``` ![](https://i.imgur.com/Vvv7eVa.png) ## 建立SOCKS5 server ### Ubuntu下執行 ``` ssh -f -N -D 10.100.31.34:4321 btuser@10.100.31.34 ``` ### 確認port正在監聽 ``` lsof -i -P -n | grep LISTEN ``` ![](https://i.imgur.com/mGWY0NC.png) ## 安裝proxychains4 ` sudo apt-get install proxychains ` ### 設定 ` nano /etc/proxychains4 ` - 拉最底部,新增proxy節點 - ![image](https://hackmd.io/_uploads/r1RIlST-R.png) ### 解決依賴缺少 - 缺少會顯示這個 - ![image](https://hackmd.io/_uploads/BJRdxrabC.png) - https://blog.csdn.net/jiezhi2013/article/details/50624561 ## tor模式 ### 安裝 ` sudo apt update ` ` sudo apt install tor ` ### 啟動 ` service tor start ` ### 確認服務狀態 ` systemctl status tor ` ![](https://i.imgur.com/gTqt5gn.png) ### 設定proxychains.conf ``` sudo nano proxychains.conf ``` - 設定僅有這兩行白字,不可增加其他ip ![](https://i.imgur.com/vFLf7nc.png) ### 嘗試使用tor+proxychains proxychains firefox google.comss ### 查看ip是否已改變 - 成功跑到印度 ![](https://i.imgur.com/XQ0qjQz.png) ## 參考資料 ### 建立SOCKS5代理(參考) https://www.daimajiaoliu.com/daima/486fea02c900401 https://www.twblogs.net/a/5b8351982b71776c51e28753?lang=zh-cn ### proxylist https://proxydb.net/?protocol=http&protocol=https&anonlvl=3&anonlvl=4&country= http://free-proxy.cz/en/proxylist/country/AR/all/ping/all ### IP及地理位置 https://nordvpn.com/zh-tw/ip-lookup/