V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
im3feng
V2EX  ›  问与答

UBNT USG-3 网关设置过滤广告的方法

  •  
  •   im3feng · 2021-06-16 22:15:46 +08:00 · 1039 次点击
    这是一个创建于 1039 天前的主题,其中的信息可能已经有所发展或是发生改变。

    USG-3 在 unifi 无法修改 hosts,界面提供的 security->restriction definitions 并不能添加指定地址。

    为屏蔽电视广告,ssh 进入 usg,看到用的 dns 服务器是 dnsmasq,尝试修改如下: sudo vi /etc/dnsmasq.conf 在末尾增加一行 addn-hosts=/etc/hosts

    然后再 sudo vi /etc/hosts 修改如下: 127.0.0.1 sdkauth.hpplay.cn 127.0.0.1 adeng.hpplay.cn 127.0.0.1 ad.hpplay.cn 127.0.0.1 conf.hpplay.cn 127.0.0.1 fix.hpplay.cn 127.0.0.1 adcdn.hpplay.cn 127.0.0.1 sl.hpplay.cn 127.0.0.1 rp.hpplay.cn 127.0.0.1 adscdn.cedock.com 127.0.0.1 api.upgrade.platform.huan.tv 127.0.0.1 imgad0.pcauto.com.cn 127.0.0.1 ada.baidu.com 127.0.0.1 v3-ad.ixigua.com 127.0.0.1 ykad-gateway.youku.com 127.0.0.1 securepubads.g.doubleclick.net 127.0.0.1 adtoken.v.qq.com 127.0.0.1 qqadapt.qpic.cn 127.0.0.1 ad.us.sinaimg.cn 127.0.0.1 s.amazon-adsystem.com 127.0.0.1 c.amazon-adsystem.com 127.0.0.1 post.voiceads.cn 127.0.0.1 mt.voiceads.cn 127.0.0.1 mobads-logs.baidu.com 127.0.0.1 mobads.baidu.com 127.0.0.1 v6-ad.ixigua.com 127.0.0.1 adimg.uve.weibo.com 127.0.0.1 reachmax-cm.admaster.com.cn 127.0.0.1 adss.video.qq.com 127.0.0.1 ads.trafficjunky.net 127.0.0.1 adapistatic.kaitao.cn 127.0.0.1 ad.k.21cn.com 127.0.0.1 tclicon.upgrade.huan.tv 127.0.0.1 upgrade.api.my7v.com 127.0.0.1 api.upgrade.platform.huan.tv 127.0.0.1 appupgrade.cp12.ott.cibntv.net 127.0.0.1 bksoup.v.qq.com 127.0.0.1 soup.v.qq.com 127.0.0.1 upl.baidu.com 127.0.0.1 dl-tclupgapp.huan.tv

    3 条回复    2021-10-04 16:54:33 +08:00
    Dreax
        1
    Dreax  
       2021-06-17 02:21:57 +08:00
    还是另外跑一个 AdGuard Home 吧
    im3feng
        2
    im3feng  
    OP
       2021-10-04 08:57:20 +08:00
    @Dreax 旁路由?懒得整了
    Dreax
        3
    Dreax  
       2021-10-04 16:54:33 +08:00
    @im3feng 只是 DNS 服务器而已
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1798 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:27 · PVG 00:27 · LAX 09:27 · JFK 12:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.