From: Isaac Nickaein <nickaein.i@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: Minor bugs in the sample script for ns-routing
Date: Sat, 8 Feb 2020 08:31:21 +0330 [thread overview]
Message-ID: <CA+NJmkessNRmWxxST5tZSijVJU4QZevibKZ2XbXEWRCUty54PQ@mail.gmail.com> (raw)
The sample script provided at "Routing and Network Namespace
Intergration" page seems to have a few bugs, at least on Ubuntu 19.10:
1. The execi command seems to have an extra "exec" at the beginning. Instead of:
exec ip netns exec physical sudo -E -u \#${SUDO_UID:-$(id -u)} -g
\#${SUDO_GID:-$(id -g)} -- "$@"
It should say:
ip netns exec physical sudo -E -u \#${SUDO_UID:-$(id -u)} -g
\#${SUDO_GID:-$(id -g)} -- "$@"
2. The "shift" command should be moved into "execi" function.
3. dhcpd seems to be replaced by dhclient. It would be nice if the
script set it (and other configurations) as a variable, e.g. to make
it easier for user to adopt the script:
DHCP_DAEMON=dhcpd
WG_IFACE=wgvpn0
WLAN_IFACE=wlan0
WLAN_PHY=phy0
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard
next reply other threads:[~2020-02-08 21:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-08 5:01 Isaac Nickaein [this message]
2020-02-08 21:33 ` Jason A. Donenfeld
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=CA+NJmkessNRmWxxST5tZSijVJU4QZevibKZ2XbXEWRCUty54PQ@mail.gmail.com \
--to=nickaein.i@gmail.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).