Cisco Linksys EA3500 OpenWrt Snapshot镜像

仅限Snapshot版本r48648使用,需要自己搭服务器的可以参考我的帖子http://boweihe.me/?p=1537

没有Luci界面的,可以直接修改/etc/opkg/distfeeds.conf 这个文件。LuCi界面下等效的。

 

 

Cisco Linksys EA3500 刷入OpenWrt

万万没想到这个路由器现在也有了官方的OpenWrt支持!

可以参考这里(英文):https://wiki.openwrt.org/toh/linksys/ea3500

大致翻译如下:

As of r47458 the EA3500 is completely supported. This model is identified by the board codename “Audi.”

自从版本r47458开始,EA3500已被OpenWrt完整支持了。这个机型的固件可以用识别码 “Audi”查找

访问这里可以得到最新的编译版本:https://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/

需要查找带有

字样的,是可以直接用思科原版固件刷入的;而

是从旧版本OpenWrt升级用的。

注意:刷好之后默认没有开启无线的,也没有装luci图形界面,需要用ssh(可通过putty软件)用有线的方式连接到管理界面。路由器默认的IP地址应该是192.168.1.1

连接SSH时,默认用户是root,然后是空密码。进入后需要用

命令设置密码。

然后可以更新opkg包进而安装网页管理界面luci

随后就能通过网页访问http://192.168.1.1来管理啦!

CISCO LinkSys EA3500 OpenWrt

Use an OpenWrt Router to log in 802.1x (MSCHAPV2) wired network at SUTD (eduroam)

本文主要介绍如何使用基于OpenWrt的路由器进行802.1X有线网登录验证(即作为802.1X 客户端)。

This post tells my experience on trying to connect to a wired network at Singapore University of Technology and Design (SUTD) by using a OpenWrt-powered router (a modified TPLink WR-703n).

Prerequisites

What you need is a router which runs OpenWrt (or other unix-based OS like dd-wrt). For me I have a hardware-hacked TPLink Wr703n (technically it was a WR-702n but their mainboards are same). My modified router has 64 MB ram and 8MB ROM, which allows me to install and run OpenWrt (currently version 14.04) and some necessary apps.

You should know the fundamental about OpenWrt. If not, please visit https://wiki.openwrt.org/  for help.

Steps

Before start, please do not power off your device unless it’s requested explicitly.

First, build up a SSH connection to your router, for me on Windows, I connect my router (192.168.1.1) via Putty.

If this is the first time that you log in via SSH terminal, you should firstly set up the root password at http://192.168.1.1/ on your internet browser (this IP address might vary on different devices)

Remove wpad-mini

We will have to remove the mini version of wpad (wpad = wpa_supplicant + hostapd) since it is not powerful enough to handle a 802.1X authentication. So on your SSH terminal, after you’ve successfully logged in, type this

Install wpad

Then install the full version of wpad, you may download it from

