Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Leave wireguard interface up #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ PERSISTENT_KEEPALIVES=25

# Allowed IP's (CIDR) on wireguard; for boot this should be the peer (server).
ALLOWED_IPS=172.31.255.254/32

# If PERSISTENT is set to any non-null value, the wireguard interface will be left up after initramfs exits
#PERSISTENT=Y
6 changes: 4 additions & 2 deletions init-bottom
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ esac

. /etc/wireguard/config

log_begin_msg 'Stopping wireguard boot network'
ip link delete dev ${INTERFACE}
if [ -z "${PERSISTENT}" ]; then
log_begin_msg 'Stopping wireguard boot network'
ip link delete dev ${INTERFACE}
fi
log_end_msg