恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
小博无线
楼主: hiboyhiboyhiboy

[2019-01-02]改华硕[N14U N54U]5G 2G的7620老毛子Padavan固件(私人云储存 aria2 QOS)

    [复制链接]
发表于 2019-2-9 11:16 | 显示全部楼层
怎么都感觉无线不如从前了,昨天Newifi mini刷了下最新的PandoraBox,在信号不好的状态下ping测试,Padavan真不如PandoraBox稳
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-9 12:14 来自手机 | 显示全部楼层
看看会不会用
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-9 15:46 | 显示全部楼层
怎么开启v2ray

点评

搭建web环境里面的v2ray开关打开,把客户端配置拷贝到最下面的配置里面就可以了  详情 回复 发表于 2019-2-15 16:43
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-9 15:51 | 显示全部楼层
老大,试了下openvirtual**只能udp连接,tcp就被拒绝是什么情况。要怎么搞?

点评

……发现是不支持ipv6,因为用的是tcp both,用单ipv4就可以了  详情 回复 发表于 2019-2-9 20:39
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-9 20:39 | 显示全部楼层
千万千万 发表于 2019-2-9 15:51
老大,试了下openvirtual**只能udp连接,tcp就被拒绝是什么情况。要怎么搞?

……发现是不支持ipv6,因为用的是tcp both,用单ipv4就可以了
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-9 23:38 | 显示全部楼层
刷了最新的固件,启动verysync,但无法使用。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-10 02:00 | 显示全部楼层
本帖最后由 量子跃迁 于 2019-2-11 01:51 编辑

K2的LED一直是红的
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-10 22:46 | 显示全部楼层
#!/bin/sh
#脚本功能,踢出信号较好的2.4g设备使之连接到5g,如果踢出后没有连到5g,则加入踢出白名单
curl 127.0.0.1/Main_WStatus2g_Content.asp | grep 'M  \-[0-9][0-9]' > /tmp/2gmaclistt
#不确定5g支持设备踢出阈值40,支持5g踢出设备踢出阈值48
awk '$9>-40 {print $1}' /tmp/2gmaclistt > /tmp/2gmaclistmin
awk '$9>-48 {print $1}' /tmp/2gmaclistt > /tmp/2gmaclist
touch /etc/storage/mac2g.txt
touch /etc/storage/mac5g.txt

awk 'NR==FNR{a[$0]++} NR>FNR&&a[$0]' /etc/storage/mac2g.txt /tmp/2gmaclist > /tmp/2gmacsame.txt
if [ -s /tmp/2gmacsame.txt ] ; then
        awk 'NR==FNR{a[$0]++} NR>FNR&&!a[$0]' /tmp/2gmacsame.txt /tmp/2gmaclist > /tmp/2gmacuniq.txt
else
        cat /tmp/2gmaclist > /tmp/2gmacuniq.txt
fi

awk 'NR==FNR{a[$0]++} NR>FNR&&a[$0]' /etc/storage/mac5g.txt /tmp/2gmacuniq.txt > /tmp/25gmackill.txt

if [ -s /tmp/25gmackill.txt ] ; then
    awk 'NR==FNR{a[$0]++} NR>FNR&&!a[$0]' /tmp/25gmackill.txt /tmp/2gmacuniq.txt > /tmp/2gmactest.txt
else
        cat /tmp/2gmacuniq.txt > /tmp/2gmactest.txt
fi
awk 'NR==FNR{a[$0]++} NR>FNR&&a[$0]' /tmp/2gmactest.txt /tmp/2gmaclistmin > /tmp/2gmackill.txt
while read line
do
echo $line
iwpriv ra0 set DisConnectSta=$line
iwpriv ra0 set DisConnectSta=$line
logger -t "【test2g】" "$line被踢掉"
done < /tmp/2gmackill.txt
while read line
do
echo $line
iwpriv ra0 set DisConnectSta=$line
logger -t "【剔除25g】" "$line被踢掉"
done < /tmp/25gmackill.txt

curl 127.0.0.1/Main_WStatus_Content.asp | grep 'M  \-[0-9][0-9]' > /tmp/5gmaclistt
awk '{print $1}' /tmp/5gmaclistt > /tmp/5gmaclist

