返回列表 發帖
目录帖子。

TOP

本帖最後由 角色 於 2012-10-27 08:46 編輯

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.



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.
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

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

TOP

OpenWRT与DD-WRT真的不一样!

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

TOP

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

TOP

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

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

TOP

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

http://wiki.openwrt.org/doc/uci/network

TOP

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

TOP

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

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

TOP

TOP

TOP

(信息来源:http://www.hkepc.com/forum/redir ... 83&pid=26133470
終極快速整合安裝指令 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
}
-------------------------------------------------------------------
入去http://192.168.1.1內開啟WIFI

TOP

TOP

TOP

TP-1043ND 改 OPENWRT 用MF820上4G LTE http://www.hkepc.com/forum/viewt ... p;highlight=OpenWRT

TP-LINK 1043ND OPENWRT多翻牆方法快速安裝  http://www.hkepc.com/forum/viewt ... p;highlight=OpenWRT

TOP

返回列表