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 link. 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.作者: 角色 時間: 2012-10-27 11:24
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
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空格*
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空格*
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
}
Since my TP-LINK TL-WR1043ND was bricked, I made a RS-232 level shift circuit and connected to the board.
The following are the default settings using the "printenv" command:
ipaddr=192.168.0.2
serverip=192.168.0.5
Since my network segment is 192.168.1.X, then I changed the above parameters as follows:
ipaddr=192.168.1.100
serverip=192.168.1.6
where 192.168.1.6 is the ip address of my NAS which is running tftp server. If the ipaddr was changed to 192.168.1.2, it did not work.作者: 角色 時間: 2012-11-9 00:42
The username and password for the German TP-LINK stock firmware is admin admin.作者: 角色 時間: 2012-11-12 00:09
With OpenWRT, you could have many configurable options that we want. For instance, VLANs and Bridged networks, etc.作者: Skypeus 時間: 2012-11-26 11:30