Forrest logo
back to the wg-quick tool

wg-quick:tldr:53b03

wg-quick: Delete a VPN tunnel.
$ wg-quick down ${interface_name}
try on your machine

The command "wg-quick down ${interface_name}" is used to bring down or deactivate a WireGuard network interface on a Linux system.

Here's a breakdown of the command:

  • "wg-quick" is a utility script typically installed alongside the WireGuard package. It provides an easy and quick way to manage WireGuard interfaces.

  • "down" is an argument passed to "wg-quick" to signify that you want to bring down or deactivate the specified WireGuard interface.

  • "${interface_name}" is a placeholder for the actual name of the WireGuard interface that you want to bring down. You need to replace "${interface_name}" with the correct interface name before running the command. For example, if your WireGuard interface is named "wg0", the command would be: "wg-quick down wg0".

When you execute this command, it will initiate the process to bring down the specified WireGuard interface. This typically involves stopping the WireGuard service, removing routes and IP addresses associated with the interface, and disabling any firewall rules that were allowing traffic through the interface. Once the command completes successfully, the WireGuard interface will no longer be active or available for use.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the wg-quick tool