Skip to content
 
 

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language

rs-wgobfs is a cross-platform WireGuard obfuscator written in Rust. It is fully compatible with xt_wgobfs.

  • rs-wgobfs: Cross-platform CLI tool. Runs on Windows, OpenBSD, FreeBSD, and pfSense. It should work on macOS (untested). Iperf3 reaches 820 Mbits/sec in a Windows VM with 8th gen Intel CPU.

  • xt_wgobfs: High-performance Linux kernel module. Works on Linux, including embedded devices with very limited resources (e.g. routers).

Building

Run cargo build --release from inside the rs-wgobfs directory.

Usage

rs-wgobfs -h

USAGE:
  rs-wgobfs [OPTIONS]

OPTIONS:
  -h, --help                          Print help information
  -l or --listen <IP:Port>            Listen address:port
  -f or --forward <IP|Hostname:Port>  Peer's address:port
  -6                                  (Optional) Prefer IPv6 when connecting
                                      to the forward Peer
  -v, --verbose                       Log every forwarded and dropped packet

  -k or --key                         Shared secret (will be repeated or
                                      truncated to 32 characters)

  -m or --mode <obfs|unobfs>          Mode, either obfs or unobfs

At startup the client logs its listening address, mode, and peer. Traffic is shown with (client to peer) and (peer to client). The first packet and every 1000th packet are shown by default; use -v to log every packet. Errors and dropped packets are always reported (repeated drops are rate-limited).

To obfuscate WG to a remote peer, first update the WG configuration, replace the ip/hostname and port of the remote peer with listen_ip:listen_port of rs-wgobfs. Then run:

rs-wgobfs -l listen_ip:listen_port -f wg_server:port -k mysecretkey -m obfs

To accept obfucated WG traffic from clients on a WG server:

rs-wgobfs -l listen_ip:listen_port -f wg_server:port -k mysecretkey -m unobfs

About

WireGuard obfuscation command line tool, fully compatible with Linux kernel module xt_wgobfs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages