找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 19258|回复: 35

openwrt源速度差的解决办法

[复制链接]
本帖最后由 xiaoyawl 于 2015-4-5 02:10 编辑

中国电信貌似和openwrt的源连接超级烂
更新下源或者安装个东西都要命,所以一气之下自己用JB的服务器给openwrt源做了反代
现在好了 不纠结了

把openwrt的源地址中的downloads.openwrt.org 换成云加速的地址

然后试试opkg update && opkg install bash,保证比之前官方地址好了

下面是在ssh上修改源地址实现加速的方法
AWS的EC2云加速
  1. sed -i 's/downloads.openwrt.org/openwrt.legion.pt/' /etc/opkg.conf
  2. opkg update && opkg install bash vim ss
复制代码

腾讯云加速
  1. echo -e "115.159.84.227\topenwrt.05hd.com" /etc/hosts
  2. sed -i 's/downloads.openwrt.org/openwrt.05hd.com/' /etc/opkg.conf
  3. opkg update && opkg install bash vim ss
复制代码


AWS云加速效果

腾讯云加速效果


看这个速度 心情瞬间好了





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
会一直存在吗。。。会的话 就赞了。。。

点评

会的 起码1年以上能保证  详情 回复 发表于 2015-3-31 11:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 djjk 于 2016-6-26 11:55 编辑

!!!

点评

在ssh执行下面的命令就可以了  详情 回复 发表于 2015-3-31 11:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
細細粒 发表于 2015-3-31 11:03
会一直存在吗。。。会的话 就赞了。。。

会的 起码1年以上能保证
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
djjk 发表于 2015-3-31 11:04
把加密通道做成本地代理更省事,那么多包改地址还不改得头大。

在ssh执行下面的命令就可以了
  1. sed -i 's/downloads.openwrt.org/openwrt.legion.pt/' /etc/opkg.conf
复制代码

点评

我还以为是 source code源.  发表于 2015-3-31 11:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

瞬间快了很多,感谢楼主大大。耍去
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
下载到本地安装
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

以为是源码的源 哎〜!怪不得下了几天都没下载完。 jb痛
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你们懂的,楼主好人
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
楼主可以贴一下你的nginx反代配置吗   

点评

我用这个配置反代没成功 server { listen 80; server_name openwrt.isbase.me; location / { proxy_set_header Host $host; proxy_set_header X-R  详情 回复 发表于 2015-3-31 16:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
isbase 发表于 2015-3-31 16:40
楼主可以贴一下你的nginx反代配置吗



我用这个配置反代没成功     
server        {
        listen       80;
        server_name openwrt.isbase.me;
        location / {
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass_header Server;
                proxy_pass http://downloads.openwrt.org;
        }
}





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

使用道具 举报

来自手机 | 显示全部楼层
楼主好人
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
isbase 发表于 2015-3-31 16:42
我用这个配置反代没成功     
server        {
        listen       80;
  1. [root@LookBack-JPSERVER-117 ~]# cat /usr/local/nginx/conf/vhost/openwrt.legion.pt.conf
  2. server{
  3.         listen    157.7.123.117:80;
  4.         listen    [2400:8500:1301:838:a157:7:123:1179]:80;
  5.         server_name openwrt.legion.pt;

  6.         location / {
  7.                 proxy_pass      http://downloads.openwrt.org;
  8.                 proxy_redirect off;
  9.                 proxy_set_header Accept-Encoding "";
  10.                 proxy_set_header X-Real-IP $remote_addr;
  11.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12.                 subs_filter_types text/css text/xml application/xml application/xml+rss;
  13.                 #subs_filter st(\d*).example.com $1.example.com ir;
  14.                 subs_filter http://downloads.openwrt.org http://openwrt.legion.pt;
  15.         }
  16.         access_log /home/wwwlogs/openwrt.legion.pt_nginx.log combined;
  17. }

  18. [root@LookBack-JPSERVER-117 ~]# nginx -V
  19. nginx version: nginx/1.6.2
  20. built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
  21. TLS SNI support enabled
  22. configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-mail --with-mail_ssl_module --with-pcre --with-http_stub_status_module --with-http_spdy_module --with-http_ssl_module --with-ipv6 --with-http_gzip_static_module --with-http_flv_module --with-http_realip_module --with-http_gunzip_module --with-http_mp4_module --add-module=/usr/local/lnmp/src/ngx_http_google_filter_module --add-module=/usr/local/lnmp/src/ngx_http_substitutions_filter_module --with-ld-opt=-ljemalloc
复制代码

点评

多谢,已搭建成功 sed -i 's/downloads.openwrt.org/openwrt.isbase.me/' /etc/opkg.conf  详情 回复 发表于 2015-3-31 17:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
xiaoyawl 发表于 2015-3-31 17:04

多谢,已搭建成功


sed -i 's/downloads.openwrt.org/openwrt.isbase.me/' /etc/opkg.conf
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 06:20

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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