找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 275|回复: 4

求助 openwrt+adg如何分流?

[复制链接]
Openwrt做主路由,装adg去广告,但后面还接了wxy跑流量,想着wxy不需要adg去广告,看应该怎样设置进行分流?

例如:
192.168.1.10 --- 192.168.1.100  这个网段走172.0.0.1#53   adg去广告
192.168.1.101 --- 192.168.1.150  这个网段跑wxy,怎样设置可以不经过adg?

我的恩山、我的无线 The best wifi forum is right here.
来自手机 | 显示全部楼层
WXY 在乎这干嘛 WXY要指定DNS不就好了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个教程:https://www.wyr.me/post/705 不经过adg的,dns直接写阿里的就行了 223.5.5.5

点评

为什么我ssh进入dnsmasq.conf,找不到 dhcp-option= 行,是要自己插入添加进去的吗? 修改vim /etc/dnsmasq.conf文件。 dhcp-range=set:OTHER,192.168.1.100,192.168.1.250 dhcp-option=tag:OTHER,3,192.168.1.254  详情 回复 发表于 2024-1-16 20:50
ssh进入后台,是这样设置的吧? dhcp-range=set:OTHER,192.168.1.100,192.168.1.200 dhcp-option=tag:OTHER,3,192.168.1.254 dhcp-option=tag:OTHER,6,192.168.1.254 #走adg去广告 dhcp-range=set:OTHER,192.168  详情 回复 发表于 2023-12-12 17:46

评分

参与人数 1恩山币 +1 收起 理由
ttw*** + 1 感谢你的分享,无论怎样,你都是最无私的人.

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
jjit 发表于 2023-12-12 16:39
这个教程:https://www.wyr.me/post/705 不经过adg的,dns直接写阿里的就行了 223.5.5.5 ...

ssh进入后台,是这样设置的吧?

dhcp-range=set:OTHER,192.168.1.100,192.168.1.200
dhcp-option=tag:OTHER,3,192.168.1.254
dhcp-option=tag:OTHER,6,192.168.1.254   #走adg去广告

dhcp-range=set:OTHER,192.168.1.201,192.168.1.250
dhcp-option=tag:OTHER,3,192.168.1.254
dhcp-option=tag:OTHER,6,223.5.5.5   #走阿里云dns
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
jjit 发表于 2023-12-12 16:39
这个教程:https://www.wyr.me/post/705 不经过adg的,dns直接写阿里的就行了 223.5.5.5 ...

为什么我ssh进入dnsmasq.conf,找不到 dhcp-option= 行,是要自己插入添加进去的吗?
修改vim /etc/dnsmasq.conf文件。

dhcp-range=set:OTHER,192.168.1.100,192.168.1.250
dhcp-option=tag:OTHER,3,192.168.1.254
dhcp-option=tag:OTHER,6,192.168.1.254

[root@OpenWrt:08:42 PM ~] # vi /etc/dnsmasq.conf
# Change the following lines if you want dnsmasq to serve SRV
# records.
# You may add multiple srv-host lines.
# The fields are <name>,<target>,<port>,<priority>,<weight>

# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 289
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389

# Two SRV records for LDAP, each with different priorities
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2

# A SRV record indicating that there is no LDAP server for the domain
# example.com
#srv-host=_ldap._tcp.example.com

# The following line shows how to make dnsmasq serve an arbitrary PTR
# record. This is useful for DNS-SD.
# The fields are <name>,<target>
#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"

# Change the following lines to enable dnsmasq to serve TXT records.
# These are used for things like SPF and zeroconf.
# The fields are <name>,<text>,<text>...
- /etc/dnsmasq.conf 1/38 2%
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 10:50

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表