New to WireGuard (and IPv6) but interested in its use here. I’m challenged getting it to work:
Local machine is Ubutun 20.04 with WireGuard (sudo apt install wireguard
)
Following the instructions, I was unable to use basic
as the DNS name:
NOTE the documented flow no longer matches the
flyctl wireguard create
flow (v0.0.210).
flyctl wireguard create
Automatically selected personal organization: [[redacted]]
? Region in which to add WireGuard peer: sea
? New DNS name for WireGuard peer: basic
Creating WireGuard peer "basic" in region "sea" for organization personal
Error add peer failed: Name has already been taken
So, I used my freddie
.
I assume (!?) basic
is a global name for that region because, it’s not in my org:
flyctl wireguard list
Automatically selected personal organization: Daz Wilkin
+---------+--------+---------------------------+
| NAME | REGION | PEER IP |
+---------+--------+---------------------------+
| freddie | sea | [[IPv6-redacted]] |
+---------+--------+---------------------------+
Then I:
wg-quick up freddie
[#] ip link add freddie type wireguard
[#] wg setconf freddie /dev/fd/63
[#] ip -6 address add [[IPv6-redacted]]/120 dev freddie
[#] ip link set mtu 1420 up dev freddie
[#] resolvconf -a freddie -m 0 -x
[#] ip -6 route add fdaa:0:205d::/48 dev freddie
And:
ip a show freddie
515: freddie: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet6 [[IPv6-redacted]]/120 scope global
valid_lft forever preferred_lft forever
But:
dig -6 _apps.internal TXT
Yields:
; <<>> DiG 9.16.1-Ubuntu <<>> _apps.internal TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26815
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;_apps.internal. IN TXT
;; Query time: 971 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Apr 14 09:40:38 PDT 2021
;; MSG SIZE rcvd: 43
I have an app deployed:
flyctl apps list
NAME OWNER STATUS LATEST DEPLOY
[[app]] personal running 43m47s ago
And I added:
[experimental]
private_network = true
NOTE I am confused by this annotation. IIUC, it enables private networking but I expected it to disable public networking too; it does not.