|
====build for phicomm n1 as a gateway with armbian====
Notice:gfwlist mode cannot work yet
***latest update:add 'adbyby' 'aliddns'
compile with the latest openwrt code and lean‘s luci-app
================How to use=====================
#add ipset support for armbian 3.14.29 kenel (No need for 4.x kernel)
wget https://github.com/bettermanbao/ ... master/ipset.tar.gz
tar zxvf ipset.tar.gz -C /lib/modules/3.14.29/kernel/net/netfilter
depmod -a
#config and run
ip link set eth0 promisc on
modprobe pppoe
docker network create -d macvlan --subnet=192.168.2.0/24 --gateway=192.168.2.1 -o parent=eth0 macnet
docker pull kanshudj/n1-openwrtgateway
docker run --restart always -d --network macnet --privileged kanshudj/n1-openwrtgateway /sbin/init
#set ip
docker ps
docker exec -it ‘container id’ sh
vi /etc/config/network
网段ip要改成主路由对应的ip就行了。 |
|