WireGuard Archive on lore.kernel.org
 help / Atom feed
* 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

* 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-03  7:28 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

* 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 --]

<div dir="ltr"><div dir="ltr"><div>I use alpine standard 3.8.1, which has kernel 4.14.82-0-vanilla.</div><div>When I start wireguard as client peer with <b>wg-quick up client</b>, It says:</div><div> </div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[#] ip link add client type wireguard<br>[#] wg setconf client /dev/fd/63<br>[#] ip address add <a href="http://10.0.0.4/24">10.0.0.4/24</a> dev client<br>[#] ip link set mtu 1420 dev client<br>[#] ip link set client up<br>[#] resolvconf -a client -m 0 -x<br>[#] wg set client fwmark 51820<br>[#] ip -4 route add <a href="http://0.0.0.0/0">0.0.0.0/0</a> dev client table 51820<br>[#] ip -4 rule add not fwmark 51820 table 51820<br>[#] ip -4 rule add table main suppress_prefixlength 0<br>sysctl: unrecognized option: r<br>BusyBox v1.29.3 (2018-11-21 11:45:56 UTC) multi-call binary.<br><br>Usage: sysctl -p [-enq] [FILE...] / [-enqaw] [KEY[=VALUE]]...<br><br>Show/set kernel parameters<br><br>    -p    Set values from FILEs (default /etc/sysctl.conf)<br>    -e    Don&#39;t warn about unknown keys<br>    -n    Don&#39;t show key names<br>    -q      Quiet<br>    -a    Show all values<br>    -w    Set values<br></blockquote><div> </div><div>The client peer cannot ping server peer.<br></div><br></div></div></div>

[-- 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

end of thread, back to index

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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox