请教下华硕 ac86u 原版梅林设定 Hosts 和配置屏蔽规则的方法 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Kenshiro
V2EX    路由器

请教下华硕 ac86u 原版梅林设定 Hosts 和配置屏蔽规则的方法

  •  
  •   Kenshiro 2023-10-18 13:40:29 +08:00 1201 次点击
    这是一个创建于 773 天前的主题,其中的信息可能已经有所发展或是发生改变。
    华硕自带的网站屏蔽麻烦且时而抽风,求一个插件或者能永久直接修改 Hosts 文件的方法,懂得 V 友们请进。
    4 条回复    2023-11-25 11:19:00 +08:00
    drdre
        1
    drdre  
       2023-10-18 15:04:50 +08:00
    不会谷歌搜索一下吗?原版要 ssh 修改
    Kenshiro
        2
    Kenshiro  
    OP
       2023-10-19 08:46:06 +08:00 via iPhone
    @drdre 都是非永久修改,每次重启得手动丢
    Brainos
        3
    Brainos  
       2023-10-21 13:37:44 +08:00   1
    参考 https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-config-files#postconf-scriptshttps://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-domains-with-dnsmasq

    我建议使用一种更安全的方法,创建`/jffs/scripts/dnsmasq.postconf`文件并`chmod 755 /jffs/scripts/dnsmasq.postconf`,内容为:
    ```shell
    #!/bin/sh
    source /usr/sbin/helper.sh

    sed -i '1,$d' /tmp/resolv.dnsmasq
    pc_append 'addn-hosts=/jffs/configs/dnsmasq.d/hostfilenameyouwant' "/etc/dnsmasq.conf"
    ```

    最后把你想要的 hosts 解析写进`/jffs/configs/dnsmasq.d/hostfilenameyouwant`里
    Kenshiro
        4
    Kenshiro  
    OP
       2023-11-25 11:19:00 +08:00
    @Brainos 不行,host 还是老样子,求解
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1000 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 18:33 PVG 02:33 LAX 10:33 JFK 13:33
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86