OpenWrt Forum Archive

Topic: Fully featured OpenWrt build for the WNDR3700 (NO LONGER MAINTAINED)

The content of this topic has been archived between 13 Apr 2013 and 6 May 2018. Unfortunately there are posts – most likely complete pages – missing.

@mroek the 'radio death' is related to some specific hardware revs I think is the general consensus.  They fail with stock as well as openwrt / dd-wrt.  I've got one of the older(like first release) units and one of the later v1 revs and i've never seen any issues with this build.   When you flash it though, don't panic if the radios 'look' dead.  go into the config and set the correct channels etc  (setting it to auto doesnt work the last time I checked)

@arokh  - more applause on this build (you'll notice I've been quiet on the forums - I've not found anything else wrong)

Hi All,

     there's somebody from UK able to set over 20db for the 2.4 and/or over 17db for the 5Ghz?
I tried many country codes with no luck!

You'll need CVS and SVN installed, as minidlna/transmission is fetched directly from there.

Thanks!  I installed CVS (already had SVN installed), cleaned everything, and then did a "make V=99".  This time I didn't hit the MiniDLNA problem, but "transmission" is still failing as shown below; I guess because it can't find "po/Makefile.in.in"?

I think I remember seeing that you capture your build output, so I'll also compare with that.

Any other thoughts?

Checking out files from the svn repository...
A    transmission-svn-20110615
A    transmission-svn-20110615/libtransmission
.. blah blah..

configure: creating ./config.status
config.status: creating Makefile
config.status: creating transmission-gtk.spec
config.status: creating cli/Makefile
config.status: creating daemon/Makefile
config.status: creating extras/Makefile
config.status: creating libtransmission/Makefile
config.status: creating utils/Makefile
config.status: creating third-party/Makefile
config.status: creating third-party/miniupnp/Makefile
config.status: creating third-party/libnatpmp/Makefile
config.status: creating third-party/libutp/Makefile
config.status: creating third-party/dht/Makefile
config.status: creating macosx/Makefile
config.status: creating gtk/Makefile
config.status: creating gtk/icons/Makefile
config.status: creating web/Makefile
config.status: creating web/images/Makefile
config.status: creating web/images/buttons/Makefile
config.status: creating web/images/graphics/Makefile
config.status: creating web/images/progress/Makefile
config.status: creating web/javascript/Makefile
config.status: creating web/javascript/jquery/Makefile
config.status: creating web/stylesheets/Makefile
config.status: error: cannot find input file: `po/Makefile.in.in'
make[3]: *** [/mnt/data_sda3/OpenWrt_Mint/kamikaze/build_dir/target-mips_r2_uClibc-0.9.32/transmission-svn-20110615/.configured_] Error 1
make[3]: Leaving directory `/mnt/data_sda3/OpenWrt_Mint/kamikaze/myfeed/transmission-svn'
make[2]: *** [package/feeds/custom/transmission-svn/compile] Error 2
make[2]: Leaving directory `/mnt/data_sda3/OpenWrt_Mint/kamikaze'
make[1]: *** [/mnt/data_sda3/OpenWrt_Mint/kamikaze/staging_dir/target-mips_r2_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/mnt/data_sda3/OpenWrt_Mint/kamikaze'
make: *** [world] Error 2
jmmec wrote:

Thanks!  I installed CVS (already had SVN installed), cleaned everything, and then did a "make V=99".  This time I didn't hit the MiniDLNA problem, but "transmission" is still failing as shown below; I guess because it can't find "po/Makefile.in.in"?

Good news:  I got the build to complete!

Bad news:  I had to comment out transmission (see previous post), perl, and ruby from the .config file.

It seems that perl has unresolved refs:

pp.o: In function `Perl_pp_modulo':
pp.c:(.text+0x3406): undefined reference to `floor'
pp.c:(.text+0x3429): undefined reference to `floor'
pp.c:(.text+0x36f5): undefined reference to `fmod'
pp.o: In function `Perl_pp_atan2':
pp.c:(.text+0x7c7d): undefined reference to `atan2'
pp.o: In function `Perl_pp_sin':
pp.c:(.text+0x7dfb): undefined reference to `sin'
pp.o: In function `Perl_pp_int':
pp.c:(.text+0x826c): undefined reference to `floor'
pp.c:(.text+0x8294): undefined reference to `ceil'
pp.o:(.rodata+0x164): undefined reference to `cos'
pp.o:(.rodata+0x168): undefined reference to `sin'
pp.o:(.rodata+0x16c): undefined reference to `sin'
pp.o:(.rodata+0x170): undefined reference to `exp'
pp.o:(.rodata+0x174): undefined reference to `log'
pp.o:(.rodata+0x178): undefined reference to `sqrt'
pp_pack.o: In function `S_pack_rec':
pp_pack.c:(.text+0x5f6a): undefined reference to `floor'
pp_pack.c:(.text+0x5f89): undefined reference to `floor'
pp_pack.c:(.text+0x5faa): undefined reference to `floor'
collect2: ld returned 1 exit status
make[4]: *** [miniperl] Error 1
make[4]: Leaving directory `/mnt/data_sda3/OpenWrt_Mint/kamikaze/build_dir/target-mips_r2_uClibc-0.9.32/perl/perl-5.10.0/host-perl'
make[3]: *** [/mnt/data_sda3/OpenWrt_Mint/kamikaze/build_dir/target-mips_r2_uClibc-0.9.32/perl/perl-5.10.0/.configured_-perl] Error 2

And Ruby had download errors, so I can retry it again later:

MD5 sum of the downloaded file does not match (file: 68510eeb7511c403b91fe5476f250538, requested: 0d6953820c9918820dd916e79f4bfde8) - deleting download.
--2011-06-15 12:18:56--  http://mirror2.openwrt.org/sources/ruby-1.9.2-p180.tar.bz2
Resolving mirror2.openwrt.org... 46.4.11.11
Connecting to mirror2.openwrt.org|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-06-15 12:18:57 ERROR 404: Not Found.

Download failed.
--2011-06-15 12:18:57--  http://downloads.openwrt.org/sources/ruby-1.9.2-p180.tar.bz2
Resolving downloads.openwrt.org... 78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-06-15 12:18:58 ERROR 404: Not Found.

I'm running this build (r27175), and I've got most stuff working. However, there is one thing that annoys me:

When doing a port scan from GRCs ShieldsUp, ports show up as "Closed" and not "Stealth" as they did on the stock firmware. I found some old references to this "problem", but I am unable to fix it. I'd like to be "Stealth" for all ports that I don't explicitly forward to some machine in my lan, but I can't seem to figure out how. My firewall settings are unchanged from the defaults, except that I added some redirections (in Luci) for specific ports to specific machines.

Is there some rule i can add to /etc/firewall.user to become "Stealth" again?

Never mind, I figured it out. I changed the Input to DROP instead of REJECT for the "wan" firewall zone, and this did the trick. I also changed the PING rule for the wan to DROP instad of accept. I don't want the router to respond to pings from the internet/wan.

Please don't believe in this stealth nonesense. If anything, "stealth" tells an attacker that there *is* a firewall dropping packets - it's like holding up a sign stating "nothing to see here". Also dropping ICMP echo replies gains you zero security, if at all it just disrupts services. E.g. HE.net does not let you establich an IPv6 tunnel if you do not allow pings.

Indeed. Dropping packets would make you "stealth" in the case where an attacker would do a dumb scan for specific ports, but you are definitely not invisible. It's a false sense of security. Set up SSH on a non standard port and use good passwords is pretty much the only security a home user needs. Anonymous won't be targeting you any time soon to get your porn.

I do know there is no actual added security gained by being "stealth", but dumb port scans could possibly fail if packets are just dropped.
But more important: Are there any downsides to dropping packets (thus being "stealth") compared to rejecting packets? When it comes to ping, I realize there is a valid argument to allow it, it's just that I've been used to stock firmwares (both Netgear and others) that defaults to not answering pings and dropping packets.

I don't need SSH access to my router from the WAN side, so I've only enabled it on the LAN (which it defaults to, I think).

Hi all, first post.

I just installed this last night on my WNDR3700 and its seems like a great breath of fresh air. I can now use IPSEC VPN and I didn't have to do anything in the settings it just worked. I could not get this working with the stock firmware.

I have a question though, I love the traffic stat tools that are available by default and I looked in the packages to see what else was available and came across bandwithd, I installed the package however I don't see anything new on the GUI of the device, however as stated I am a total noob with one days experience so far so you might no even be able to get this to work.

I have looked system/startup and I can see bandwithd however it says disabled, if I press Start, Restart and then reboot it does not load and says disabled again in the startup.

Could someone let me know what I am doing wrong, or what I need to do if this is possible, thanks

Disabled means the init script is not started on boot. Click on it and it becomes enabled, means it will be started automatically on boot.
However, bandwidthd has no gui integration, sorry.

jow wrote:

Disabled means the init script is not started on boot. Click on it and it becomes enabled, means it will be started automatically on boot.
However, bandwidthd has no gui integration, sorry.

Thanks for getting back to me so quickly, as you say I just clicked it and it is now enabled. How do you go about using bandwithd then do you need to be able to telnet in and configure it to create a html file to a specific place to see the logs?

I assume its the same thing for Darkstat?

You can access the bandwidthd graphs at http://192.168.1.1/bandwidthd/ and do the configuration for it in /etc/config/bandwidthd .
Yes, darkstat should be similar in principle.

jow wrote:

You can access the bandwidthd graphs at http://192.168.1.1/bandwidthd/ and do the configuration for it in /etc/config/bandwidthd .
Yes, darkstat should be similar in principle.

Thanks I can now see Bandwidthd at that location, will give me something to play with, this is going to sound really basic I know but where do you go to edit the configuration like you mentioned in the last post. Is it something you do in Gui or separate?

You usually would do that via ssh and vi, or with winscp or whatever.

mroek wrote:

Are there any downsides to dropping packets (thus being "stealth") compared to rejecting packets? When it comes to ping, I realize there is a valid argument to allow it, it's just that I've been used to stock firmwares (both Netgear and others) that defaults to not answering pings and dropping packets.

ICMP messages are essential in some contexts / at some points. E.g. with IPv6 traffic, ping is used for negotiating path MTU, as packet fragmentation is forbidden in IPv6. If you prevent ping, it is possible that no connection is formed due to one party having too large MTU and not allowing the MTU negotiation to pass.

Originally all ICMP messages have been invented for a purpose, and are still needed for that task.

jow wrote:

You usually would do that via ssh and vi, or with winscp or whatever.

Thanks again for the information, I have just one more question on the subject if you could help. It is all working and I can see the graphs which is brillaint, however i'm assuming that Bandwidthd saves the graph information to the router, will this eventually create a massive html file that will slowly use up the available space on the WNDR3700 causing it to run out of space?

Thanks for your time

Yes, I think in the long run you will need extroot (rootfs on usb) to avoid space problems.

I posted a while back about radios not working on some new 3700s I bought.  Not sure what the issue was, since I was using the same build that I had been using on my older 3700, but putting the latest nightly on them fixed the issue.  Thanks again arokh, I've now got 4 3700s running your build, and they all work great!

jow wrote:

Yes, I think in the long run you will need extroot (rootfs on usb) to avoid space problems.

I have installed a 1GB usb drive and set it to Use as root filesystem, Configures this mount as overlay storage for block-extroot.

Does that meant that it will automatically use this for storage space once the other is maxed out? Its probably not as simple as that right?

thanks again

Ran into some more problems, if I reboot the router I lose the USB drive and I have to take it out and plug it back in again. Basically I would like to change the software target folder to be sda1 when it is mounted and then I wont have to worry about bandwidthd taking up the disk space on the router but I keep running into dead ends.

(Last edited by carnaged on 16 Jun 2011, 23:11)

hebjor wrote:

I have a problem getting radio0 to use dual channels.

Radio1 works just fine and I can see in inSSIDer I use channel 161 + 157 and the performance also shows I use both.

Not so much luck with radio0 and I've tried HT40- and HT40+ with no luck.  I get no errors but it just does not use two channels, from the config below uses only channel 9.  I've  tried many combinations of channels and HT-modes with no luck.

Any idea what I do wrong, or is there some kind of limitation in 3700 that prevents this?

My current build is r27153.

I found the solution to my own problem in another thread:

uci set wireless.radio0.noscan=1
uci commit
reboot

This fixed the problem and I now also use 2 channels on radio0.

Could anyone please help an OpenWRT and Linux/Unix newbie do the above?  It seems simple enough but I don't know how to do it and need this on my newly OpenWRT enhanced router.  (Love this firmware!)  Detailed instructions please, I am a computer nerd but a Linux virgin smile  Thanks in advance.

(Last edited by dslabby on 16 Jun 2011, 23:38)

Hello,

I've been using r27175 this evening, and am totally impressed by OpenWRT.  I have everything working great, including dual channel wifi.  But I have hit a brick wall with an issue I'm experiencing.  My wifi throughput within my LAN completely drops off when I have another (wired) client accessing the WAN.  Specifically, when my wired NAS is downloading files via the WAN, my access via wifi to that NAS cuts down significantly compared to what it is when it's idle (my 10mb/s average transfers over wifi drops to 100-500k per second). On the stock WNDR3700 firmware, I never encountered any slow down at all; the NAS is beefy enough to handle multiple connections and disk activity. 

Is there perhaps a setting I'm missing?  Any advice would be greatly appreciated!

Thanks!

Edited: Ok, I was able to do a little more testing.  So here's what I've learned:

When my wired NAS is downloading from the WAN, my wifi laptop experiences very slow transfers to/from the NAS (with no other wifi activity).  Wifi transfers from my laptop to a wired machine are fine (again, while the NAS is active).  Wired transfers between the wired NAS and the wired machine are fine.  Strange, right?

(Last edited by kaiguy on 17 Jun 2011, 08:42)

dslabby wrote:

Could anyone please help an OpenWRT and Linux/Unix newbie do the above?  It seems simple enough but I don't know how to do it and need this on my newly OpenWRT enhanced router.  (Love this firmware!)  Detailed instructions please, I am a computer nerd but a Linux virgin smile  Thanks in advance.

1. SSH to your router (i.e., ssh root@192.168.1.1) and login with your password. 
(If you don't know how to do this, download putty.  The IP of your router is 192.168.1.1, the login is "root", and the password is whatever you set.  There are plenty of putty tutorials on the web if you need more info)
2. After you're logged in, type those commands one after another.  This should enable you to get your dual channel with the HT40.

@jmmec

Ruby failed to dl because of an md5sum mismatch, should be fixed in the next tarball. About the transmission configure error, I had the same error before. It should have been fixed by running autogen.sh before configuring, not sure why you still get it.

Does anyone use a USB drive for additional storage, if so how do you get it to auto mount if the router is rebooted. Also what do I need to do to make sure that openwrt will use this device for storage. Could someone point me in the right direction. Do you edit the target in the software tab?

Sorry, posts 1451 to 1450 are missing from our archive.