zhxie / pcap2socks

Redirect traffic to SOCKS proxy with pcap.
MIT License
631 stars 76 forks source link

[macOS] 报错 error: No such file or directory (os error 2) #10

Closed xinyangt9 closed 3 years ago

xinyangt9 commented 3 years ago

Release中下载的预编译版本与我自己用源码编译出的版本运行后都报错 error: No such file or directory (os error 2),请问如何解决呢

Screen Shot 2021-01-11 at 01 08 46

同时问一下,如果我没有理解错的话,-s与-p参数是设置为局域网内不存在的IP对吧。Switch端上的DNS该如何设置呢?

zhxie commented 3 years ago

From the screenshots, you may be using macOS. This may be caused by you not running under root privileges, and you can run it via sudo. Reference to Troubleshoot.

DNS is also proxied through SOCKS, so you can use any DNS you want on the Switch, like 8.8.8.8.


从截图中看,你应该在使用 macOS。这可能是由于你没有在 root 权限下运行导致的,并且你可以通过 sudo 运行。参考 Troubleshoot

DNS 同样将经过 SOCKS 代理,因此你可以在 Switch 上使用任何你想使用的 DNS,比如8.8.8.8

xinyangt9 commented 3 years ago

Thanks!

pigKinger commented 2 years ago

学到了