首頁>Club>
6
回覆列表
  • 1 # 使用者6546301572455

    需要有路由器管理權,然後在轉發規則中設定DMZ主機為本機,或者埠影射本機.都需要有路由器管理權. 如何設定代理伺服器可以用ROXY 這裡講的是CentOS5環境下的架設方法,其他Linux版本以此類推 首先到

    http://ss5.sourceforge.net/software.htm

    去下載最新的for linux版本 目前是:ss5-3.6.4-

    3.tar.gz

    # tar xvf ss5-3.6.4-

    3.tar.gz

    # cd ss5-3.6.4 # ./configure 結果可能看到錯誤, 因為我就碰到了 checking security/

    pam_misc.h

    usability... no checking security/

    pam_misc.h

    presence... no checking for security/pam_misc.h... no configure: error: *** Some of the headers weren"t found *** 缺某些庫檔案, 我看到和pam有關的, 是pam-devel包 # yum -y install pam-devel # make # make install make install之後沒有任何顯示, 這其實已經安裝完畢了, 不必疑惑 修改配置檔案: /etc/opt/ss5/

    ss5.conf

    修改這行: auth 0.0.0.0/0 - - 改成: auth 0.0.0.0/0 - u 然後在/etc/opt/ss5/

    ss5.passwd

    中, 一行一個使用者+密碼 # cat

    ss5.passwd

    hao32 123456 # /etc/

    rc.d/init.d/ss5

    start 報錯 /etc/

    rc.d/init.d/ss5:

    line 41: syntax error near unexpected token `;;" /etc/

    rc.d/init.d/ss5:

    line 41: ` ;;" vi下看看41行, 在;;之前少了結束fi 38 /usr/local/sbin/ss5 -t 39 fi 40 echo "done" 41 fi 42 ;; 繼續# /etc/

    rc.d/init.d/ss5

    start 38行又報錯... 說沒有這個目錄或者檔案:/usr/local/sbin/ss5 手動 把/usr/local/sbin/ss5換成了/usr/sbin/ss5 # /etc/

    rc.d/init.d/ss5

    start doneting ss5... [ OK ] 再重啟下看看: # /etc/

    rc.d/init.d/ss5

    restart Restarting ss5... Shutting down ss5... done [ OK ] doneting ss5... [ OK ] 看來沒啥問題, 過了, 現在你就可以使用伺服器的IP, 埠1080, 使用者hao32, 密碼123456來測試你的socks5伺服器了, 更多高階應用, 就參加ss5.conf, 裡面有詳細的說明。

  • 中秋節和大豐收的關聯?
  • 紅酒都有哪些味道?