OpenWrt Forum Archive

Topic: Optimized and feature rich trunk build for select routers

The content of this topic has been archived between 20 Aug 2014 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

On the WRT1200AC the USB/eSATA port still doesn't work, but I have seen a few more WRT1200AC users on different FW's with the same problems. Also, with my WRT1200AC it doesn't always come up (with r48132 at least) with external storage attached to it, but again, this is more a WRT1200AC problem than anything else.

(Last edited by johan81 on 7 Jan 2016, 15:54)

Hi,
i have a problem to connetct with putty on openwrt.

if i try to do this, putty gives a error back: connection refused

how i can connect with putty with ssh ??

Thanks

Hmm, should work. Yesterday i spend a lot of hours to play around with openwrt (this trunk) with putty.

But im giving up. My 5GhZ Wifi did not reliable came back after a reboot or wifi down/up. Most times it stays down (no problem with 2,4Ghz). I did not change so much - SSID and password + change to germany and a try to "auto" at the channels.

my Archer C7 works perfectly with trunk r48005 (15.12.2015)
With 5GHz was tricky: ist works only with 80Mhz and 23dBm oder less (with German Settings) - Channel with "auto"

But ssh login with putty......? i think is a configuration problem....with openwrt and this trunk

Dr.Brain

Danke Dir. Ich werde es mal ausprobieren

Wont work. wlan0 did not came back online after a reboot if chanel select is "auto".

root@OpenWrt ~# iw wlan0 info
Interface wlan0
        ifindex 20
        wdev 0x2
        addr e8:de:27:6f:f4:64
        type AP
        wiphy 0
        txpower 0.00 dBm
root@OpenWrt ~#

root@OpenWrt ~# logread | grep wlan0
Fri Jan  8 16:24:22 2016 kern.info kernel: [   35.900374] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Fri Jan  8 16:24:22 2016 kern.info kernel: [   36.168130] device wlan0 entered promiscuous mode
Fri Jan  8 16:24:22 2016 daemon.notice netifd: radio0 (1696): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Fri Jan  8 16:24:22 2016 daemon.notice netifd: radio0 (1696): wlan0: interface state COUNTRY_UPDATE->ACS
Fri Jan  8 16:24:22 2016 daemon.notice netifd: radio0 (1696): wlan0: ACS-STARTED
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: ACS-COMPLETED freq=5580 channel=116
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: interface state ACS->HT_SCAN
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: interface state HT_SCAN->DFS
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: DFS-CAC-START freq=5580 chan=116 sec_chan=1, width=1, seg0=122, seg1=0, cac_time=60s
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: interface state DFS->DISABLED
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: AP-DISABLED
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: interface state DISABLED->DISABLED
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): wlan0: AP-DISABLED
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): hostapd_free_hapd_data: Interface wlan0 wasn't started
Fri Jan  8 16:25:55 2016 daemon.notice netifd: radio0 (1696): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Fri Jan  8 16:25:55 2016 kern.info kernel: [   51.535462] device wlan0 left promiscuous mode
Fri Jan  8 16:25:55 2016 kern.info kernel: [   51.540063] br-lan: port 2(wlan0) entered disabled state
Fri Jan  8 16:25:56 2016 kern.info kernel: [   52.896067] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Fri Jan  8 16:25:56 2016 kern.info kernel: [   52.951126] device wlan0 entered promiscuous mode

