In case other Fritzbox users want to see the WireGuard kernel device, i.e. the relevant settings incl. Allowed IPs
, this is how I found out:
Enter this URL into your browser:
https://<fritz.box.ip>/#/wizard/support
If you are not yet authenticated to your Fritzbox WebGUI, do it, and then click in the navigation menu on “Help and Info”, scroll all way down, and then click on “FRITZ!Box Support”:
.
Then click on “Save Support Information” (leave the default selection as shown) and wait for the output being generated:
.
It might take a while, before you can download it, and it is large (about 5 MB in my case). You can open it with your favourite text editor.
Search for WireGuard kernel device
.
Private key
and preshared key
are already (hidden)
in the output, but I have also anonymized the public key
, listening port
, and endpoint
:
WireGuard kernel device
----------
interface: wg0
public key: -------------------------------------------=
private key: (hidden)
listening port: -----
peer: -------------------------------------------=
preshared key: (hidden)
allowed ips: 192.168.11.0/24
latest handshake: 22 seconds ago
(just showing the relevant peer)
The interesting information (for me) is the allowed ips
, because I was not sure how it is set up on the Fritzbox. Now I have the confirmation that Allowed IPs
corresponds to the Remote network
shown in the Fritzbox WebGUI for the peer. For experts maybe not surprising…
I still do not know what the ‘wg_config.conf’ file (or whatever it is named) needs to look like, when I want to import it to my Fritzbox, ideally with the current settings, but only with the corrected values as indicated by @flebourse in this thread.
I try to correctly recap:
.
Result for Fritzbox: (wg_config.conf
or whatever named file to be imported to the Fritzbox)
[Interface]
PublicKey = <fritzbox_public_key>
Address = 10.10.10.2/32
DNS = 10.10.10.2
[Peer]
PublicKey = <rutx11_public_key>
PresharedKey = <preshared_key>
Endpoint = ----------------.myfritz.net:-----
AllowedIPs = 192.168.11.0/24
I am sorry, but this is really all confusing to me. When I scan the QR code on the RUTX side (WG peer FB7590AX
, then I see in a drop-down menu for Peer allowed IPs
: 0.0.0.0/0
and 192.168.11.0/24
(ignoring IPv6). The exported file contains:
[Interface]
PrivateKey = -----=
Address = 10.10.10.2/32
DNS = 10.10.10.2
[Peer]
PublicKey =
AllowedIPs = 0.0.0.0/0,::/0
PersistentKeepalive = 25
PresharedKey = -----=
This does not seem to be correct to be imported into the Fritzbox. 
.
.
Result for RUTX:
config interface 'Home'
option proto 'wireguard'
option private_key '-----='
list dns '1.1.1.1'
option mtu '1280'
option metric '3'
option disabled '0'
list addresses '10.10.10.2/24'
config wireguard_Home 'FB7590AX'
option force_tunlink '0'
option tunlink 'any'
option endpoint_port '-----'
option description 'Fritzbox 7590 AX ISDN'
option preshared_key '-----='
option public_key '-----='
option persistent_keepalive '25'
option endpoint_host '-----.myfritz.net'
option route_allowed_ips '1'
list allowed_ips '10.10.10.0/24'
list allowed_ips '192.168.178.0/24'
Sorry that I am so slow in understanding (if at all). 