Skip to content
/ autogfw Public

Switch route automatically by realtime active detection.

Notifications You must be signed in to change notification settings

bdbai/autogfw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autogfw

Swith route automatically by realtime active detection.

Linux only

Usage

  1. 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.

Build

  1. Ensure rustup is installed on your system. See https://rustup.rs
  2. Install nightly (2020-01-08) toolchain with rustup install nightly-2020-01-08
  3. cargo build --release

About

Switch route automatically by realtime active detection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages