物理端口映射:eth0 - WAN, eth1~4 - LAN4~1。
默认梅林会将 eth1~7 组成 br0。要做独立的网络就要将 Guest 网络需要用到的 eth 接口从 br0 里摘掉,然后加入到新的 br 里。 这里摘掉了 eth1(对应 LAN4)、wl0.2(第二个 2.4G 访客网络)和 wl1.2(第二个 5G 访客网络)。
之后利用 iptables 允许 Guest 网络访问公网,但禁止其向 br0 主动通信即可。
三个脚本 +x 后放 /jffs/scripts
里(管理页面也要开启 jffs 功能),dnsmasq.conf.add
放 /jffs/configs
里。
梅林版本 386.5_2
,主要参考这个。