What is a router

应对特定场景 / 领域的低成本计算机

Routing

将数据包传递到目标地址

Network Address Translation

修改数据包地址

Dynamic Host Configuration Protocol

动态配置网络参数

Domain Name Service

域名解析

Why do it the hard way

  1. 需要对网络数据包做动作,而硬件路由无法满足
  2. OpenWRT(LEDE)、RouterOS、pfSense、iKuai 各有利弊,很难兼得

Router hardware

低功耗工控机, Intel 3855u / 4G RAM / 60G SSD

Router operating system

debian x64

Configuring network interfaces

outbound

Static Network

PPPoE

Enabling NAT

iptables NAT

Setting up DHCP and DNS

dnsmasq

Wireless AP

Unifi AP

AP Controller

Unifi AP Controller