Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wg-quick: darwin: support being called from launchd | Jason A. Donenfeld | 2019-06-24 | 1 | -1/+16 |
| | | | | | | | This causes wg-quick up to wait for the monitor to exit before it exits, so that launchd can correctly wait on it. Reported-by: Cameron Palmer <cameron@promon.no> | ||||
* | wg-quick: make darwin and freebsd path search strict like linux | Jason A. Donenfeld | 2019-04-23 | 1 | -1/+2 |
| | |||||
* | wg-quick: add 'strip' subcommand | Luis Ressel | 2019-03-23 | 1 | -1/+9 |
| | | | | | | | | | `wg-quick strip` prints the config file to stdout after stripping it of all wg-quick-specific options. This enables tricks such as `wg addconf $DEV <(wg-quick strip $DEV)`. Signed-off-by: Luis Ressel <aranea@aixah.de> | ||||
* | global: update copyright | Jason A. Donenfeld | 2019-01-07 | 1 | -1/+1 |
| | |||||
* | wg-quick: darwin: prefer system paths for tools | Jason A. Donenfeld | 2018-08-12 | 1 | -1/+1 |
| | | | | | | | | | | | | The only things wg-quick(8) needs from Homebrew are bash(1) and wg(8). Other than that, it's explicitly coded against the native system utilities. Since wg-quick(8) and bash(1) are invoked in auto_su by their full absolute path (via $SELF and $BASH, respectively), we can simply set the $PATH to be prefixed by the default system binary paths. This way, if users install tools that conflict with system tools -- such as GNU coreutils -- we won't accidently call those. Reported-by: Deirdre Connolly <durumcrustulum@gmail.com> | ||||
* | wg-quick: allow link local default gateway | Jason A. Donenfeld | 2018-07-16 | 1 | -1/+0 |
| | | | | | | | It's unclear why it was like this in the first place, but it apparently broke certain IPv6 setups. Reported-by: Jonas Blahut <j@die-blahuts.de> | ||||
* | wg-quick: darwin: set DNS servers after delay on route change | Jason A. Donenfeld | 2018-05-31 | 1 | -2/+6 |
| | | | | | | This works around a race condition in macOS's network daemons, while also adding one in the form of possibly calling kill -ALRM on a stale PID; unfortunately bash can't wait from a trap. | ||||
* | wg-quick: darwin: add multiple IP addresses | Jason A. Donenfeld | 2018-05-27 | 1 | -2/+2 |
| | |||||
* | wg-quick: determine IPs when saving interface | Jason A. Donenfeld | 2018-05-27 | 1 | -4/+4 |
| | |||||
* | wg-quick: allow enumeration of socket files | Jason A. Donenfeld | 2018-05-23 | 1 | -1/+1 |
| | | | | | These OSes have an unpriv'd ifconfig, so this isn't an even larger info leak. | ||||
* | wg-quick: support FreeBSD/Darwin search path | Jason A. Donenfeld | 2018-05-23 | 1 | -5/+13 |
| | |||||
* | wg-quick: freebsd: add new implementation | Jason A. Donenfeld | 2018-05-22 | 1 | -16/+19 |
| | |||||
* | wg-quick: darwin: do not remove routes when no real interface | Jason A. Donenfeld | 2018-05-22 | 1 | -0/+1 |
| | |||||
* | wg-quick: darwin: rename namefile environment variable | Jason A. Donenfeld | 2018-05-22 | 1 | -1/+1 |
| | | | | This paves the way for an openbsd implementation. | ||||
* | wg-quick: darwin: simpler inclusion check | Jason A. Donenfeld | 2018-05-17 | 1 | -1/+1 |
| | |||||
* | wg-quick: darwin: reorder functions | Jason A. Donenfeld | 2018-05-17 | 1 | -19/+19 |
| | |||||
* | wg-quick: darwin: networksetup does not like missing stdio | Jason A. Donenfeld | 2018-05-17 | 1 | -1/+1 |
| | |||||
* | wg-quick: darwin: avoid routing loop if no default | Jason A. Donenfeld | 2018-05-17 | 1 | -6/+16 |
| | |||||
* | wg-quick: darwin: sometimes there are no network services | Jason A. Donenfeld | 2018-05-17 | 1 | -2/+1 |
| | |||||
* | wg-quick: use invoking shell in auto rooting | Jason A. Donenfeld | 2018-05-16 | 1 | -1/+2 |
| | |||||
* | wg-quick: add intentionally undocumented userspace implementation knob | Jason A. Donenfeld | 2018-05-16 | 1 | -1/+1 |
| | | | | | | This knob might disappear at some point, and we don't want to encourage its use, so it's not being documented, but this should help with development of new implementations. | ||||
* | wg-quick: darwin: use bash from environment and require bash 4+ | Jason A. Donenfeld | 2018-05-16 | 1 | -13/+13 |
| | | | | | | For properly configured Homebrew installations /usr/local/bin should be before /bin, so this should still work. This allows the script to be used in more than one setting. | ||||
* | wg-quick: darwin: restore DNS on down | Jason A. Donenfeld | 2018-05-16 | 1 | -13/+25 |
| | |||||
* | wg-quick: darwin: bash correctness | Jason A. Donenfeld | 2018-05-16 | 1 | -5/+4 |
| | |||||
* | wg-quick: darwin: remove v6 routes after shutdown | Jason A. Donenfeld | 2018-05-16 | 1 | -3/+3 |
| | | | | This works around a Darwin kernel bug regarding interface removal. | ||||
* | wg-quick: darwin: ensure socket directory exists | Jason A. Donenfeld | 2018-05-16 | 1 | -5/+1 |
| | |||||
* | wg-quick: add darwin implementation | Jason A. Donenfeld | 2018-05-15 | 1 | -0/+444 |
It's pretty rough and leaves much to be desired, but it works. |