源码地址:Github
ip link set eth0 promisc on
docker network create -d macvlan \
--subnet=192.168.2.0/24 \
--gateway=192.168.2.1 \
-o parent=eth0 macvlan
docker network ls
mkdir /etc/scutweb
cd /etc/scutweb
vim custom.sh
ip addr flush dev eth0
ip addr add 192.168.2.2/24 brd 192.168.2.255 dev eth0
ip route add default via 192.168.2.1
vim /etc/scutweb/outbounds.json
vim /etc/scutweb/routing.json
docker run --restart always \
--name scutweb \
--network macvlan \
--privileged -d \
--volume /etc/scutweb/:/etc/xray/expose/ \
--volume /etc/timezone:/etc/timezone:ro \
--volume /etc/localtime:/etc/localtime:ro \
dnomd343/tproxy
docker ps -a
vim /etc/network/interfaces
补充如下配置
auto eth0
iface eth0 inet manual
auto macvlan
iface macvlan inet static
address 192.168.2.34
netmask 255.255.255.0
gateway 192.168.2.2
dns-nameservers 192.168.2.3
pre-up ip link add macvlan link eth0 type macvlan mode bridge
post-down ip link del macvlan link eth0 type macvlan mode bridge
reboot
Content type
Image
Digest
sha256:ac241a6f1…
Size
13.7 MB
Last updated
about 4 years ago
docker pull dnomd343/tproxy