PirateBox OpenWrt and MR3020

Posted by pretextat 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
PirateBox OpenWrt and MR3020
September 10, 2013 09:00PM
Hi there,

I'm trying to install OpenWRT on a TL-MR3220 router. I got no problem with the firmware installation, but when I try to ping Google, but I get the following message : ping: bad address 'www.google.com'

I tried two tutorials : David Darts and the one from Pabell.
The firmware I use is OpenWrt for the MR3020 (modified by Matthias Strubel)
My OS is Windows 7.

My Home router IP address is 192.168.2.1
My computer IP address is 192.168.2.11

My network configuration on the OpenWrt router is :

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

config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.2.27'
option netmask '255.255.255.0'
option gateway '192.168.2.1'
list dns '192.168.2.1'
list dns '8.8.8.8'

I also edit the firewall configuration and turn the Wifi features.

Thanks for any help you can provide
Re: PirateBox OpenWrt and MR3020
September 11, 2013 10:19AM
Hey!

Your IP settings look OK, I think you should try
/etc/init.d/piratebox nodns
and try again pinging google. Sometimes this helps to disable dns handling by the PB and allows reaching the internet.
Re: PirateBox OpenWrt and MR3020
September 11, 2013 01:03PM
Thank for your reply Nargren, but your suggestion is not working.

I believe this is because the piratebox is still not installed on the MR3020.

I am at step 14 of this (tutorial). I should have mentionned that.

Two other things that maybe useful to help me out

When the MR3020 is plugged to my computer only the Ethernet light is on (and of course power and reset).

When the MR3020 is plugged to my home router only the power and reset light are on.
Re: PirateBox OpenWrt and MR3020
September 11, 2013 07:18PM
what did you change in the firewall config?

can you please post the content of

/tmp/resolv.conf
/tmp/resolv.conf.auto

does
ping 8.8.8.8
work?
Re: PirateBox OpenWrt and MR3020
September 12, 2013 02:50AM
Thanks for your reply Mathias

First a situation update. In my first post, I wrote that I turned on the wifi, well I didn't. It is now on. The only thing different from before is that WLAN is now green on the MR3020. However. I can connect to it only when I am on my home computer.

Now to answer your questions:

For the firewall, I only made change in the first 23 lines. My firewall configuration file look like this :
Quote

config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1

config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'

config zone
option name 'wan'
option network 'wan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'

the content of /tmp/resolv.conf :
Quote

search lan
nameserver 127.0.0.1

the content of /tmp/resolv.conf.auto
Quote

# Interface lan
nameserver 8.8.8.8
nameserver 192.168.2.1

Finally when I ping 8.8.8.8, I get this :
Quote

root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
20 packets transmitted, 0 packets received, 100% packet loss
Re: PirateBox OpenWrt and MR3020
September 12, 2013 02:52AM
Thanks for your reply Mathias

First a situation update. In my first post, I wrote that I turned on the wifi, well I didn't. It is now on. The only thing different from before is that WLAN is now green on the MR3020. However. I can connect to it only when I am on my home computer.

Now to answer your questions:

For the firewall, I only made change in the first 23 lines. My firewall configuration file look like this :
config defaults
        option syn_flood        '1'
        option input            'ACCEPT'
        option output           'ACCEPT'
        option forward          'ACCEPT'
# Uncomment this line to disable ipv6 rules
#       option disable_ipv6     1

config zone
        option name             'lan'
        option network          'lan'
        option input            'ACCEPT'
        option output           'ACCEPT'
        option forward          'ACCEPT'

config zone
        option name             'wan'
        option network          'wan'
        option input            'ACCEPT'
        option output           'ACCEPT'
        option forward          'ACCEPT'
        option masq             '1'
        option mtu_fix          '1'

the content of /tmp/resolv.conf :
search lan
nameserver 127.0.0.1

the content of /tmp/resolv.conf.auto
 # Interface lan
nameserver 8.8.8.8
nameserver 192.168.2.1

Finally when I ping 8.8.8.8, I get this :
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
20 packets transmitted, 0 packets received, 100% packet loss
Re: PirateBox OpenWrt and MR3020
September 12, 2013 03:01AM
By the way, my Ipad detect my openwrt network with the following specifications :

IP adress : 192.168.2.116
Subnet Mask : 255.255.255.0
Router : 192.168.2.27
DNS : 192.168.2.27
Re: PirateBox OpenWrt and MR3020
September 12, 2013 09:10AM
Sorry misread your issue, I though you already had the PB installed. My bad.
Re: PirateBox OpenWrt and MR3020
September 12, 2013 06:52PM
Hi,
ok. PLease forget the thing the IPAD mentions, because the openwrt announce itself as router.
In your case it looks like, that the gateway you entered in /etc/config/network is wrong (or not set).

ping 8.8.8.8 should end up with a reply if the gateway works.

can you please double-check that?
Can you please post the output of
route
Re: PirateBox OpenWrt and MR3020
September 12, 2013 09:45PM
Hi,

Quote

PLease forget the thing the IPAD mentions, because the openwrt announce itself as router
No problemo, but I dont understand why the Ipad detect the MR03020 but my home router don't.

Quote

ping 8.8.8.8 should end up with a reply if the gateway works. can you please double-check that?
Same as before
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
12 packets transmitted, 0 packets received, 100% packet loss

Quote

Can you please post the output of
root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.2.1     0.0.0.0         UG    0      0        0 br-lan
192.168.2.0     *               255.255.255.0   U     0      0        0 br-lan
Re: PirateBox OpenWrt and MR3020
September 16, 2013 06:49PM
sorry for that question: Did you plugin the wired ethernet from mr3020 to your home router?

can you
ping 192.168.2.1
?
do you have a special configuration at your home router?
Re: PirateBox OpenWrt and MR3020
September 17, 2013 02:14AM
Hi Mathias

First of all. I want to thank you very much for your time.

I found out about my problem a few minutes ago.

One of the Lan Port of my home router dont work.

I plugged the MR3020 where my printer was and the printer were the MR3020 was.

And bingo

The MR3020 ethernet light is on and the printer is not detected anymore.
Re: PirateBox OpenWrt and MR3020
September 17, 2013 06:46PM
*tilt* Yeah, some sort of physically issues was things I start to think about.

Anyway! Nice to hear, that you finally got it working!! Sorry about your Router's Port- can you RMA it? (sending to manufactor-support)

regards Matthias
Re: PirateBox OpenWrt and MR3020
September 18, 2013 01:47AM
Matthias Wrote:
-------------------------------------------------------
> *tilt* Yeah, some sort of physically issues was
> things I start to think about.
>
> Anyway! Nice to hear, that you finally got it
> working!! Sorry about your Router's Port- can you
> RMA it? (sending to manufactor-support)
>
> regards Matthias

Yes I can. The router is provided by my ISP.

I will now closely follow the development of the piratebox project.