Skip to content

yangyaofei/docker-openclash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A docker image for OpenClash

1. File source

All the file from OpenClash repo, current release is:

2. Start container

docker start --name openclash --privileged yangyaofei/openclash:0.45.78

3. Use as a router with macvlan, bridge the server's network interface

# create a macvlan
docker network create -d macvlan \
  --subnet=192.168.0.0/24 \ # your real network
  --gateway=192.168.0.1 \ # your real router gateway
  -o parent=eth0 \ # the network interface you want to bridge
   pub_net (network name)

docker start --name openclash --privileged --network pub_net --ip 192.168.0.2 yangyaofei/openclash:0.45.78

Now you can set your device's gateway to 192.168.0.2 to use openclash

About

Docker image for OpenClash

Resources

Stars

Watchers

Forks