Closed briteming closed 4 years ago
下载了。不过, ./pcap2socks --source
--destination 127.0.0.1:1080 --interface tun10“--source”的值该怎么写?
./pcap2socks --source 10.6.0.2 --publish 10.6.0.1 --destination 127.0.0.1:1080 --interface en0 显示: Listen on en0 [e0:ac:cb:76:bc:a6]: 192.168.1.100 Break packets with MTU 1400 Publish for 10.6.0.1 Please set the network of your device which is going to be proxied with the following parameters: ┌────────────────────────────┐ │ IP Address 10.6.0.2 │ │ Mask 255.255.255.0 │ │ Gateway 10.6.0.1 │ │────────────────────────────│ │ MTU 1400 │ └────────────────────────────┘ error: No such file or directory (os error 2) yudeMacBook-Air:pcap2socks-latest-macOS-amd64 brite$
怎么解决?
Please refer to the Troubleshoot, and confirm if you have the root access.
请参考 Troubleshoot,并确认是否拥有 root 权限。
hi. 我运行了: sudo sysctl -w net.inet.ip.forwarding=0 然后运行: sudo ./pcap2socks --source 10.6.0.2 --publish 10.6.0.1 --destination 127.0.0.1:1080 --interface en0 显示: Listen on en0 [e0:ac:cb:76:bc:a6]: 192.168.1.101 Break packets with MTU 1400 Publish for 10.6.0.1 Please set the network of your device which is going to be proxied with the following parameters: ┌────────────────────────────┐ │ IP Address 10.6.0.2 │ │ Mask 255.255.255.0 │ │ Gateway 10.6.0.1 │ │────────────────────────────│ │ MTU 1400 │ └────────────────────────────┘ Proxy 10.6.0.2 to 127.0.0.1:1080
然后,我在浏览器里,访问显示IP的网站,显示的ip仍然是我的ISP分配给我的ip,并非我的服务器的ip.也翻不了墙。
你这个可执行文件pcap2socks是不是缺乏设置本机的 IP Address , Mask和 Gateway的ip地址的参数?
pcap2socks is used to proxy other devices in your LAN. It was originally designed as a game accelerator and cannot be used to proxy the local machine.
pcap2socks 是用于代理局域网中其它设备的,其设计初衷是一个游戏加速器,并不能用于代理本机。
能基于你这个项目,另外搞个全局代理的项目吗?
If you are interested, you can fork this project or use it arbitrarily in compliance with the MIT license. But I will not add this feature to it.
如果你有兴趣,你可以 fork 这个项目,或是在遵守 MIT 协议的情况下任意使用这个项目。但我不会为其增加该功能。
我在mac上,build失败。即使是挂着vpn进行build,仍然失败: yudeMacBook-Air:pcap2socks-by-zhxie brite$ cargo build --release Updating crates.io index
warning: spurious network error (2 tries remaining): failed to connect to github.com: Operation timed out; class=Os (2) warning: spurious network error (1 tries remaining): failed to connect to github.com: Operation timed out; class=Os (2) error: failed to fetch
https://github.com/rust-lang/crates.io-index
Caused by: failed to connect to github.com: Operation timed out; class=Os (2)