hmmm.....perhaps the trunk is buggy ?
I`m using r48005 trunk.

Use maybe another trunk...??

Dr.Brain

@DrBrain  did you ever get in with Putty?  I am having the same issue.  I've tried port 22,222,2222 evn tried chaning the dropbear port ... prettuy sure it's in the openssh config (to which I can't get in to see the port) lol

Hi I'm seeing wierd random wireless packetloss (all wifi channels and power levels) on my WNDR3800 with this latest build but not in the trunk build - which uses a lower kernel version I believe. Does anyone know if this patch is in kernel version 4.1.15 in arokh's latest build? https://lkml.org/lkml/2015/11/6/726

I have a second WRT1200AC for free which I can serial into now, so if that input is needed, you can call on me.

(Last edited by johan81 on 9 Jan 2016, 01:13)

gonzlobo wrote:
MicroChip wrote:

Thanks, that did shut the fan off.  The router feels a little warm.  It isn't supposed to turn on and off at certain thresholds?  I tried to execute the sensors command but it says not found.

Thanks!
MC

This works on WRT1900 V1 (not sure about the other WRT1x00 Vx variants).

** Here's something gufus wrote:
https://forum.openwrt.org/viewtopic.php … 31#p293731

** The file are uploaded to my google drive. The files have details where to upload.:
https://drive.google.com/drive/folders/ … jdBRnNPWUU

** Go into System->Startup to START fan_control.

## Run script
/sbin/fan_ctrl.sh

** Test speeds
## Fan high
echo "255" > /sys/devices/platform/pwm_fan/hwmon/hwmon0/pwm1

## Fan off
echo "0" > /sys/devices/platform/pwm_fan/hwmon/hwmon0/pwm1

## Fan medium
echo "127" > /sys/devices/platform/pwm_fan/hwmon/hwmon0/pwm1

Thanks!  I the google drive link didn't work but I created the files as per the thread in /etc/init.d.  As for running them it's not /sbin, it's /etc/init.d/... right?  Or is there a reason you put them elsewhere?

Thanks!
MC

a late and fairly disconnected update, but I wanted to report that I did a standing update to r48147 last night, and ads were still present on websites.  As of this morning (~12hrs later), no ads on the same sites.

I had a fairly hacky script generating a no-ads hostfile that was wiped out when I updated, but I'm pleased to see that adblocking is working on the WNDR3700v1 builds now (where it was not before, thus me having to rig up my own solution for a while).

edit - perhaps a shot in the dark, but how would I go about setting up a traffic redirection rule for all dns queries to adhere to the openwrt hosts file?  I've seen it mentioned as possible, but on older version of openwrt, and I've not been able to reproduce their results.  I ask mostly because there's one mobile phone in the house that uses hardcoded dns, and as such doesnt' benefit from adblocking on the network level.

(Last edited by lukano on 9 Jan 2016, 16:52)

I seem to remember someone mentioning the wndr3700 rebooted when using the adblock scripts. In the latest build I've raised vm.min_free_kbytes which should prevent the kernel from trying to allocate memory when there is none.

I've had DNS redirection in this build for a while. From /etc/firewall.user:

# Force all DNS requests to go through dnscrypt
LANIP=`uci get network.lan.ipaddr`
iptables -t nat -A prerouting_rule ! -d $LANIP -p udp --dport 53 -j REDIRECT
iptables -t nat -A prerouting_rule ! -d $LANIP -p tcp --dport 53 -j REDIRECT

Hmm. Does that mean if dns redirection is in place, it's still not sufficient to deal with android devices with hardcoded dns?

Sure it is, why wouldn't it?

@craig.reiners

...you must set the ssh port --> "Administration", "SSH Access"
-- > Dropbear Instance , SSH ort

With WinSCP i get the following Error:
"The Server rejected SFTP connection, but it listens for FTP connections.
Did you want to use FTP protocol instead of SFTP? Prefer using encryption"

I`m looking now at this page:
http://www.dd-wrt.com/wiki/index.php/SSH
to get a putty ssh connection.....

Dr.Brain

arokh wrote:

OK, I got OCF cryptodev working:

| r46541 | 1.0.2d | 108506760 | 69118600 | 38479140 | 22166140 | 15238290 | 5536860 | 32215110 | 28374450 | 25315820 | 18.5 | 628.6 67.8 | 55.7 |

Hi, do you mind posting the exact config settings you had to enable or the steps that you had to do? I have a WD4900 and I build my own image. I tried "talitos" with both linux cryptodev and OCF, and enabled OPENSSL_ENGINE_CRYPTO and OPENSSL_ENGINE_DIGEST but the openssl cryptodev engine never shows up in the final image.

I got a /dev/crypto but since I cannot test it with openssl due to the missing engine I have no idea if the acceleration is actually working.

@iancd

OpenWrt uses out of kernel wireless drivers (backports) and the latest version does include that patch.

@Ibschenkel

I remember I had issues with that as well think I had both cryptodev and ocf-crypto-headers enabled at the same time I think. They both supply cryptodev.h and OpenSSL needs to be compiled against the right one.

(Last edited by arokh on 9 Jan 2016, 23:12)

lukano wrote:

Hmm. Does that mean if dns redirection is in place, it's still not sufficient to deal with android devices with hardcoded dns?

