A lightweight and efficient transparent router solution for debian-based systems.
Install required system packages:
sudo apt update
sudo apt install netplan.io iptables fish net-toolsand install the docker by the script which locatied at scripts/install_docker.fish.
Configure network interfaces using Netplan:
sudo cp netplan/*.yaml /etc/netplan/
sudo netplan applyAvailable configurations:
90-static.yaml- Static IP configuration for router interface99-dhcp.yaml- DHCP fallback configuration
Apply optimized kernel parameters for routing performance:
sudo cp sysctl.d/*.conf /etc/sysctl.d/
sudo sysctl --systemConfigure transparent proxy and security rules:
sudo ./scripts/firewall.fishyou can auto start the script by enable the rc.local service:
sudo systemctl enable rc-localand link the script to /etc/rc.local:
sudo ln -s /path/to/faure.sh/scripts/firewall.fish /etc/rc.localEnable Docker service and start containers:
sudo systemctl enable docker
sudo systemctl start dockerDeploy Mihomo for transparent proxy functionality:
cd compose/mihomo
docker compose up -dDeploy AdGuard Home for DNS filtering:
cd compose/adguard
docker compose up -dDeploy iperf3 for network performance testing:
cd compose/iperf3
docker compose up -dThis project is licensed under the MIT License - see the LICENSE file for details.