|
|
本帖最后由 dayage 于 2022-5-2 12:12 编辑
你大概率是防火墙规则的问题。
既然有旁路有,所以nas肯定有海淘购物的需求,说一下我的设置
1.群晖配置ddns docker服务,op海淘购物passwall等插件对于ddns的服务器地址设置直连规则,满足外网动态访问
2.主路由设置转发规则,直接指向nas ip
3.群晖网关设置指向op ip ,满足海淘购物
4.op防火墙自定义规则设置如下,不搞转发复杂规则
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.
# iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53
# iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53
# [ -n "$(command -v ip6tables)" ] && ip6tables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53
# [ -n "$(command -v ip6tables)" ] && ip6tables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53
# iptables -t nat -I POSTROUTING -o br-lan -j MASQUERADE
# iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
# iptables -t nat -I POSTROUTING -j MASQUERADE
|
|