FreeBSD Bugzilla – Attachment 246568 Details for
Bug 275341
Cannot add a route to a wireguard interface without the device having an address.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Change made to wg-quick to work around this problem.
wg-quick.diff.txt (text/plain), 1.22 KB, created by
Sean Cody
on 2023-11-25 21:55:23 UTC
(
hide
)
Description:
Change made to wg-quick to work around this problem.
Filename:
MIME Type:
Creator:
Sean Cody
Created:
2023-11-25 21:55:23 UTC
Size:
1.22 KB
patch
obsolete
>--- /usr/local/bin/wg-quick 2023-11-24 18:57:09.202192000 -0800 >+++ /usr/local/bin/wg-quick 2023-11-24 18:58:35.278192000 -0800 >@@ -117,6 +117,7 @@ > add_if() { > local ret rc > if ret="$(cmd ifconfig wg create name "$INTERFACE" 2>&1 >/dev/null)"; then >+ cmd ifconfig $INTERFACE inet 127.0.0.200/32 > return 0 > fi > rc=$? >@@ -315,13 +316,14 @@ > > add_route() { > [[ $TABLE != off ]] || return 0 >- >+ > local family=inet > [[ $1 == *:* ]] && family=inet6 > > if [[ -n $TABLE && $TABLE != auto ]]; then > cmd route -q -n add "-$family" -fib "$TABLE" "$1" -interface "$INTERFACE" > elif [[ $1 == */0 ]]; then >+ cmd route -q -n add "-$family" -fib "$TABLE" "$1" -interface "$INTERFACE" > if [[ $1 == *:* ]]; then > AUTO_ROUTE6=1 > cmd route -q -n add -inet6 ::/1 -interface "$INTERFACE" >@@ -439,6 +441,7 @@ > } > > cmd_down() { >+ echo down > [[ " $(wg show interfaces) " == *" $INTERFACE "* ]] || die "\`$INTERFACE' is not a WireGuard interface" > execute_hooks "${PRE_DOWN[@]}" > [[ $SAVE_CONFIG -eq 0 ]] || save_config
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275341
: 246568