IT技术之家 网络技术 K2 adbyby启动后设备管理和家长控制无法禁止问题

    K2 adbyby启动后设备管理和家长控制无法禁止问题

    adbyby启动后,会缺省打开一条nat PREROUTING规则

    root@K2:~# iptables -t nat -L
    Chain PREROUTING (policy ACCEPT)
    target prot opt source destination
    PREROUTING_REMOTE tcp — anywhere anywhere
    port_forward_nat all — anywhere anywhere
    delegate_prerouting all — anywhere anywhere
    REDIRECT tcp — anywhere anywhere tcp dpt:www redir ports 8118

    将所有访问80端口的流量转发到adbyby监听的8118端口,然后由adbyby来转发相应的上网请求

     

    K2设备管理的语句为(使用mangle 表的FORWARD控制):

    iptables -t mangle -w -A limit_chain -m mac –mac-source xx:xx:xx:xx:xx:xx -j DROP

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    limit_chain all — anywhere anywhere

    Chain limit_chain (1 references)
    target prot opt source destination
    DROP all — anywhere anywhere xx:xx:xx:xx:xx:xx

    家长控制的语句为(使用filter 表的FORWARD控制):

    iptables -t filter -w -I FORWARD -j parent_control

    Chain FORWARD (policy DROP)
    target prot opt source destination
    parent_control all — anywhere anywhere

    Chain parent_control (1 references)

    target prot opt source destination
    REJECT all — anywhere anywhere xx:xx:xx:xx:xx:xx  TIME from 08:00:00 to 18:00:00 reject-with icmp-
    port-unreachable

    根据下图的报文转发流程:
    316
    报文在前段就被adbyby截住了,所以后面的过滤规则失效,禁止设备通过adbyby通道逃出升天!

    1、本站提供的软件均为 “试用版” 或者 “免费版”,仅供学习和研究使用
    2、友情提醒:内容全部搜集自网络,安装教程参照压缩包内的Readme.txt编写
    3、因使用本站软件产生的法律责任由使用者自行承担,本站不承担任何连带责任。
    4、如有内容不慎侵犯了您的权益,请速与我联系!
    如有转载请注明出处:https://www.ittel.cn/archives/2081.html
    guest
    0 评论
    内联反馈
    查看所有评论
    联系我们

    联系我们

    QQ:877196754

    在线咨询: QQ交谈

    邮箱: ittel@qq.com

    工作时间:周一至周日,8:00-21:00
    返回顶部
    0
    希望看到您的想法,请您发表评论x