and you must find a way to transfer it to your router. For me I choose HFS (http://www.rejetto.com/hfs/) to build a small http file server on my personal computer. and then I use the ‘wget’ commend to download the file

then install it

OR if you have Internet connection on your router (oh you must be kidding) you can directly type

Configuration

(For wr-703n only)

You may need to set up a wireless connection on your router first, please search on Google to enable your WiFi port. Or you may explore the ‘Network’ –> ‘Wifi’ page, it’s easy to get started!

By default, OpenWrt uses the only ethernet port on the little wr-703n as a LAN port, buy in this time we need to set it to a WAN port. It means that we’ll use an Ethernet wire to connect the world, and use the wireless signal to connect your devices, e.g. your laptops, cellphones, pads…

[INTERNET]  <—-wired conn.—> [ROUTER] <—-wireless conn.—-> [DEVICES]

This configuration can be easily done on OpenWrt’s web interface, visit http://YOUR_ROUTER’s_IP/ (for me it is 192.168.1.1 ) on your browser and enter your password.

Then go to ‘Networks’ –> ‘Interfaces’, there should be only one interface called ‘LAN’. And we need to add the ‘wan’ interface. so click on the button ‘Add new interface’ below openwrt_add_new_interface

Then set it as follow:openwrt_add_wan_interface

and click ‘submit’.

Next, we need to cease the bond between port eth0 and interface LAN. Turn back to the interface page, and click the ‘Edit’ openwrt_edit_interfaceon LAN interface.

Then click on the ‘Physical Settings’ page openwrt_interface_lan

and set the physical ports binding as follow (Un-tick ‘eth0’ and tick wireless network):

openwrt_wr703_lan_phy

then click on ‘Save and Apply’ button in the bottom.openwrt_saveandapply

Then restart your router.

NOTICE: From now on you can only connect your router through wireless connection, the Ethernet port is set as a WAN port.

wpa_supplicant

The next step is to set up 802.1X authentication.

The wpa_supplicant module will be used to maintain the authentication process, so we need a configuration file first.

Type these in your monitor to start vi (a built-in text editor):

then key in ‘i’ to start the insert mode. Copy the following text

and then, on your puppy terminal, use the right button of your mouse to paste them into vi text editor. Next, press ‘Ese’ button on your keyboard and input :wq to quit vi editor with the file written to your router.

Connection

Finally it’s time to build up connection, first unplug your Ethernet wire from the router if you’ve did so.

Then in the putty terminal, type

The second line is the key, it tries to authenticate with the server using your configuration file on the wired port eth0.

And now please plug your Ethernet wire into the router, then the best part starts like this…

wr703-8021x-conn

Once you see ‘SUCCESS’ in those output you may press the Enter key to resume from shell execution.

It’s done.

In case you may encounter some error in the process, try change the parameters in your configuration file because not all 802.1x are the same. I once faced the credential error then found out that it’s the bad parameter in the ‘EAP’ setting.

Enable Service Autostart

Here are the scripts to auto-startup the 802.1x auth after the router finished booting. In your puppy terminal, type

Then push ‘I’ button on the keyboard to insert

and push ‘Esc’, and type in :wq to quit the editor.

Back to the command terminal, type in

 

References

WR703n v1.7 破解openwrt(提示“密码错误”等问题的解决)

英文请参考:http://wiki.openwrt.org/toh/tp-link/tl-wr703n#tftp_install_necessary_on_v17_hardware

转载本文请注明来自http://boweihe.me/?p=1680

[写在最前]如果你在破解过程中遇到HTML返回(中文)错误提示

有一部分人(包括我)遇到了,在执行第二个curl命令的时候,返回一段不正确的HTML代码的问题(主要内容是密码错误的提示页面,会说什么Caps Lock之类的)。这个问题是由于你更改了默认的路由器模式(比如AP模式)无法开启家长控制功能,解决办法是,重置路由器设置(捅RESET洞洞,或者Web界面里头选重置)。

准备工具

本教程主要介绍Windows下面用到的工具,因为UNIX类的系统其实Terminal底下都能搞定这事儿…噗

  1. cURL工具,http://curl.haxx.se/download.html
  2. TFTP工具,http://tftpd32.jounin.net/tftpd32_download.html
  3. (可选)本教程中TFTP底下的那些文件,包括BusyBox,分离出的固件等。链接:http://pan.baidu.com/s/1qWvfp7I 密码:y1vw
  4. dd for windows: http://uranus.chrysocome.net/linux/rawwrite/

准备Hack文件

BusyBox Binary

使用curl下载BusyBox的二进制文件:

OpenWrt固件

下载OpenWrt固件

然后拆成两部分

aa文件(bash)

新建一个叫aa的文件,别忘了讲下面的192.168.0.9 替换成你电脑的内网IP地址(路由器分配给你电脑的内网IP)

 

至此,你的目录下应该有5个文件

  • openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
  • busybox
  • i1
  • i2
  • aa

刷写OpenWrt

[警告]以下步骤可能导致你的路由器变砖,请确认当前的路由器固件版本是3.17.1 Build 140120. 下述全过程请勿断开连接或是断开电源,本人不对产生的任何后果负责!另外,每一步都很重要,别忽略其中任何一步。

以下步骤中,请替换 192.168.0.9 为你电脑的内网IP, 替换 192.168.0.100 为你路由器的IP地址 (WR703N的,一般是192.168.1.1).

修改密码为admin42

这个步骤只会更改路由器家长控制的默认密码,刷完openwrt之后会恢复为openwrt的默认密码的

启用家长控制(利用漏洞)

开启电脑上的TFTP服务器

开启TFTP服务器,如果用tftp32的话:

  1. 设置Current Directory为那个含有5个文件都目录;
  2. 设置Server interfaces为你电脑的内网IP地址(一般情况下是192.168.1.x)

刷固件

请等待路由器自动重启(重启后会加载openwrt,路由器状态灯会闪烁一会儿)

上述步骤其实会远程调用tftp里头存储的aa文件(脚本),进而执行脚本中的刷机命令

WNDR4300/3700v4 OpenWrt 14.04 Barrier Breaker 镜像源 Mirror

160217:由于wndr4300已经出掉了,所以这个镜像源目前已经移除。自行搭建的方法请参考http://boweihe.me/?p=1537

实在不能忍受某些墙还是什么导致的问题,更新个ipk就得半小时!

自己搭了一个源,如果谁也有Ar71xx nand(比如我的WNDR4300)的话,可以用我搭建的源~

由于用的Bandwagon服务器,大陆地区晚上访问速度会比较慢,白天就快多啦~

WNDR3700 v4版也可以用的!

WNDR4300的配置文件如下:

需要自己搭建的话,请参考:

http://boweihe.me/?p=1537

拷贝的URL源地址是:

https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/nand/packages/

搭建自己的openwrt小镜像服务器

虽然当我写完的时候我发现wget可以一句话解决这个事情,不过还是与大家分享下代码吧~

更简单的方法详见:http://zqhong.qiniudn.com/2014/10/18/%E6%90%AD%E5%BB%BAOpenWrt%E6%9C%AC%E5%9C%B0%E8%BD%AF%E4%BB%B6%E5%BA%93%E9%95%9C%E5%83%8F/

下面是我写的小爬虫,是在其他人的成果基础上改的,新增支持级联目录

 

 

WNDR3800 openWrt: Enable WiFi toggle

We could just follow the wiki page of WNDR3700 to enable Wifi switch button 🙂

http://wiki.openwrt.org/toh/netgear/wndr3700#activate.the.buttons

Here are the commands for SSH terminal:

BTW, these are hardware button keystrokes:

Reset WPS WiFi
Backfire BTN_0 BTN_1 BTN_2
Trunk reset wps BTN_2

WR703N Gargoyle石像鬼固件的USB打印问题

刷了这个固件发现USB打印一直连接不上去,后来发现好像是打印端口的问题~

设备名称:Gargoyle
石像鬼(Gargoyle)版本:1.6.1
型号:TP-LINK TL-WR703N v1
设备配置:网关

参考了这篇文章:http://wiki.openwrt.org/doc/howto/p910nd.server

里面提到了这么一句

On older versions the device /dev/usb/usblp0 is created. More recent versions create the normal /dev/lp0 device, even for usb printers. (Attitude Adjustment 12.09 actually creates /dev/usb/lp0

结果查了一下果然是这个原因,p910nd默认的设备位置是/dev/lp0来着,我去/dev下看了看发现其实是/dev/usb/lp0,所以把配置文件改改就好啦~

配置文件是:/etc/config/p910nd

把里面对应的改掉

另外修改好后重启下服务哦