Wireguard Comet Pro

Hey there, I’ve got my Comet Pro KVM from Kickstarter campaign. I love it ant want to use it remotely via WireGuard.

I’ve tried to establish a connection via WireGuard, but I got the following error:

$ wg-quick up wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 192.168.x.x/32 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
/usr/bin/wg-quick: line 32: resolvconf: command not found
[#] ip link delete dev wg0

Furthermore, I want to enable the service via systemctl enable [email protected] there is neither systemctl nor service installed on the system. Does anyone know how to solve both problems?

Version on the system: v1.7.0 release2 (RM10)

Thanks
Tom

Our other users have successfully configured WireGuard on Comet.

You can refer to these instructions for configuration: GitHub - fragtastic/gl-rm1_wireguard: Wireguard on GL.iNet Comet GL-RM1

@Flora72 thanks for your fast response. I reset the comet pro and tried it again, but it fails. WireGuard is installed by default, so I think the issue is that the resolvconf binary is missing.

Steps to reproduce:

  1. Start the Comet Pro (V1.7.0release2 (RM10).
  2. Generate a WireGuard configuration.
  3. Store the configuration under /etc/wireguard/wg0.conf
  4. Run the command: wg-quick up wg0

To my mind the issue I have should be come up. Can you or somebody else can try it? Just to double check.

Afterwards I want to follow the instructions you posted. But to my mind it shouldn’t be neccessary to install wireguard again via the install script like in the github repo.

I can also have a call or private chat for more troubleshooting, if the issue is confirmed or if you need more information.

Some updates here?

RM10 does not support systemctl and service, WireGuard can be configured without those service:

Manual setup (replace [config-path] and [your-ip]):
ip link add wg0 type wireguard
wg setconf wg0 [config-path]
ip link set wg0 up
ip addr add [your-ip] dev wg0
Example: ip addr add 192.168.100.2/24 dev wg0

For auto-start: Add these commands to a boot script, this avoids wg-quick dependencies entirely.
For reference, boot script/etc/rc.local (create if missing):
echo "ip link add wg0 type wireguard;wg setconf wg0 [config-path]
ip link set wg0 up;ip addr add [your-ip] dev wg0" >> /etc/rc.local
chmod +x /etc/rc.local

Hope this help!

it does not work. Afaik the comet and comet pro has different firmware installed on the system. wg-quick is already installed but I encounter some issues. First with DNS entry:

 bash-5.2# wg-quick up wg0      

[#] ip link add wg0 type wireguard

[#] wg setconf wg0 /dev/fd/63

[#] ip -4 address add 192.168.4.5/32 dev wg0

[#] ip link set mtu 1420 up dev wg0

[#] resolvconf -a wg0 -m 0 -x

/bin/wg-quick: line 32: resolvconf: command not found

[#] ip link delete dev wg0 

after I removed the dns entry:

ash-5.2# wg-quick up wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 192.168.4.5/32 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] wg set wg0 fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] iptables-restore -n
Warning: Extension addrtype revision 0 not supported, missing kernel module?
Warning: Extension comment revision 0 not supported, missing kernel module?
iptables-restore: line 3 failed
[#] ip -4 rule delete table 51820
[#] ip -4 rule delete table main suppress_prefixlength 0
[#] ip link delete dev wg0

Is there any way to get wq-quick working out of the box with a firmware update?

Is it possible to install softwarepackages or contribute to the project? I want to try to fix it but I cant since no package manager I know isn’t installed.