Ciao, ho configurato un server wireguard su una vps, dal client sul mio PC connette e tutto a posto, ma il mio router wrt non ne vuole sapere di avviare il client

Questo è il primo errore che ho avuto:

Sun Sep 10 15:23:56 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Sun Sep 10 15:23:57 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Sun Sep 10 15:23:58 2023 daemon.notice netifd: wgclient (10535): RTNETLINK answers: Permission denied

Questo sopra l'ho risolto abilitando ipv6 nel router, ma ora sono fermo qua:

Sun Sep 10 15:30:29 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Sun Sep 10 15:32:21 2023 user.notice wireguard-debug: USER=root ifname=wgclient ACTION=REKEY-GIVEUP SHLVL=1 HOME=/ HOTPLUG_TYPE=wireguard LOGNAME=root DEVICENAME= TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Section @forwarding[0] is disabled, ignoring section
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Section @forwarding[1] is disabled, ignoring section
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Section gls2s option 'reload' is not supported by fw4
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Section gls2s specifies unreachable path '/var/etc/gls2s.include', ignoring section
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Section glblock option 'reload' is not supported by fw4
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Section vpn_server_policy option 'reload' is not supported by fw4
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Automatically including '/usr/share/nftables.d/chain-pre/mangle_output/01-process_mark.nft'
Sun Sep 10 15:32:26 2023 daemon.notice netifd: wgclient (24636): [!] Automatically including '/usr/share/nftables.d/chain-post/mangle_output/out_conn_mark_restore.nft'
Sun Sep 10 15:32:28 2023 daemon.notice netifd: wgclient (24636): DROP  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   match-set GL_MAC_BLOCK src
Sun Sep 10 15:32:29 2023 daemon.notice netifd: wgclient (24636): Failed to parse json data: unexpected character
Sun Sep 10 15:32:29 2023 daemon.notice netifd: wgclient (24636): uci: Entry not found
Sun Sep 10 15:32:29 2023 daemon.notice netifd: wgclient (24636): cat: can't open '/tmp/run/wg_resolved_ip': No such file or directory
Sun Sep 10 15:32:29 2023 daemon.notice netifd: Interface 'wgclient' is now down
Sun Sep 10 15:32:29 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Sun Sep 10 15:32:31 2023 user.notice mwan3[24817]: Execute ifdown event on interface wgclient (unknown)
Sun Sep 10 15:32:35 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()

Qualcuno sa qualocsa? Grazie

Il software del router GLINET AR300M16 si basa su OpenWrt 22.03.4

    Faradayn

    Hai verificato di aver configurato tutto correttamente?
    Hai provato a configurarlo da CLI come da guida di openwrt? https://openwrt.org/docs/guide-user/services/vpn/wireguard/client

    Nel thread che mi avevi linkato (altrove): https://forum.gl-inet.com/t/gl-mt3000-wireguard-wont-connect/31498
    Un utente non riusciva a farlo funzionare proprio perché la GUI non gli mostrava la chiave pubblica

      handymenny La mia VPN funziona, dal client PC connette. Il problema è nel client del router che però non ho configurato io ma viene configurato in automatico dal router come disposto da glinet, ma questa configurazione da errori nei log poi

      Ora ho provato anche a ripristinare il router e rifare ma niente

      Sun Sep 10 16:17:11 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
      Sun Sep 10 16:19:02 2023 user.notice wireguard-debug: USER=root ifname=wgclient ACTION=REKEY-GIVEUP SHLVL=1 HOME=/ HOTPLUG_TYPE=wireguard LOGNAME=root DEVICENAME= TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Section @forwarding[0] is disabled, ignoring section
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Section @forwarding[1] is disabled, ignoring section
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Section gls2s option 'reload' is not supported by fw4
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Section gls2s specifies unreachable path '/var/etc/gls2s.include', ignoring section
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Section glblock option 'reload' is not supported by fw4
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Section vpn_server_policy option 'reload' is not supported by fw4
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Automatically including '/usr/share/nftables.d/chain-pre/mangle_output/01-process_mark.nft'
      Sun Sep 10 16:19:07 2023 daemon.notice netifd: wgclient (6077): [!] Automatically including '/usr/share/nftables.d/chain-post/mangle_output/out_conn_mark_restore.nft'
      Sun Sep 10 16:19:08 2023 daemon.notice netifd: wgclient (6077): DROP all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 match-set GL_MAC_BLOCK src
      Sun Sep 10 16:19:09 2023 daemon.notice netifd: wgclient (6077): Failed to parse json data: unexpected character
      Sun Sep 10 16:19:09 2023 daemon.notice netifd: wgclient (6077): uci: Entry not found
      Sun Sep 10 16:19:09 2023 daemon.notice netifd: wgclient (6077): cat: can't open '/tmp/run/wg_resolved_ip': No such file or directory
      Sun Sep 10 16:19:09 2023 daemon.notice netifd: Interface 'wgclient' is now down
      Sun Sep 10 16:19:09 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
      Sun Sep 10 16:19:11 2023 user.notice mwan3[6241]: Execute ifdown event on interface wgclient (unknown)
      Sun Sep 10 16:19:15 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()

      Informativa privacy - Informativa cookie - Termini e condizioni - Regolamento - Disclaimer - 🏳️‍🌈
      P.I. IT16712091004 - info@fibraclick.it

      ♻️ Il server di questo sito è alimentato al 100% con energia rinnovabile