zhxie / pcap2socks

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

请求编译linux版 #36

Open 2274268506 opened 1 year ago

2274268506 commented 1 year ago

自己编译的运行结果如下 Listen on br-lan [00:e2:69:4b:da:1b]: 192.168.2.1 Use MTU 1500 Publish for 10.6.0.2 Please set the network of your device which is going to be proxied with the following parameters: ┌───────────────────────────┐ │ IP Address 10.6.0.1 │ │ Mask 255.255.255.0 │ │ Gateway 10.6.0.2 │ │───────────────────────────│ │ MTU <=1500 │ └───────────────────────────┘ error: No such device (os error 19)

tsenyoung commented 9 months ago

相同的问题,x86 musl 版本

0x79H commented 8 months ago

升下组件的版本就行了 🤔

diff --git a/Cargo.toml b/Cargo.toml
index 8a54e00..cc83333 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,10 +17,10 @@ async-socks5 = "0.5.0"
 clap = "2.33.1"
 dns-lookup = "1.0.8"
 env_logger = "0.9.0"
-ipnetwork = "0.18.0"
+ipnetwork = "0.20.0"
 log = "0.4.14"
 lru = "0.6.6"
-pnet = "0.28.0"
+pnet = "0.34.0"
 rand = "0.8.4"
 structopt = "0.3.22"
 tokio = { version = "1.9.0", features = ["rt", "rt-multi-thread", "io-util", "net", "time", "macros", "sync"] }
2274268506 commented 7 months ago

升下组件的版本就行了 🤔

diff --git a/Cargo.toml b/Cargo.toml
index 8a54e00..cc83333 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,10 +17,10 @@ async-socks5 = "0.5.0"
 clap = "2.33.1"
 dns-lookup = "1.0.8"
 env_logger = "0.9.0"
-ipnetwork = "0.18.0"
+ipnetwork = "0.20.0"
 log = "0.4.14"
 lru = "0.6.6"
-pnet = "0.28.0"
+pnet = "0.34.0"
 rand = "0.8.4"
 structopt = "0.3.22"
 tokio = { version = "1.9.0", features = ["rt", "rt-multi-thread", "io-util", "net", "time", "macros", "sync"] }

好的,谢谢

chaos-zhu commented 3 months ago

编译了下,测试环境ubuntu22.04: https://github.com/chaos-zhu/pcap2socks/releases/tag/linux docker版: https://hub.docker.com/r/chaoszhu/pcap2socks