Skip to content

Instantly share code, notes, and snippets.

@teslamint
Created April 15, 2020 10:57
Show Gist options
  • Save teslamint/54c53637f05d34101cf340c49d4488e5 to your computer and use it in GitHub Desktop.
Save teslamint/54c53637f05d34101cf340c49d4488e5 to your computer and use it in GitHub Desktop.
[OpenWrt] Restart WireGuard(WGCF) interface if WAN is up
[ "ifup" = "$ACTION" ] && {
[ "wan" = "$DEVICE" ] && {
ifconfig wgcf down
ifconfig wgcf up
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment