DianQK / magisk-wireguard-auto-connect

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:GNU General Public License v3.0


Languages

Language:Shell 97.6%Language:Makefile 2.4%