wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* sysctl of Alpine standard 3.8.1 doesn't support option -r.
@ 2018-12-03  7:28 Du Felix
  2018-12-05 13:59 ` Lonnie Abelbeck
  0 siblings, 1 reply; 4+ messages in thread
From: Du Felix @ 2018-12-03  7:28 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 1001 bytes --]

I use alpine standard 3.8.1, which has kernel 4.14.82-0-vanilla.
When I start wireguard as client peer with *wg-quick up client*, It says:


> [#] ip link add client type wireguard
> [#] wg setconf client /dev/fd/63
> [#] ip address add 10.0.0.4/24 dev client
> [#] ip link set mtu 1420 dev client
> [#] ip link set client up
> [#] resolvconf -a client -m 0 -x
> [#] wg set client fwmark 51820
> [#] ip -4 route add 0.0.0.0/0 dev client table 51820
> [#] ip -4 rule add not fwmark 51820 table 51820
> [#] ip -4 rule add table main suppress_prefixlength 0
> sysctl: unrecognized option: r
> BusyBox v1.29.3 (2018-11-21 11:45:56 UTC) multi-call binary.
>
> Usage: sysctl -p [-enq] [FILE...] / [-enqaw] [KEY[=VALUE]]...
>
> Show/set kernel parameters
>
>     -p    Set values from FILEs (default /etc/sysctl.conf)
>     -e    Don't warn about unknown keys
>     -n    Don't show key names
>     -q      Quiet
>     -a    Show all values
>     -w    Set values
>

The client peer cannot ping server peer.

[-- Attachment #1.2: Type: text/html, Size: 1390 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sysctl of Alpine standard 3.8.1 doesn't support option -r.
  2018-12-03  7:28 sysctl of Alpine standard 3.8.1 doesn't support option -r Du Felix
@ 2018-12-05 13:59 ` Lonnie Abelbeck
  2018-12-06 23:59   ` Jason A. Donenfeld
  0 siblings, 1 reply; 4+ messages in thread
From: Lonnie Abelbeck @ 2018-12-05 13:59 UTC (permalink / raw)
  To: Du Felix; +Cc: wireguard


> On Dec 3, 2018, at 1:28 AM, Du Felix <boost.subscribing@gmail.com> wrote:
> 
> I use alpine standard 3.8.1, which has kernel 4.14.82-0-vanilla.
> When I start wireguard as client peer with wg-quick up client, It says:
>  
> [#] ip link add client type wireguard
> [#] wg setconf client /dev/fd/63
> [#] ip address add 10.0.0.4/24 dev client
> [#] ip link set mtu 1420 dev client
> [#] ip link set client up
> [#] resolvconf -a client -m 0 -x
> [#] wg set client fwmark 51820
> [#] ip -4 route add 0.0.0.0/0 dev client table 51820
> [#] ip -4 rule add not fwmark 51820 table 51820
> [#] ip -4 rule add table main suppress_prefixlength 0
> sysctl: unrecognized option: r
> BusyBox v1.29.3 (2018-11-21 11:45:56 UTC) multi-call binary.
> 
> Usage: sysctl -p [-enq] [FILE...] / [-enqaw] [KEY[=VALUE]]...
> 
> Show/set kernel parameters
> 
>     -p    Set values from FILEs (default /etc/sysctl.conf)
>     -e    Don't warn about unknown keys
>     -n    Don't show key names
>     -q      Quiet
>     -a    Show all values
>     -w    Set values

In your "wg-quick" script, try changing the line:
-- from --
done < <(sysctl -a -r '^net\.ipv4.conf\.[^ .=]+\.rp_filter$')
-- to --
done < <(sysctl -a 2>/dev/null | sed -n -r 's#^(net\.ipv4.conf\.[^ .=]+\.rp_filter).*$#\1#p')
--

Lonnie



_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sysctl of Alpine standard 3.8.1 doesn't support option -r.
  2018-12-05 13:59 ` Lonnie Abelbeck
@ 2018-12-06 23:59   ` Jason A. Donenfeld
  0 siblings, 0 replies; 4+ messages in thread
From: Jason A. Donenfeld @ 2018-12-06 23:59 UTC (permalink / raw)
  To: Lonnie Abelbeck; +Cc: WireGuard mailing list

Does alpine have a coreutils sysctl that takes precedent in PATH when installed?
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sysctl of Alpine standard 3.8.1 doesn't support option -r.
@ 2018-12-24 13:46 Sterrenboer
  0 siblings, 0 replies; 4+ messages in thread
From: Sterrenboer @ 2018-12-24 13:46 UTC (permalink / raw)
  To: wireguard

Hi Du, Lonnie, Jason 

To get wg-quick working on my alpine edge, I had to install 

- bash for /bin/bash
- procps for systctl
- openresolv for dns
- iproute2 for /sbin/ip

I suspect that it is the same on 3.8.1. I don’t know why the wireguard-tools package does not depend on them, as wg-quick does not work without them.  I guess that the reason is that the wg binary itself does not depend on them…. formally.  If that is the case, then maybe it would make sense if wg-quick is its own package, which can then have its own dependencies.

Thanks for the awesome work on wireguard & happy holidays.

Cheers,
Sterrenboer
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-02 18:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-03  7:28 sysctl of Alpine standard 3.8.1 doesn't support option -r Du Felix
2018-12-05 13:59 ` Lonnie Abelbeck
2018-12-06 23:59   ` Jason A. Donenfeld
2018-12-24 13:46 Sterrenboer

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).