Skip to content

Commit

Permalink
support tunneling udp
Browse files Browse the repository at this point in the history
  • Loading branch information
neevek committed Nov 3, 2024
1 parent a6da33b commit c6fa589
Show file tree
Hide file tree
Showing 10 changed files with 648 additions and 244 deletions.
20 changes: 18 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ lazy_static = "1.4"
async-trait = "0.1"
byte-pool = { git = "https://github.com/neevek/byte-pool" }
# rstun = { path = "../rstun" }
rstun = { git = "https://github.com/neevek/rstun", branch = "dev" }
rstun = { git = "https://github.com/neevek/rstun" }
hyper = { version = "0.14", features = ["full"]}
http = "0.2"
http-body = "0.4"
mime_guess = "2.0"
monolithica = { git = "https://github.com/neevek/monolithica" }
base64 = "0.22"
dashmap = "6"

[dev-dependencies]
jni = "0.19"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Examples
`omnip -a socks5://127.0.0.1:8000 -u http://192.168.50.50:9000`
omnip runs as a SOCKS5 proxy server, which forwards all the proxy requests to the upstream server specified with the `-u|--upstream` option, in this case it simply translates SOCKS5 proxy requests to HTTP proxy requests. the schemes of the upstream can be one of `http`, `socks5`, `socks4` and their QUIC counterparts `http+quic`, `http+socks5` and `http+socks4`.
omnip runs as a SOCKS5 proxy server, which forwards all the proxy requests to the upstream server specified with the `-u|--upstream` option, in this case it simply translates SOCKS5 proxy requests to HTTP proxy requests. the schemes of the upstream can be one of `http`, `socks5`, `socks4` and their QUIC counterparts `http+quic`, `socks5+quic` and `socks4+quic`.
3. Running omnip as QUIC secured proxy server:
Expand Down
4 changes: 2 additions & 2 deletions src/bin/omnip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn main() -> Result<()> {
cipher: args.cipher,
max_idle_timeout_ms: args.max_idle_timeout_ms,
retry_interval_ms: args.retry_interval_ms,
threads: args.threads,
workers: args.threads,
};

let mut server = Server::new(config, common_quic_config);
Expand Down Expand Up @@ -109,7 +109,7 @@ struct OmnipArgs {
#[arg(short = 'a', long, required = true)]
addr: String,

/// upstream which the proxy server will relay traffic to based on proxy rules,
/// Upstream which the proxy server will relay traffic to based on proxy rules,
/// [<http|socks5|socks4>://]ip:port for example: http://127.0.0.1:8000, http+quic://127.0.0.1:8000
#[arg(short = 'u', long, default_value = "")]
upstream: String,
Expand Down
Loading

0 comments on commit c6fa589

Please sign in to comment.