From: "M. Dietrich" <mdt@emdete.de>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Defaultroutepiercing
Date: Thu, 18 Jan 2018 15:11:57 +0100 [thread overview]
Message-ID: <1516283661.uwaeedz44a.astroid@morple.none> (raw)
In-Reply-To: <CAHmME9oiqr7dN+riRgJ0jXxxwuXB0U9ot94GsoM7KUWGbEE-0Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]
Quotation from Jason A. Donenfeld at Januar 18, 2018 14:02:
> Take a look at what wg-quick does to solve this:
>
> https://git.zx2c4.com/WireGuard/tree/src/tools/wg-quick.bash#n162
>
> It uses policy routing, which is much nicer than overriding the default route.
>
> If, however, you do with to do it the old 0/1, 128/1 way, here's a
> script to automate that: https://א.cc/gvFOR5BO/bash But I'd recommend
> doing the trick that wg-quick does.
thank you for directing me there - i did not recognize that
wg-quick adds functionality.
using it gives some troubles here with DNS. i use a home grown
script for resolveconf (i do not change the file
/etc/resolv.conf but use dbus to tell dnsmasq the current
nameserver). wg-quick issues a
[#] resolvconf -a tun.wg0 -m 0 -x
which seems to be wrong, the manpage resolvconf(8) states that the
this parameter is
interface[.protocol]
why is "tun." prepended?
the command is issued before the routing is configured.
shouldnt the DNS configuration be applied after routing
changes?
M. Dietrich
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-01-18 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 13:00 Defaultroutepiercing M. Dietrich
2018-01-18 13:02 ` Defaultroutepiercing Jason A. Donenfeld
2018-01-18 14:11 ` M. Dietrich [this message]
2018-01-18 14:20 ` Defaultroutepiercing Jason A. Donenfeld
2018-01-18 14:44 ` Defaultroutepiercing M. Dietrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516283661.uwaeedz44a.astroid@morple.none \
--to=mdt@emdete.de \
--cc=Jason@zx2c4.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).