Ubnt EdgeRouter Lite 和 EdgeRouter X 上安装使用SNIProxy

EdgerRouter Lite和EdgerRouter X使用的固件版本 1.9.0 是基于debian wheezy的,但是debian wheezy现在已经进入LTS了,mips和mipsel不在官方的维护架构里,以至于现在无法使用官方的apt更新debian-security,而且在ubnt的路由上,安装很多开发库都没法搞了。

EdgerRoute Lite 使用的是mips64,debian源里需要用 mips 的包;而 EdgeRoute X 使用的是mipsel。
使用lscpu看CPU的信息:

EdgeRouter Lite

EdgeRouter X

准备

编译libudns和sniproxy

待补充。我已经把构建好的包发到了 http://dl.sskaje.me/debian/

SSH登录ER

下载软件

EdgeRouter Lite 请使用mips

EdgeRouter X 请使用mipsel

安装

配置

请参考官方文档。
按我的需求,官方的功能没法满足,所以我对官方的源码做了一些改动,具体可见 https://github.com/sskaje/sniproxy

使用

首先修改 /etc/default/sniproxy,这样才可以使用init的脚本启动

启动

Ubnt EdgeRouter Lite 和 EdgeRouter X 上安装使用SNIProxy by @sskaje: https://sskaje.me/2016/11/install-sniproxy-ubnt-edgerouter-lite-edgerouter/

Incoming search terms:

Install Debian MIPS and Debian PowerPC on OSX

I tried MacPorts, but its qemu does not have qemu-system-ppc or qemu-system-mips. Even though, I have qemu installed under macports, if you see any dependency missing, try to port install qemu and then uninstall.

OSX 10.11.5
Xcode

Install QEMU

Download 2.6.0 from Qemu.org, configure and make like:

I did not see any error, Google if you see any.

Install Debian MIPS

Debian official installer only have netboot image. All you need is GOOD INTERNET CONNECTION, don’t download iso from debian cd mirror.

Prepare

Download vmlinux and initrd.

Install

Create Image

Install

Follow the instructions, almost same as debian x86/x86_64.
You may be asked to configure and mount partition, I picked one partition and choose ext4 and mount to /.

Now, you have to wait for a long long time…

Then:

Just continue.

Run

!!!REMEMBER!!!
NO -initrd
-append “root=/dev/sda1”
!!!/REMEMBER!!!

If you want to exit qemu under nographic:
press ctrl+a, then c (no ctrl), type quit, hit enter.

Install Debian PowerPC

Similar to MIPS, but debian provides cdrom installer.

vmlinux, initrd.gz

So,

Install:

Run:

You may see similar error message above saying quik loader failed to install, just ignore it.
And, for PowerPC, no -kernel and no -append is required.
You can also forward ssh to local loopback.

Install Debian MIPS and Debian PowerPC on OSX by @sskaje: https://sskaje.me/2016/05/qemu-install-debian-mips-debian-powerpc-on-osx/

Incoming search terms: