查看完整版本 : 關於nas架設wireguard問題

deadman12 2024-1-16 23:53

我用docker安裝wg-easy嚟控制wireguard,不過端口改嚟改去改唔到,明明我已經將所有51820改成53332,但裝完睇返wg0.conf,依然係51820,默認哩個端口如果係大陸用我怕會封鎖,我有冇漏做什麼?
version: "3.8"
volumes:
  etc_wireguard:
services:
  wg-easy:
    environment:
      # ⚠️ Required:
      # Change this to your host's public address
      - WG_HOST=123.test123.fun
      # Optional:
      - PASSWORD=sdsd2001
      - WG_PORT=53332
      - WG_DEFAULT_ADDRESS=10.0.1.x
      - WG_DEFAULT_DNS=[url=http://1.1.1.1]1.1.1.1[/url]
      - WG_MTU=1420
      - WG_ALLOWED_IPS=[url=http://0.0.0.0/0]0.0.0.0/0[/url]
      - WG_PERSISTENT_KEEPALIVE=25
    image: [url=http://ghcr.io/wg-easy/wg-easy]ghcr.io/wg-easy/wg-easy[/url]
    container_name: wg-easy
    volumes:
      - etc_wireguard:/etc/wireguard
    ports:
      - "53332:53332/udp"
      - "51821:51821/tcp"
    restart: unless-stopped
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.ip_forward=1
      - net.ipv4.conf.all.src_valid_mark=1

yeswzq 2024-2-18 07:27

[quote]原帖由 [i]deadman12[/i] 於 2024-1-16 23:53 發表 [url=https://www.discuss.com.hk/redirect.php?goto=findpost&pid=564020587&ptid=31439868][img]https://www.discuss.com.hk/images/common/back.gif[/img][/url]

我用docker安裝wg-easy嚟控制wireguard,不過端口改嚟改去改唔到,明明我已經將所有51820改成53332,但裝完睇返wg0.conf,依然係51820,默認哩個端口如果係大陸用我怕會封鎖,我有冇漏做什麼?
version: "3.8"
volumes:
  etc_wireguard:
services:
  wg-easy:
    environment:
  ... [/quote]
大佬你好啊~闊以同你私下交流搭建經驗啊?你line或者fb email ,我聯繫你。多謝!
頁: [1]
查看完整版本: 關於nas架設wireguard問題