Skip to content

DianQK/magisk-wireguard-auto-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WireGuard AutoConnect for Android

Auto turn on and off WireGuard by using the ip monitor command. Turn it off when you are home and on when you are away.

Requirements

Kernel supports WireGuard.

Usage

  1. Uninstall WireGuard apk if you installed.
  2. Write your config to /data/misc/wireguard/auto-connect.conf.

Example:

home_ip_prefix="192.168.18"
ping_ip="8.8.8.8"
  1. Put your wg config to /data/misc/wireguard/wg0.conf.
  2. Install this module.
  3. Reboot.

About

Auto turn on and off WireGuard by using the ip monitor command. Turn it off when you are home and on when you are away.

Topics

Resources

License

Stars

Watchers

Forks