Piratebox di TP-Link MR 3020

Piratebox on TP-Link MR 3020

Piratebox on TP-Link MR 3020

What you will need:
1. TP-Link MR3020 Portable 3G Router
2. USB Flash Drive – The larger capacity the better (this is a 16gb Drive)
3. Battery Pack designed to supply power via USB

Download Firmware : http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Connect your MR 3020 to your computer via an ethernet cable. You should be able to log into the management console by navigating to 192.168.0.254. Default Username and Password: admin

Go to “System Tools—> Firmware Upgrade”

Flash Firmware with: http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Telnet to your device and set root PWD

$passwd

You will then be prompted to enter password

In order for the following settings to work properly, your home router settings must be the following. If they are not, you will have to adjust them accordingly.

Home Router Settings:
Router address: 192.168.1.254
Netmask 255.255.255.0

SSH into your router using Putty:

SSH OpenWRT

SSH OpenWRT

It was brought to my attention that the default network config is 172 lines, the only lines you will need in order to get this to work are the following:

Network Configuration for TP-Link MR3020

[email protected]$ vi /etc/config/network

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

congfig 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.1.254'
list 'dns' '192.168.1.254'
list 'dns' '8.8.8.8'

config 'interface' 'wan'
option 'ifname' 'etho.1'
option 'proto' 'dhcp'
option 'gateway' '192.168.1.254'
option 'netmask' '255.255.255.0'
list 'dns' '192.168.1.254'
list 'dns' '8.8.8.8'

Open all ports on firewall in order to get out to the internet to get packages:

[email protected]$ vi /etc/config/firewall

Edit to ACCEPT all incoming and outgoing traffic.

Do not uncomment any of the commented lines, it’s not necessary.

It should look like this:

Firewall Settings

Firewall Settings

By default wireless is disabled, enable wireless:

$vi /etc/config/wireless

change “Disbaled 1” to “Disabled 0”

Reboot and wait about 3 minutes.

Plug the MR3020 into your local network via the network cable, it should show are being at 192.168.1.1 if the above configuration worked.

ssh into the device and try to ping www.google.com to verify connectivity.

Once verified that you can get online through the MR3020, you will need to install a couple packages:

LUCI

$opkg update

$opkg install luci

$/etc/init.d/uhttpd enable

$/etc/init.d/uhttpd start

Verify that you can now view a webpage by going to 192.168.1.1 in your browser.

USB

opkg update

opkg install kmod-usb-uhci
insmod usbcore
insmod uhci

opkg update
opkg install kmod-usb-ohci
insmod usb-ohci

Once this is complete, insert a FAT32 formatted USB ( for instructions on how to format USB to FAT32 in Linux, Formatting USB or HDD with Gparted using Linux )and continue:

Install Piratebox to complete setup:

$cd /tmp
/tmp$ wget http://cr.23bit.net/piratebox/piratebox_0.2-5_all.ipk
/tmp$ opkg update && opkg install piratebox*

Once the install is complete, verify that you are done by looking for a Wireless Channel called “Piratebox – Share Freely”.

Connect to Pirate via wifi and if you see the Piratebox page, you are done.

Enjoy.

For more information on the Piratebox, please visit David Darts Wiki – Piratebox
Special thanks to David Darts for his hard work and vision for the Piratebox.

3 Comments

Leave a Reply

%d bloggers like this: