WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Cross compiling wireguard-go for ARM with utiliities
@ 2018-07-26 16:12 Jacob Schooley
  2018-07-26 16:16 ` Jason A. Donenfeld
  0 siblings, 1 reply; 9+ messages in thread
From: Jacob Schooley @ 2018-07-26 16:12 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

I'm trying to run wireguard on an old embedded device. I have a tun module
for it, but the kernel is too old for the wireguard module, so I compiled
wireguard-go and it runs and creates the interface. However, it looks like
I need the the wg utility to configure the interface with the keys, and
wg-quick to use a config file, but I can't seem to find a way to easily
compile those without also compiling the module. Is there a way to do that?
Or will I have to pull out my old raspberry pi and update it just to get
those utilities?

[-- Attachment #2: Type: text/html, Size: 564 bytes --]

<div dir="ltr">I&#39;m trying to run wireguard on an old embedded device. I have a tun module for it, but the kernel is too old for the wireguard module, so I compiled wireguard-go and it runs and creates the interface. However, it looks like I need the the wg utility to configure the interface with the keys, and wg-quick to use a config file, but I can&#39;t seem to find a way to easily compile those without also compiling the module. Is there a way to do that? Or will I have to pull out my old raspberry pi and update it just to get those utilities?</div>

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

* Re: Cross compiling wireguard-go for ARM with utiliities
  2018-07-26 16:12 Cross compiling wireguard-go for ARM with utiliities Jacob Schooley
@ 2018-07-26 16:16 ` Jason A. Donenfeld
  2018-07-26 23:02   ` Android Update wants Camera Permissions John Huttley
  0 siblings, 1 reply; 9+ messages in thread
From: Jason A. Donenfeld @ 2018-07-26 16:16 UTC (permalink / raw)
  To: Jacob Schooley; +Cc: WireGuard mailing list

cd src/tools
make

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

* Android Update wants Camera Permissions
  2018-07-26 16:16 ` Jason A. Donenfeld
@ 2018-07-26 23:02   ` John Huttley
  2018-07-26 23:11     ` Jason A. Donenfeld
  2018-07-26 23:15     ` Denis Kisselev
  0 siblings, 2 replies; 9+ messages in thread
From: John Huttley @ 2018-07-26 23:02 UTC (permalink / raw)
  To: wireguard

I just updated. It wanted Camera Access.

Odd..

--John

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

* Re: Android Update wants Camera Permissions
  2018-07-26 23:02   ` Android Update wants Camera Permissions John Huttley
@ 2018-07-26 23:11     ` Jason A. Donenfeld
  2018-07-27  7:10       ` Martin Eskdale Moen
  2018-07-26 23:15     ` Denis Kisselev
  1 sibling, 1 reply; 9+ messages in thread
From: Jason A. Donenfeld @ 2018-07-26 23:11 UTC (permalink / raw)
  To: John Huttley; +Cc: WireGuard mailing list

It now supports scanning QR codes.

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

* Re: Android Update wants Camera Permissions
  2018-07-26 23:02   ` Android Update wants Camera Permissions John Huttley
  2018-07-26 23:11     ` Jason A. Donenfeld
@ 2018-07-26 23:15     ` Denis Kisselev
  2018-07-26 23:21       ` Jason A. Donenfeld
  1 sibling, 1 reply; 9+ messages in thread
From: Denis Kisselev @ 2018-07-26 23:15 UTC (permalink / raw)
  To: John Huttley, wireguard

[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]

It looks like they recently added scanning QR codes as a way to import tunnel definitions: https://git.zx2c4.com/wireguard-android/commit/?id=2087a10f5533e4b61811a3cb4e5019dcf2560d81

That permission should probably only be requested as-needed but I suspect that wg is targeting an older Android API that doesn't expose that capability.


________________________________
From: WireGuard <wireguard-bounces@lists.zx2c4.com> on behalf of John Huttley <john@mib-infotech.co.nz>
Sent: Thursday, July 26, 2018 4:02 PM
To: wireguard@lists.zx2c4.com
Subject: Android Update wants Camera Permissions

I just updated. It wanted Camera Access.

Odd..

--John

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.zx2c4.com%2Fmailman%2Flistinfo%2Fwireguard&amp;data=02%7C01%7C%7C7d8b0abc06af486ba71508d5f34be34d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636682429617130077&amp;sdata=CXPVASw1Rh8R%2BK8W1fkg3Ub6X0Uk0FnColak%2F%2B5eCe4%3D&amp;reserved=0

[-- Attachment #2: Type: text/html, Size: 2708 bytes --]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It looks like they recently added scanning QR codes as a way to import tunnel definitions:&nbsp;<a href="https://git.zx2c4.com/wireguard-android/commit/?id=2087a10f5533e4b61811a3cb4e5019dcf2560d81" id="LPlnk940125">https://git.zx2c4.com/wireguard-android/commit/?id=2087a10f5533e4b61811a3cb4e5019dcf2560d81</a></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That permission should probably only be requested as-needed but I suspect that wg&nbsp;is targeting an older Android API that doesn't expose that capability.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> WireGuard &lt;wireguard-bounces@lists.zx2c4.com&gt; on behalf of John Huttley &lt;john@mib-infotech.co.nz&gt;<br>
<b>Sent:</b> Thursday, July 26, 2018 4:02 PM<br>
<b>To:</b> wireguard@lists.zx2c4.com<br>
<b>Subject:</b> Android Update wants Camera Permissions</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I just updated. It wanted Camera Access.<br>
<br>
Odd..<br>
<br>
--John<br>
<br>
_______________________________________________<br>
WireGuard mailing list<br>
WireGuard@lists.zx2c4.com<br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.zx2c4.com%2Fmailman%2Flistinfo%2Fwireguard&amp;amp;data=02%7C01%7C%7C7d8b0abc06af486ba71508d5f34be34d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636682429617130077&amp;amp;sdata=CXPVASw1Rh8R%2BK8W1fkg3Ub6X0Uk0FnColak%2F%2B5eCe4%3D&amp;amp;reserved=0">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.zx2c4.com%2Fmailman%2Flistinfo%2Fwireguard&amp;amp;data=02%7C01%7C%7C7d8b0abc06af486ba71508d5f34be34d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636682429617130077&amp;amp;sdata=CXPVASw1Rh8R%2BK8W1fkg3Ub6X0Uk0FnColak%2F%2B5eCe4%3D&amp;amp;reserved=0</a><br>
</div>
</span></font></div>
</body>
</html>

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

* Re: Android Update wants Camera Permissions
  2018-07-26 23:15     ` Denis Kisselev
@ 2018-07-26 23:21       ` Jason A. Donenfeld
  2018-07-26 23:25         ` Eric Kuck
  0 siblings, 1 reply; 9+ messages in thread
From: Jason A. Donenfeld @ 2018-07-26 23:21 UTC (permalink / raw)
  To: Denis Kisselev; +Cc: WireGuard mailing list, Eric Kuck

[adding Eric and Harsh to the CC]

On Fri, Jul 27, 2018 at 1:15 AM Denis Kisselev <denis@dkisselev.net> wrote:
> That permission should probably only be requested as-needed but I suspect that wg is targeting an older Android API that doesn't expose that capability.

It was my understanding that only Android 4 would prompt at install
time and Android 5+ would only prompt when actually used. Perhaps I'm
mistaken?

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

* Re: Android Update wants Camera Permissions
  2018-07-26 23:21       ` Jason A. Donenfeld
@ 2018-07-26 23:25         ` Eric Kuck
  0 siblings, 0 replies; 9+ messages in thread
From: Eric Kuck @ 2018-07-26 23:25 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

Yes, that is correct. It's requested at time of first use only.

On Thu, Jul 26, 2018, 6:21 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> [adding Eric and Harsh to the CC]
>
> On Fri, Jul 27, 2018 at 1:15 AM Denis Kisselev <denis@dkisselev.net>
> wrote:
> > That permission should probably only be requested as-needed but I
> suspect that wg is targeting an older Android API that doesn't expose that
> capability.
>
> It was my understanding that only Android 4 would prompt at install
> time and Android 5+ would only prompt when actually used. Perhaps I'm
> mistaken?
>

[-- Attachment #2: Type: text/html, Size: 928 bytes --]

<div dir="auto">Yes, that is correct. It&#39;s requested at time of first use only.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 26, 2018, 6:21 PM Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[adding Eric and Harsh to the CC]<br>
<br>
On Fri, Jul 27, 2018 at 1:15 AM Denis Kisselev &lt;<a href="mailto:denis@dkisselev.net" target="_blank" rel="noreferrer">denis@dkisselev.net</a>&gt; wrote:<br>
&gt; That permission should probably only be requested as-needed but I suspect that wg is targeting an older Android API that doesn&#39;t expose that capability.<br>
<br>
It was my understanding that only Android 4 would prompt at install<br>
time and Android 5+ would only prompt when actually used. Perhaps I&#39;m<br>
mistaken?<br>
</blockquote></div>

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

* Re: Android Update wants Camera Permissions
  2018-07-26 23:11     ` Jason A. Donenfeld
@ 2018-07-27  7:10       ` Martin Eskdale Moen
  2018-07-27 13:54         ` Laszlo KERTESZ
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Eskdale Moen @ 2018-07-27  7:10 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

This is amazing, thank you.

On Fri, Jul 27, 2018 at 12:12 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> It now supports scanning QR codes.
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #2: Type: text/html, Size: 717 bytes --]

<div dir="ltr">This is amazing, thank you.<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 12:12 AM Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It now supports scanning QR codes.<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>

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

* Re: Android Update wants Camera Permissions
  2018-07-27  7:10       ` Martin Eskdale Moen
@ 2018-07-27 13:54         ` Laszlo KERTESZ
  0 siblings, 0 replies; 9+ messages in thread
From: Laszlo KERTESZ @ 2018-07-27 13:54 UTC (permalink / raw)
  To: martinmoen; +Cc: wireguard

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

Wow. It actually works!
I tested it with qrencode and i was able to import the profile from my
headless router via ssh using only a terminal!
Just install qrencode and run:

cat profile.conf | qrencode -t UTF8 -o -


And scan the result.

Well done.

On Fri, Jul 27, 2018 at 10:12 AM Martin Eskdale Moen <martinmoen@gmail.com>
wrote:

> This is amazing, thank you.
>
> On Fri, Jul 27, 2018 at 12:12 AM Jason A. Donenfeld <Jason@zx2c4.com>
> wrote:
>
>> It now supports scanning QR codes.
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #2: Type: text/html, Size: 1862 bytes --]

<div dir="ltr">Wow. It actually works!<div>I tested it with qrencode and i was able to import the profile from my headless router via ssh using only a terminal!<br></div><div>Just install qrencode and run:<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">cat profile.conf | qrencode -t UTF8 -o -</blockquote><div><br></div><div>And scan the result.</div><div><br></div><div>Well done.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 10:12 AM Martin Eskdale Moen &lt;<a href="mailto:martinmoen@gmail.com">martinmoen@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is amazing, thank you.<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 12:12 AM Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It now supports scanning QR codes.<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>

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

end of thread, back to index

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 16:12 Cross compiling wireguard-go for ARM with utiliities Jacob Schooley
2018-07-26 16:16 ` Jason A. Donenfeld
2018-07-26 23:02   ` Android Update wants Camera Permissions John Huttley
2018-07-26 23:11     ` Jason A. Donenfeld
2018-07-27  7:10       ` Martin Eskdale Moen
2018-07-27 13:54         ` Laszlo KERTESZ
2018-07-26 23:15     ` Denis Kisselev
2018-07-26 23:21       ` Jason A. Donenfeld
2018-07-26 23:25         ` Eric Kuck

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