Phantomsocks/運行

維基教科書,自由的教學讀本

運行[編輯]

在命令行直接執行phantomsocks即可啟動該程序。

Windows特定[編輯]

如果你在Windows上使用WinDivert API,你需要在phantomsocks.exe相同目錄下放置 WinDivert.dllWinDivert64.sys ,您可以到倉庫中WinDivert64.sys的位置WinDivert的發布頁面獲取。

根據phantomsocks -h的輸出所述。您可以運行phantomsocks -install來將該程序安裝為一個服務,此時其可以通過service.msc管理。

附其輸出:

Usage of ./phantomsocks:
  -c string
    	Config file (default "config.json")
  -install
    	Install service
  -log int
    	Log level
  -maxprocs int
    	Max processes
  -passive
    	Passive mode
  -remove
    	Remove service
  -start
    	Start service
  -stop
    	Stop service