From my experience, if you have IPv6 on your LAN the above not enough to get around hardcoded DNS in Android Lollipop, you'll have to do the following in addition to the IPv4 rules:

ip6=$(echo $(uci -P/var/state get network.globals.ula_prefix) | cut -d/ -f1) && [ "$ip6" ] && ip6="$ip6"1
[ "$ip6" ] && echo -e "ip6tables -t nat -A PREROUTING -i br-lan -p udp --dport 53 -j DNAT --to-destination [$ip6]\nip6tables -t nat -A PREROUTING -i br-lan -p tcp --dport 53 -j DNAT --to-destination [$ip6]" >> /etc/firewall.user

You'll need ip6tables package and dependencies installed obviously.

When trying to edit my Dynamic DNS service (myddns_ipv4) I get the following when I try to "Save & Apply"

/usr/lib/lua/luci/dispatcher.lua:452: Failed to execute cbi dispatcher target for entry '/admin/services/ddns/detail/myddns_ipv4'.
The called action terminated with an exception:
/usr/lib/lua/luci/cbi.lua:458: bad argument #4 to 'set' (string expected, got nil)
stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:452: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

Archer C7 v2 r48132

Not sure if it's just this update as I always reload my setting from a saved config file taken just before I update. This is the first time I have tried to manually update the Dynamic DNS service for at least the last 6 revisions.  Anyone else having a similar issue?

arokh

S.O.S.

So what happens with ssh?! The beautiful magic script was launched and now I must wait for week? It is possible to cut down all jobs in cron initially?! And what I shall do now? I compiled your mod without web gui... Simply some holiday!
Damn it!

(Last edited by Amarh on 10 Jan 2016, 04:35)

MicroChip wrote:
gonzlobo wrote:
MicroChip wrote:

Thanks, that did shut the fan off.  The router feels a little warm.  It isn't supposed to turn on and off at certain thresholds?  I tried to execute the sensors command but it says not found.

Thanks!
MC

This works on WRT1900 V1 (not sure about the other WRT1x00 Vx variants).

** Here's something gufus wrote:
https://forum.openwrt.org/viewtopic.php … 31#p293731

** The file are uploaded to my google drive. The files have details where to upload.:
https://drive.google.com/drive/folders/ … jdBRnNPWUU

** Go into System->Startup to START fan_control.

## Run script
/sbin/fan_ctrl.sh

** Test speeds
## Fan high
echo "255" > /sys/devices/platform/pwm_fan/hwmon/hwmon0/pwm1

## Fan off
echo "0" > /sys/devices/platform/pwm_fan/hwmon/hwmon0/pwm1

## Fan medium
echo "127" > /sys/devices/platform/pwm_fan/hwmon/hwmon0/pwm1

Thanks!  I the google drive link didn't work but I created the files as per the thread in /etc/init.d.  As for running them it's not /sbin, it's /etc/init.d/... right?  Or is there a reason you put them elsewhere?

Thanks!
MC

fan_control goes in /etc/init.d/fan_control.
fan_monitor goes in /usr/sbin

Just as a note I found out what the issue with telegram desktop and several other sites was (for example massivelyop.net not loading comments section) it was all due to dnscrypt, posted so other users with similar issue can try to disable it and see if it works
- just edit /etc/config/dhcp and replace line with 127.0.0.1 with google 8.8.8.8
- restart dnsmasq with /etc/init.d/dnsmasq restart
- stop dnscrypt with /etc/init.d/dnscrypt-proxy disable and /etc/init.d/dnscrypt-proxy stop
- restart router to clean dns cache

That's it big_smile


I had these issues for several months before discovering this (and I was wondering why my other self compiled router didn't have any of these big_smile) didn't think a dns could cause so many issues big_smile

Edit: Telegram issue is not fixed, but at least all others site seems to be, I will check other features hoping to find the problem tongue

(Last edited by markuznw on 10 Jan 2016, 12:40)

Did you try using a different dnscrypt resolver?

Yes I tried like 40% of the provided list, which made me have more and more issues (for example it happened in several occasions I was totally "without internet" because the dns resolver was down big_smile)
This was by using those fr/de resolvers in the list (since I am located in Italy I picked nearest ones)

If you got a stable one to purpose I will try it again, I think it's a very useful feature but I need it to be stable smile

(Last edited by markuznw on 10 Jan 2016, 13:14)

Sorry, posts 3051 to 3050 are missing from our archive.