wget https://github.com/bettermanbao/docker-gateway/raw/master/ipset.tar.gz
tar zxvf ipset.tar.gz -C /lib/modules/3.14.29/kernel/net/netfilter && depmod -a
{
"server": "server address",
"server_port": port,
"password": "password",
"method": "method",
"obfs": "obfs",
"obfs_param": "obfs_param",
"protocol": "protocol",
"protocol_param": "protocol_param"
}
docker network create -d macvlan --subnet=192.168.2.0/24 --gateway=192.168.2.1 -o parent=eth0 macnet
docker run -d --name gateway \
--network macnet --ip 192.168.2.2 \
--privileged \
--restart always \
-v /path/to/config:/root \
bettermanbao/docker-gateway:aarch64-0.0.2
Change 'default gateway' and 'dns server' to 192.168.2.2.