Swith route automatically by realtime active detection.
Linux only
- Run with the following command
# Turn on debug logging
export RUST_LOG=debug
# Add privileges for raw packet processing
sudo setcap cap_net_raw,cap_net_admin=eip ./autogfw
# Start autogfw
./autogfw -m enp4s0 -s enp4s1 -c via 10.10.1.1 dev enp4s1
where:
enp4s0
is the main network interface (ether datalink)enp4s1
is the backup network interface (through VPN)10.10.1.1
is the gateway address to use for the backup network interface
See ./autogfw --help
for more information.
- Ensure
rustup
is installed on your system. See https://rustup.rs - Install nightly (2020-01-08) toolchain with
rustup install nightly-2020-01-08
cargo build --release