awk 'NR==FNR{a[$0]++} NR>FNR&&a[$0]' /etc/storage/mac5g.txt /tmp/5gmaclist > /tmp/5gmacsame.txt
if [ -s /tmp/5gmacsame.txt ] ; then
    awk 'NR==FNR{a[$0]++} NR>FNR&&!a[$0]' /tmp/5gmacsame.txt /tmp/5gmaclist > /tmp/5gmacuniq.txt
else
        cat /tmp/5gmaclist > /tmp/5gmacuniq.txt
fi

cat /tmp/5gmacuniq.txt >> /etc/storage/mac5g.txt
awk 'NR==FNR{a[$0]++} NR>FNR&&a[$0]' /tmp/5gmacuniq.txt /tmp/2gmackill.txt > /tmp/25gmac.txt
if [ -s /tmp/25gmac.txt ] ; then
    awk 'NR==FNR{a[$0]++} NR>FNR&&!a[$0]' /tmp/25gmac.txt /tmp/2gmackill.txt >> /etc/storage/mac2g.txt
else
        cat /tmp/2gmackill.txt >> /etc/storage/mac2g.txt
fi
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-11 14:23 | 显示全部楼层
我这个米3 的刷完有的手机WiFi经常断开,有的手机又不会,网线别的倒是还好,这个能怎么解决吗

点评

这个是wifi兼容的锅 https://screenshots.firefox.com/wVizOMMZNt8RJWyc/192.168.123.1  详情 回复 发表于 2019-2-13 15:16
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-11 16:31 | 显示全部楼层
#!/bin/sh
#copyright by hiboy modify by rufengsuixing
#只检测脚本更新打印在控制台不更新
source /etc/storage/script/init.sh
#nvramshow=`nvram showall | grep '=' | grep script | awk '{print gensub(/'"'"'/,"'"'"'\"'"'"'\"'"'"'","g",$0);}'| awk '{print gensub(/=/,"='\''",1,$0)"'\'';";}'` && eval $nvramshow
upscript_enable=`nvram get upscript_enable`
scriptt=`nvram get scriptt`
scripto=`nvram get scripto`
[ "$ACTION" = "upscript" ] && upscript_enable=1

file_o_check () {
#获取script的sh*文件MD5
eval $(md5sum `/usr/bin/find /etc/storage/script/ -perm '-u+x' -name '*.sh' | sort -r` | awk '{print $2"_o="$1;}' | awk -F '/' '{print $NF;}' | sed 's/\.sh//g')
}

file_t_check () {
#获取最新script的sh*文件MD5
rm -f /tmp/scriptsh.txt
wgetcurl.sh "/tmp/scriptsh.txt" "$hiboyscript/scriptsh.txt" "$hiboyscript2/scriptsh.txt"
if [ -s /tmp/scriptsh.txt ] ; then
        source /tmp/scriptsh.txt
        nvram set scriptt="$scriptt"
        nvram set scripto="2019-1-21"
        scriptt=`nvram get scriptt`
        scripto=`nvram get scripto`
fi
}

file_check () {
mkdir -p /tmp/script
while read line
do
c_line=`echo $line |grep -v "#" |grep -v 'scriptt='`
file_name=${line%%=*}
if [ ! -z "$c_line" ] && [ ! -z "$file_name" ] ; then
        MD5_TMP=`eval echo '$'${file_name}`
        MD5_ORI=`eval echo '$'$file_name"_o"`
        if [ ! -s /etc/storage/script/$file_name.sh ] || [ "$MD5_TMP"x != "$MD5_ORI"x ] ; then
                logger -t "【script】" "/etc/storage/script/$file_name.sh 脚本需要更新!$hiboyscript/script/$file_name.sh"
        fi
fi
done < /tmp/scriptsh.txt
}

