runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
943 stars 132 forks source link

Package fails to run on DSM 7.2 #180

Closed apschultz closed 1 year ago

apschultz commented 1 year ago

Description DS918+ running DSM 7.2. Downloaded the current 7.2 package and built a custom package from latest git.

After installing the package, the package reports failed. /var/log/packages/WireGuard.log shows two issues.

First:

2023/08/24 10:56:03     install WireGuard 1.0.20220627 Begin start-stop-status start
/var/packages/WireGuard/scripts/start-stop-status: line 15: /usr/syno/etc/iptables_modules_list: Permission denied

I gave /usr/syno/etc/iptables_modules_list 444 permissions to get past this

Second:

2023/08/24 11:03:52     start WireGuard 1.0.20220627 Begin start-stop-status start
sysctl: permission denied on key 'net.ipv4.ip_forward'
Loaded 255 iptables core modules
Loaded 255 iptables NAT modules
insmod: ERROR: could not insert module /volume2/@appstore/WireGuard/wireguard/wireguard.ko: Operation not permitted

With root user, I can manually install the module

Steps to reproduce Install latest package for DSM 7.2

Expected behavior Package installs and starts successfully. Kernel module loaded.

Synology NAS model DS918+

apschultz commented 1 year ago

Closing myself. This issue is documented in the readme.