pcap2socks
pcap2socks copied to clipboard
请求编译linux版
自己编译的运行结果如下 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)
相同的问题,x86 musl 版本
升下组件的版本就行了 🤔
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"] }
升下组件的版本就行了 🤔
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"] }
好的,谢谢
编译了下,测试环境ubuntu22.04: https://github.com/chaos-zhu/pcap2socks/releases/tag/linux docker版: https://hub.docker.com/r/chaoszhu/pcap2socks