電訊茶室's Archiver

角色 發表於 2012-10-26 20:12

【OpenWRT】—— 你用什么mod OpenWRT呢?

[i=s] 本帖最後由 角色 於 2012-11-11 22:33 編輯 [/i]

官方网站: [url]https://openwrt.org/[/url]

[url]http://en.wikipedia.org/wiki/OpenWrt[/url]

Supported Devices [url=http://wiki.openwrt.org/toh/start]Link[/url]


TP-LINK TL-WR1043ND到今天已经有两年多,依然很多人喜欢购买作mod机用,因为它的features和价格比也不错:

Features:
1. 8M Flash
2. 32M RAM (可以mod 64M RAM)
3. USB port
4. Giga LAN/WAN ports

价格从2010年450元到现在2012年388年。

TL-WR1043ND可以mod OpenWRT和DD-WRT。

因为现在verion的TL-WR1043ND营是1.9,而它的bootloader已经把WAN port disabled,所以在mod OpenWRT过程中,WAN port不能使用,所以怎样mod OpenWRT才能用上WAN port就非常重要。

The default username and password are the same - admin.

角色 發表於 2012-10-26 20:13

[i=s] 本帖最後由 角色 於 2013-1-15 00:32 編輯 [/i]

TP-LINK TL-WR1043ND正确mod OpenWRT的程序:(先从TL (NO WAN)开始看)

[attach]1925[/attach]

上图我们先从TL(No WAN)开始看(Boot把WAN Port disabled),先用TL German(B+L)去downgrade router,那么Boot里的WAN Port是enabled。

因为TL-WR1043ND的Version 1.8开始(TL No WAN)(Ver 1.9 所有的bootloader WAN Disabled),部分的机子的bootloader disables了WAN Port,在Linux kernel才把它打开。为了统一和安装型,建议大家先刷新德文的TL-WR1043ND的firmware ([url=http://rghost.net/36040799]Link[/url]),你可以得到下面的文件[code]wr1043nv1_de_3_9_17_up_boot(100331).bin[/code]然后在这里 ([url=http://downloads.openwrt.org/backfire/10.03.1/ar71xx/]Link[/url]),下载[code]openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin[/code]1. 先flash德国的Firmware (downgrade tp-link的firmware,因为德国的firmware的bootable没有把WAN disabled,而是WAN enabled)—— TP-LINK German (Bootloader + Linux kernel) firmware :
wr1043nv1_de_3_9_17_up_boot(100331).bin

2. 然后在flash OpenWRT的firmware —— OpenWRT 10.03.1 firmware:
openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin.

如果你mod机过程中发现异常现象,可以参考下面帖子:
How to unbrick TP-LINK TL-WR1043ND? [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=4997]Link[/url]

角色 發表於 2012-10-26 20:16

[i=s] 本帖最後由 角色 於 2012-11-11 22:37 編輯 [/i]

OpenWRT Firmware
  - TP-LINK WR1043ND ar71xx [url=http://downloads.openwrt.org/backfire/10.03.1/ar71xx/]Link[/url]

OpenWRT document for TP-LINK 1043ND [url=http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd]Link[/url]

General Installation of OpenWRT for TP-LINK 1043ND [url=http://wiki.openwrt.org/doc/howto/generic.flashing]Link[/url]

角色 發表於 2012-10-26 20:16

[i=s] 本帖最後由 角色 於 2012-11-15 22:30 編輯 [/i]

How to install an OpenWRT package:

opkg install <package_name>

角色 發表於 2012-10-26 20:16

目录帖子。

角色 發表於 2012-10-26 20:17

目录帖子。

角色 發表於 2012-10-26 20:17

目录帖子。

角色 發表於 2012-10-26 20:18

目录帖子。

角色 發表於 2012-10-26 20:18

目录帖子。

角色 發表於 2012-10-26 20:18

目录帖子。

角色 發表於 2012-10-26 20:18

目录帖子。

角色 發表於 2012-10-26 20:29

目录帖子。

角色 發表於 2012-10-26 20:30

目录帖子。

角色 發表於 2012-10-26 20:30

目录帖子。

角色 發表於 2012-10-26 20:30

目录帖子。

角色 發表於 2012-10-26 20:30

目录帖子。

角色 發表於 2012-10-27 08:09

[i=s] 本帖最後由 角色 於 2012-10-27 08:46 編輯 [/i]

Installation of OpenWRT (10.03.1) on TP-LINK WR1043ND

1. You buy a TP-LINK WR1043ND (the router) from anyone of computer centres, the one that I got was HK$388.

2. Configure the router based on the manufactuer's instructions using a PC via the LAN port.

3. Download the OpenWRT firmware for the router from this [url=http://downloads.openwrt.org/backfire/10.03.1/ar71xx]link[/url]. There are two firmwares i) openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin and ii) openwrt-ar71xx-tl-wr1043nd-v1-squashfs-sysupgrade.bin. The first one with the word "factory.bin" is for changing the original TP-LINK factory firmware to OpenWRT 10.03.1 using the TP-LINK web GUI. The second one with the word "sysupgrade.bin" is used for upgrading the original OpenWRT firmware by the current OpenWRT web GUI.

[attach]1709[/attach]

The version that I installed is 10.03.1. You have to download a new one if it is available for the router if you want.

4. Enter the TP-LINK web GUI and load the firmware "openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin" that you downloaded in the Step 3.

5. After a while, you are able to have an OpenWRT router by browsing 192.168.1.1. The login name is root and the password is the one that you used in the TP-LINK.

角色 發表於 2012-10-27 09:38

I am sorry that I was able to configure the router to work as expected.:L

角色 發表於 2012-10-27 11:24

OpenWRT与DD-WRT真的不一样!

在DD-WRT,什么东西都给你做好,要你在kernel做的基本上不需要,但是如果学习网络就不太好!看来几天的OpenWRT。OpenWRT会让你对一些networking,firewall等事会慢慢明白。

角色 發表於 2012-10-27 11:44

Does anyone know the default settings for the OpenWRT after flashing? It means the functions provided by the router without adjusting any parameters.

角色 發表於 2012-10-27 12:26

终于可以进入OpenWRT的shell (port 22)里,之前不可以是因为要修改router密码才可以。

我用putting,打入OpenWRT的IP:22, 然后输入root,然后新的密码就搞定。

角色 發表於 2012-10-27 12:43

How could we configure the network settings, the following link could be a very good reference:

[url]http://wiki.openwrt.org/doc/uci/network[/url]

角色 發表於 2012-10-28 15:32

如果大家知道怎样刷机后,WAN怎样set才能工作,就是WAN接前的LAN,然后router后面的LAN就接其他设备都能上网。

角色 發表於 2012-11-4 22:53

(信息来源: [url]http://www.hkepc.com/forum/viewthread.php?tid=1660401[/url])

PPTP Server

1.安裝pptpd:
opkg update
opkg install pptpd
opkg install kmod-mppe
/etc/init.d/pptpd enable
/etc/init.d/pptpd start

2. config pptpd
-----------------------------------
vi /etc/pptpd.conf

#debug
option /etc/ppp/options.pptpd
localip 192.168.1.1
remoteip 192.168.1.2-99
speed 1152000
stimeout 10
#localip & remoteip are not needed, ip management is done by pppd

--------------------------------------------
vi /etc/ppp/options.pptpd

auth
name "pptp-server"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
nodeflate
#noproxyarp
#nomppc
chapms-strip-domain
# Otherwise, your chap-secret file will have to include "DOMAIN\\user" instead of user.
mppe required,no40,no56,stateless
require-mschap-v2
refuse-chap
refuse-mschap
refuse-eap
refuse-pap
ms-dns 192.168.1.1
#plugin radius.so
#radius-config-file /etc/radius.conf
-----------------------------------------------------------
最後修改你pptp用戶名及密碼,格式: username空格*空格password空格*

vi /etc/ppp/chap-secrets

username * password *

-------------------------------------------------------------
3. 加firewall rule,令外網client能連接router及pptp上網.

vi /etc/firewall.user

iptables -A input_wan -p tcp --dport 1723 -j ACCEPT
iptables -A input_wan -p gre -j ACCEPT
iptables -A input_rule -i ppp+ -j ACCEPT
iptables -A forwarding_rule -i ppp+ -j ACCEPT
iptables -A forwarding_rule -o ppp+ -j ACCEPT
iptables -A output_rule -o ppp+ -j ACCEPT

------------------------------------------------------
最後reboot router

角色 發表於 2012-11-4 23:03

自己compile OpenWRT source code

[url]http://josefsson.org/openwrt/dongle.html[/url]

(信息来源:[url]http://www.hkepc.com/forum/viewthread.php?tid=1677087[/url])

角色 發表於 2012-11-4 23:10

OpenWRT reference

[url]http://www.joeho.org/wordpress/?cat=1[/url]

[url]http://www.hkepc.com/forum/viewthread.php?tid=1697252[/url]

角色 發表於 2012-11-4 23:15

(信息来源:[url]http://www.hkepc.com/forum/redirect.php?goto=findpost&ptid=1700483&pid=26133470[/url])
終極快速整合安裝指令 SSH翻牆 + HTTP PROXY + SOCKS4/5 PROXY + PPTP +UPNP + DDNS + 中文界面

只需要第一次用telnet 192.168.1.1連上,並直連上wan上到網即可
指令:
-------------------------------------------------------------------------------
opkg update
opkg install luci-mod-admin-full
opkg install uhttpd
opkg install luci-theme-openwrt
opkg install luci-app-upnp
opkg install luci-app-firewall
opkg install luci-app-ntpc
opkg install luci-i18n-chinese
opkg install libiwinfo
opkg install pptpd
opkg install kmod-mppe
opkg install luci-proto-pptp
opkg install srelay
opkg install tinyproxy
opkg install ntpclient
opkg install luci-app-ddns
rm /usr/bin/ssh
rm /usr/bin/scp
opkg install openssh-client
opkg install autossh
/etc/init.d/pptpd enable
/etc/init.d/pptpd start
/etc/init.d/uhttpd start
/etc/init.d/uhttpd enable
reboot
------------------------------------------------------------------------------

2. config pptpd
-----------------------------------
vi /etc/pptpd.conf

#debug
option /etc/ppp/options.pptpd
localip 192.168.1.1
remoteip 192.168.1.2-99
speed 1152000
stimeout 10
#localip & remoteip are not needed, ip management is done by pppd

--------------------------------------------
vi /etc/ppp/options.pptpd

auth
name "pptp-server"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
nodeflate
#noproxyarp
#nomppc
chapms-strip-domain
# Otherwise, your chap-secret file will have to include "DOMAIN\\user" instead of user.
mppe required,no40,no56,stateless
require-mschap-v2
refuse-chap
refuse-mschap
refuse-eap
refuse-pap
ms-dns 192.168.1.1
#plugin radius.so
#radius-config-file /etc/radius.conf
-----------------------------------------------------------
最後修改你pptp用戶名及密碼,格式: username空格*空格password空格*

vi /etc/ppp/chap-secrets

username * password *

-------------------------------------------------------------
3. 加firewall rule,令外網client能連接router及pptp上網.

vi /etc/firewall.user

iptables -A input_wan -p tcp --dport 1723 -j ACCEPT
iptables -A input_wan -p gre -j ACCEPT
iptables -A input_rule -i ppp+ -j ACCEPT
iptables -A forwarding_rule -i ppp+ -j ACCEPT
iptables -A forwarding_rule -o ppp+ -j ACCEPT
iptables -A output_rule -o ppp+ -j ACCEPT

-----------------------------------------------------------------------------
-----------------------------------------------------
vi /etc/srelay.conf
# allow local subnet to access socks proxy
192.168.1.0/24 any -
0.0.0.0 any
--------------------------------------------------------
vi /etc/init.d/srelay
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50

start() {
        if [ -f /etc/srelay.conf ];then
                srelay -i:1085 -c /etc/srelay.conf -r -s
        fi
}

stop() {
        killall srelay
}
-------------------------------------------------------------------
入去[url]http://192.168.1.1[/url]內開啟WIFI

角色 發表於 2012-11-4 23:20

OpenWRT上安裝FTP Server

[url]http://www.hkepc.com/forum/viewthread.php?tid=1713417[/url]

角色 發表於 2012-11-4 23:55

OpenWRT上安裝FTP Server

[url]http://www.hkepc.com/forum/viewthread.php?tid=1712898[/url]

角色 發表於 2012-11-5 07:38

TP-1043ND 改 OPENWRT 用MF820上4G LTE [url]http://www.hkepc.com/forum/viewthread.php?tid=1778233&highlight=OpenWRT[/url]

TP-LINK 1043ND OPENWRT多翻牆方法快速安裝  [url]http://www.hkepc.com/forum/viewthread.php?tid=1797407&highlight=OpenWRT[/url]

頁: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.