OpenWrt - 配置
# 端口转发
Web 创建端口转发比较繁琐
uci add firewall redirect
uci set firewall.@redirect[-1].name='201 clash'
uci set firewall.@redirect[-1].src='tailscale'
uci set firewall.@redirect[-1].src_dport='8080'
uci set firewall.@redirect[-1].dest='lan'
uci set firewall.@redirect[-1].dest_ip='192.168.1.100'
uci set firewall.@redirect[-1].dest_port='80'
uci set firewall.@redirect[-1].proto='tcp'
# 如果不知道怎么写,可先从web创建一条记录,查看
uci show firewall | grep '@redirect'
上次更新: 2024/11/22, 23:30:59