aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* wg-quick: android: delay setting users until endJason A. Donenfeld2018-05-311-1/+6
| | | | | | | `ndc users add` eventually invokes SOCK_DESTROY on user sockets, causing them to reconnect. By delaying this until after routes are set, we ensure that the sockets reconnect using the tunnel, rather than the old route.
* tools: constanter time encodingJason A. Donenfeld2018-05-311-15/+21
|
* wg-quick: darwin: set DNS servers after delay on route changeJason A. Donenfeld2018-05-311-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: freebsd: configure as p2p linkJason A. Donenfeld2018-05-271-3/+5
|
* wg-quick: darwin: add multiple IP addressesJason A. Donenfeld2018-05-271-2/+2
|
* wg-quick: determine IPs when saving interfaceJason A. Donenfeld2018-05-273-12/+14
|
* wg-quick: freebsd: work around security vulnerabilities in bashJason A. Donenfeld2018-05-241-7/+29
|
* wg-quick: allow enumeration of socket filesJason A. Donenfeld2018-05-232-2/+2
| | | | | These OSes have an unpriv'd ifconfig, so this isn't an even larger info leak.
* wg-quick: better bash completion for non-renaming OSesJason A. Donenfeld2018-05-231-5/+14
|
* wg-quick: support FreeBSD/Darwin search pathJason A. Donenfeld2018-05-234-16/+39
|
* tools: always pass -v as first argument to installJason A. Donenfeld2018-05-231-7/+7
| | | | This lets crippled OSes sed out our -v more easily.
* wg-quick: openbsd: add new implementationJason A. Donenfeld2018-05-221-0/+451
|
* wg-quick: freebsd: add new implementationJason A. Donenfeld2018-05-222-16/+434
|
* wg-quick: darwin: do not remove routes when no real interfaceJason A. Donenfeld2018-05-221-0/+1
|
* wg-quick: darwin: rename namefile environment variableJason A. Donenfeld2018-05-221-1/+1
| | | | This paves the way for an openbsd implementation.
* tools: fix OpenBSD buildFilippo Valsorda2018-05-224-2/+4
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* tools: fix errno propagation and messagesJason A. Donenfeld2018-05-185-9/+8
|
* wg-quick: darwin: simpler inclusion checkJason A. Donenfeld2018-05-171-1/+1
|
* wg-quick: darwin: reorder functionsJason A. Donenfeld2018-05-171-19/+19
|
* wg-quick: darwin: networksetup does not like missing stdioJason A. Donenfeld2018-05-171-1/+1
|
* wg-quick: darwin: avoid routing loop if no defaultJason A. Donenfeld2018-05-171-6/+16
|
* wg-quick: darwin: sometimes there are no network servicesJason A. Donenfeld2018-05-171-2/+1
|
* wg-quick: use invoking shell in auto rootingJason A. Donenfeld2018-05-162-2/+3
|
* wg-quick: add intentionally undocumented userspace implementation knobJason A. Donenfeld2018-05-162-3/+3
| | | | | | 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. Donenfeld2018-05-162-23/+23
| | | | | | 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 downJason A. Donenfeld2018-05-161-13/+25
|
* wg-quick: darwin: bash correctnessJason A. Donenfeld2018-05-161-5/+4
|
* wg-quick: darwin: remove v6 routes after shutdownJason A. Donenfeld2018-05-161-3/+3
| | | | This works around a Darwin kernel bug regarding interface removal.
* wg-quick: darwin: ensure socket directory existsJason A. Donenfeld2018-05-161-5/+1
|
* wg-quick: add darwin implementationJason A. Donenfeld2018-05-151-0/+444
| | | | It's pretty rough and leaves much to be desired, but it works.
* wg-quick: add wg symlinkJason A. Donenfeld2018-05-141-0/+1
|
* wg-quick: add android implementationJason A. Donenfeld2018-05-141-0/+666
|
* tools: reorganize for multiplatform wg-quickJason A. Donenfeld2018-05-145-7/+9
|
* wg-quick: preliminary support for go implementationJason A. Donenfeld2018-05-101-1/+7
|
* wg-quick: account for specified fwmark in auto routing modeJason A. Donenfeld2018-04-151-19/+23
| | | | | | | | | | | If we're doing automatic routing with default routes, but the config has also specified an explicit fwmark, then use that explicit fwmark, even if it's conflicting, since the administrator has explicitly opted into using it. Also, when shutting down the interface, we only now remove the fancy rules if we're in automatic routing mode with default routes. Suggested-by: Luis Ressel <aranea@aixah.de> Reported-by: Saeid Akbari <saeidscorp@yahoo.com>
* wg-quick.8: fix typoJason A. Donenfeld2018-04-041-1/+1
| | | | Reported-by: Mike Pechkin <mike.pechkin@gmail.com>
* wg-quick: hide errors on saveJason A. Donenfeld2018-03-041-1/+1
|
* wg-quick: if resolvconf/run/iface exists, use itJason A. Donenfeld2018-03-041-1/+1
| | | | | Some older broken resolvconfs don't support resolvconf -l, but do have a file in a standard location, so use it.
* wg-quick: if resolvconf/interface-order exists, use itJason A. Donenfeld2018-03-041-3/+12
| | | | | | | Some older broken resolvconf implementations ignore -m, but do have an interface-order list. It's better to use this list dynamically, in case it changes, or in case it's not used by the OS's resolvconf implementation, such as in the case of systemd or openresolv.
* global: in gnu code, use un-underscored asmJason A. Donenfeld2018-03-022-2/+2
|
* tools: fixup errno handlingJason A. Donenfeld2018-02-172-8/+8
|
* tools: FreeBSD doesn't have EAI_NODATAJason A. Donenfeld2018-02-171-2/+15
|
* tools: do not collide types with libc clashesJason A. Donenfeld2018-02-171-4/+10
|
* wg(8): clarify phrasingJason A. Donenfeld2018-02-171-3/+3
|
* tools: allow in-line commentsJason A. Donenfeld2018-02-173-11/+17
|
* tools: normalize strncpy/snprintf usageJason A. Donenfeld2018-02-144-18/+22
|
* wg-quick: match from beginning rather than shift rightJason A. Donenfeld2018-02-061-2/+2
| | | | | Before, this meant that it simply took the last 15 characters, instead of erroring out when there's more than 15 chars.
* tools: endian.h is not portableJason A. Donenfeld2018-02-051-4/+9
|
* curve25519: replace fiat64 with faster hacl64Jason A. Donenfeld2018-02-011-3/+3
| | | | | This reverts commit da4ff396cc5d5e0ff21f9ecbc2f951c048c63fff and adds some optimizations to hacl64.
* curve25519: replace hacl64 with fiat64Jason A. Donenfeld2018-02-011-8/+3
| | | | | | | | | | For now, it's faster: hacl64: 109782 cycles per call fiat64: 108984 cycles per call It's quite possible this commit will be reverted with nice changes from INRIA, though.