start_upscript_daydayup () {

logger -t "【script】" "脚本检查更新"
file_t_check
if [ -s /tmp/scriptsh.txt ] ; then
        if  [ "$scriptt"x != "$scripto"x ] ; then
                logger -t "【script】" "脚本需要更新, 自动下载更新"
                nvram set scripto="$scriptt"
                file_o_check
                cd /etc/storage/script/
                rm -f ./.upscript_daydayup
                mkdir -p /tmp/script
                while read line
                do
                c_line=`echo $line |grep -v "#" |grep -v 'scriptt='`
                file_name=${line%%=*}
                if [ ! -z "$c_line" ] && [ ! -z "$file_name" ] ; then
                        echo "$hiboyscript/script/$file_name.sh" >> ./.upscript_daydayup
                        echo "\|$hiboyscript2/script/$file_name.sh" >> ./.upscript_daydayup
                fi
                done < /tmp/scriptsh.txt
                daydayup ./.upscript_daydayup >> /tmp/syslog.log &
        fi
else
        [ "$upscript_enable" != "1" ] && return
        logger -t "【script】" "脚本检查更新失败"
fi
}

start_upscript () {
logger -t "【script】" "脚本检查更新"
file_t_check
if [ -s /tmp/scriptsh.txt ] ; then
        if [ "$scriptt"x != "$scripto"x ] ; then
                logger -t "【script】" "脚本需要更新, 自动下载更新"
                nvram set scripto="$scriptt"
                file_o_check
                file_check
                logger -t "【script】" "脚本更新完成"
        fi
else
        [ "$upscript_enable" != "1" ] && return
        logger -t "【script】" "脚本检查更新失败"
fi
}

check_opt () {
[ ! -d /opt/etc/init.d ] && return
[ ! -f /tmp/scriptsh.txt ] && file_t_check
for initopt in `ls -p /opt/etc/init.d`
do
if [ ! -z `grep "$(echo $initopt | sed 's/\.sh//g')" /tmp/scriptsh.txt)` ] ; then
        cp -f /etc/storage/script/$initopt /opt/etc/init.d/$initopt
fi

done

}

case $ACTION in
check_opt)
        check_opt
        ;;
start)
        #hash daydayup 2>/dev/null && start_upscript_daydayup
        #hash daydayup 2>/dev/null || start_upscript
        start_upscript
        check_opt
        ;;
*)
        #hash daydayup 2>/dev/null && start_upscript_daydayup
        #hash daydayup 2>/dev/null || start_upscript
        start_upscript
        check_opt
        ;;
esac
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-11 17:05 | 显示全部楼层
本帖最后由 rufengsuixing 于 2019-2-13 14:55 编辑

smartdns安装方法(软件未开源)
下载 https://github.com/pymumu/smartd ... 6-0014.mipselsf.ipk
/opt/etc/opkg.conf 加入行 arch mipselsf 170
opkg install smartdns.1.2019.01.26-0014.mipselsf.ipk
修改/opt/etc/smartdns/smartdns.conf 进行配置,如果替代dnsmasq的ipset和host,需要修改ss脚本
替换Sh19_china-dns.sh这行eval "$china-dns_path -p $china-dns_port -s $china-dns_dnss -l /opt/app/china-dns/china-dns_iplist.txt -c /etc/storage/china_ip_list.txt $usage $cmd_log" &
为/opt/usr/sbin/smartdns -c /opt/etc/smartdns/smartdns.conf
使用china-dns页面进行设置端口和配置文件一样
结束
附送脚本
#!/bin/sh
#smartdns host广告过滤配置文件更新,需要conf-file /opt/etc/smartdns/adblock.conf
#屏蔽的域名会返回soa而不是127.0.0.1,不会让浏览器试图连接
wgetcurl.sh /tmp/adblock1.conf https://raw.githubusercontent.com/vokins/yhosts/master/hosts
grep -E "^(127|0)" /tmp/adblock1.conf | awk '{print "address /"$2"/#"}' > /tmp/adblock.conf
rm /opt/etc/smartdns/adblock.conf
mv /tmp/adblock.conf /opt/etc/smartdns/adblock.conf
/etc/storage/script/Sh19_china-dns.sh start
rm /tmp/adblock1.conf
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-11 17:30 | 显示全部楼层
牛啊,我的哥
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-11 20:16 来自手机 | 显示全部楼层
谢谢楼主的分享
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-12 10:00 | 显示全部楼层
感谢楼主一直的更新!
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-12 12:28 | 显示全部楼层
希望大佬能修下矿渣3上的小毛病
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛 ( 苏ICP备05084872号-1 )

GMT+8, 2019-2-24 01:02

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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