WireGuard Archive on lore.kernel.org
 help / 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; 3+ 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] 3+ 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; 3+ 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] 3+ 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; 3+ 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] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ 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

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