Skip to content

Instantly share code, notes, and snippets.

@log2c
Created November 12, 2023 03:09
Show Gist options
  • Save log2c/30c7e26be42ef01ddea754edfe83780a to your computer and use it in GitHub Desktop.
Save log2c/30c7e26be42ef01ddea754edfe83780a to your computer and use it in GitHub Desktop.
群晖NAS部署OpenWrt当旁路由

直接部署

部署1

sudo docker run --restart=always -d -p 56:56 dockerproxy.com/oddrationale/docker-shadowsocks -s 0.0.0.0 -p 56 -k you_password -m rc4-md5

部署2

sudo docker run --restart=always -d -p 27833:27833 dockerproxy.com/oddrationale/docker-shadowsocks -s 0.0.0.0 -p 27833 -k you_password@@ -m rc4-md5

拉取不下来时设置代理(可选)

export https_proxy=http://192.168.5.9:6152;export http_proxy=http://192.168.5.9:6152;export all_proxy=socks5://192.168.5.9:6153

拉取镜像

sudo docker pull dockerproxy.com/oddrationale/docker-shadowsocks

连接群晖SSH

sudo -i
ip link set eth0 promisc on

创建网桥

docker network create -d macvlan --subnet=192.168.5.0/24 --gateway 192.168.5.1 -o parent=eth0 mac-net

拉取镜像

docker pull dockerproxy.com/esirpg/buddha:latest

运行镜像

docker run -d \
  --restart always \
  --name esirpg-buddha \
  --privileged \
  --network mac-net \
  --ip=192.168.5.10 \
  dockerproxy.com/esirpg/buddha:latest \
  /sbin/init
bash docker exec -it esirpg-buddha ash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment