Configuration Wireguard

jclaudej

Apprenti
17 Septembre 2026
41
8
13
Bonjour,

Je viens d'installer Wireguard qui est fonctionnel après avoir configurer serveur VPN sur ma Freebox Ultra et aussi demander une adresse IP Full Stack (IPv4 Full-V) pour accédr au port 51820.
J'ai une question concernant l'accès à Wireguard depuis ZimaOS.
Lorsque je veux lancer celle-ci j'arrive sur une page :

Ce site est inaccessible​

192.168.1.13 n'autorise pas la connexion.


Voici quelques conseils :

ERR_CONNECTION_REFUSED

Par contre aucun problème pour accéder à mon NAS via mon smartphone en 5G ?
Je souhaite accéder à l'application, pour verifier le trafic entrant et sortant ;)

Merci d'avance pour votre aide
 
Bonjour,
Par contre aucun problème pour accéder à mon NAS via mon smartphone en 5G ?
Donc il est bien reconnu en tant que client autorisé par WG.
As-tu essayé avec le port de ton ZimaOS en IPv4 ? Si j'ai bon souvenir, tu n'as pas installé le pare-feu ZFW ?
As-tu ce même problème avec tes autres matériels ?
Vu que le serveur est installé sur ta Freebox, cela ne semble pas spécifique à ZimaOS :unsure:
 
Bonsoir moryann,

Non je n'ai pas installé de pare-feu et mon fichier yam est ci-dessous :
IPV4 est obligatoire chez Free avec une adresse IP fixe ;)
Aucun problème avec les autres applications
-------------
Code:
services:
  NAS:
    environment:
      ALLOWEDIPS: ""
      INTERNAL_SUBNET: ""
      LOG_CONFS: ""
      PEERDNS: ""
      PEERS: ""
      PERSISTENTKEEPALIVE_PEERS: ""
      PGID: $PGID
      PUID: $PUID
      SERVERPORT: ""
      SERVERURL: ""
      TZ: $TZ
    image: linuxserver/wireguard:***************
    network_mode: bridge
    ports:
      - 51820:51820/udp
    restart: unless-stopped
    volumes:
      - source: /DATA/AppData/wireguard/config
        target: /config
        type: bind
      - source: /lib/modules
        target: /lib/modules
        type: bind
    x-casaos:
      envs:
        - container: PUID
          description:
            en_US: "Container Variable: PUID"
        - container: PGID
          description:
            en_US: "Container Variable: PGID"
        - container: TZ
          description:
            en_US: "Container Variable: TZ"
        - container: SERVERURL
          description:
            en_US: "Container Variable: SERVERURL"
        - container: SERVERPORT
          description:
            en_US: "Container Variable: SERVERPORT"
        - container: PEERS
          description:
            en_US: "Container Variable: PEERS"
        - container: PEERDNS
          description:
            en_US: "Container Variable: PEERDNS"
        - container: INTERNAL_SUBNET
          description:
            en_US: "Container Variable: INTERNAL_SUBNET"
        - container: ALLOWEDIPS
          description:
            en_US: "Container Variable: ALLOWEDIPS"
        - container: PERSISTENTKEEPALIVE_PEERS
          description:
            en_US: "Container Variable: PERSISTENTKEEPALIVE_PEERS"
        - container: LOG_CONFS
          description:
            en_US: "Container Variable: LOG_CONFS"
      ports:
        - container: "51820"
          description:
            en_US: "Container Port: 51820"
      volumes:
        - container: /config
          description:
            en_US: "Container Path: /config"
        - container: /lib/modules
          description:
            en_US: "Container Path: /lib/modules"
x-casaos:
  architectures:
    - amd64
    - arm64
  author: WisdomSky
  category: Home
  description:
    en_US: WireGuard® is an extremely simple yet fast and modern VPN that utilizes
      state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
      more useful than IPsec, while avoiding the massive headache. It intends to
      be considerably more performant than OpenVPN. WireGuard is designed as a
      general purpose VPN for running on embedded interfaces and super computers
      alike, fit for many different circumstances. Initially released for the
      Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android)
      and widely deployable. It is currently under heavy development, but
      already it might be regarded as the most secure, easiest to use, and
      simplest VPN solution in the industry.
  developer: LinuxServer.io
  hostname: ""
  icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/wireguard.png
  id: com.bigbeartechworld.wireguard
  index: /51820
  main: NAS
  port_map: "51820"
  repo_id: github.com@ccc18c81
  scheme: http
  store_app_id: big-bear-linuxserver-wireguard
  tagline:
    en_US: An extremely simple yet fast and modern VPN that utilizes
      state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
      more useful than IPsec, while avoiding the massive headache. It intends to
      be considerably more performant than OpenVPN. WireGuard is designed as a
      general purpose VPN for running on embedded interfaces and super computers
      alike, fit for many different circumstances. Initially released for the
      Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android)
      and widely deployable. It is currently under heavy development, but
      already it might be regarded as the most secure, easiest to use, and
      simplest VPN solution in the industry.
  thumbnail: https://cdn.jsdelivr.net/gh/selfhst/icons/png/wireguard.png
  title:
    custom: Wireguard
    en_US: Wireguard
----------------------------
La configuration de ma freebox Ultra
wire10.png

@ suivre.....
 
et mon fichier yam est ci-dessous :
Je ne suis pas vraiment spécialiste de la configuration du VPN sur une Box vu que je suis sur FreePro avec serveur VPN intégré (sans aucune configuration) pour l'accès à mon réseau de l'externe.
Mais il me semble qu'il y a un qui joue le rôle de serveur et les autres de clients. Dans ce que tu présentes, c'est ta Box Free qui est le serveur et les autres appareils sont les clients dont ton ZimaOS.
Cependant, ZimaOS n'a pas d'app VPN client, (uniquement serveur VPN). Tu peux contourner cela sur ZimaOS soit en installant GlueTun ou soit WG-Easy et en important le fichier .conf de ta Free.

Dans ton cas, je n'utiliserai pas la FreeBox comme serveur VPN, mais installerai WG-Easy comme serveur VPN sur ton ZimaOS. Ce qui permettra à tes clients d'accéder à ton serveur ZimaOS. J'avais testé ce type de conf début avril et cela fonctionnait nickel :