Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wireguard Site-to-Site VPN to Azure server

Featured Replies

Hi folks,

I've tried it before and failed and now I'm hoping that someone here has done it before. I want to set up a site-to-site VPN with Wireguard to monitor my unRAID server with all its services and Docker containers from the outside, even if the power is out at home etc. I also have a small Linux server at Azure for this purpose and would like to connect my local unRAID server and the Azure VM.

I've done everything you're supposed to do according to normal tutorials, but it just doesn't work. I have also enabled port 51820 for WireGuard for my unRAID server in my router (FRITZ!Box). LAN to LAN access should be right I hope.

 

Then I used DuckDNS to secure a domain just for this purpose.

unRAID Config:

image.thumb.png.d6f5375d1caf5fae145350737088015e.png

 

This is my container config in Azure (port 51820 in Azure opened as well):

services:
  wireguard:
    image: linuxserver/wireguard:latest
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - SERVERPORT=51820 #optional
      - SERVERURL=private...
      - PEERS=1
      - PEERDNS=auto
      - INTERNAL_SUBNET=10.13.13.0
      - PERSISTENTKEEPALIVE_PEERS=25
      - LOG_CONFS=true
      - ALLOWEDIPS=0.0.0.0/0
    volumes:
      - /media/appdata/wireguard/config:/config
      - /lib/modules:/lib/modules #optional
    ports:
      - 51820:51820/udp
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
    restart: unless-stopped
    networks:
      - azure

networks:
  azure:
    external: true

 

And I have this wg0.conf in my Azure Wireguard Container:

[Interface]
Address = 10.13.13.1
ListenPort = 51820
PrivateKey = private IDK where its from
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE

[Peer]
# peer1
PublicKey = public
PresharedKey = preshared
AllowedIPs = 10.13.13.2/32

 

If you read on the internet it should be simple but I cannot achieve what I want.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.