Custom firmware for R7800 to extend its functionality

417 posts / 0 new
Last post
eliz82
eliz82's picture
i found something on openwrt

i found something on openwrt on how to get the ip if wan IP change

https://forum.openwrt.org/viewtopic.php?pid=192875#p192875

Voxel
Voxel's picture
eliz82:

eliz82:

OK, it’s up to you. IMO it is better to use some well known tools. ddclinent I use for example supports various types of DDNS providers. It process for me about 8 names in DynDNS and afraid.org.

IP, I use on one of my router the following script to display IP, you can modify it for your needs:

 

#!/bin/sh

 

# Display current WAN IP address

count=0

while [ $count -le 20 ]; do

  /usr/bin/wget -q -O /tmp/wanip.txt http://checkip.dyndns.org:8245/

  if [ $? -eq 0 ]; then

    /bin/cat /tmp/wanip.txt | /bin/grep -o -E "Current IP Address: .*[0-9]"

    /bin/rm -f /tmp/wanip.txt

    break

  fi

  /bin/rm -f /tmp/wanip.txt

  count=$(($count+1))

done

Cycle is to avoid temporary problems with DynDNS service.

For your script you can use either cron or modify my /usr/sbin/net-wall adding call of your script after line with “iptables”. So it will be called every time when router set/reset current firewall rules.

 

Voxel.

Zeljko1234
Zeljko1234's picture
Excuse me for jumping into

Excuse me for jumping into your conversation.

Is there any way to clear "ReadyCLOUD" without reseting router to default and reconfiguring everything over again? In my case router is shoing that is registered to ReadyCLOUD but on the web page is not. Clicking on "unregister" just quickly reload the page and status remained "registered". Currently my router is running latest official release because bridge mode is temporarry broken in Voxel's build.

Voxel
Voxel's picture
Hi Zeljko,

Hi Zeljko,

As far as I know to clear ReadyCLOUD it is necessary to remove:

/opt/leafp2p/

/opt/rcagent/

/opt/remote/

/opt/xagent/

/usr/lib/rclibrary.so

/www/cgi-bin/genie.cgi

/www/bin/readycloud_control.cgi

then remove /opt/ if no Entware is here.

And reboot router.

 

Voxel.

 

eliz82
eliz82's picture
I have have added  "/usr/sbin

I have have added  "/usr/sbin/net-wall"

#!/bin/sh

# register my IP to my custom DDNS
AGENT=Custom
USERNAME=myuser
PASSWORD=mypass
SUBDOMAIN=eliz.some-ddns.ro
IP=$(wget -O - -q http://myip.dnsomatic.com/)
URL=http://www.some-ddns.ro/update.php
curl -A "$AGENT" -d "username=$USERNAME&password=$PASSWORD&subdomain=$SUBDOMAIN&ipaddr=$IP&change=Update" $URL

and it seems to work. I reconnected my pppoe connection from the webgui to get a new wan ip and it seem the address on my custom ddns was updated for the first time in the last 5 days.

---

but i would preffered a more classical aproach like the guys from openwrt are doing it https://wiki.openwrt.org/doc/techref/hotplug

I have created a file "/etc/hotplug.d/iface/99-wanup" that contain a script like this

#!/bin/sh

[ "$ACTION" = "ifup" ] && {
cat >> /opt/test.txt <<EOF
99-wanup
EOF
}

however nothing appear in my "/opt/test.txt" if I reconnect my pppoe connection. any idea why hotplug script dont work ? teoretically it should detect when wan is up.

Zeljko1234
Zeljko1234's picture
Thx Voxel. You are really

Thx Voxel. You are really Netgear expert. However, looks like that is easier to do factory reset and quickly configure router again :)

eliz82
eliz82's picture
by the way Voxel i don't seem

by the way Voxel i don't seem to find netdata in your entware x3

in the original entware-ng is there http://pkg.entware.net/binaries/armv7/Packages.html

Voxel
Voxel's picture
More fresh version of Entware

More fresh version of Entware-3x:
 

https://yadi.sk/d/DTr4u2IRxe8AF

 

Voxel.

Zeljko1234
Zeljko1234's picture
Is it possible to plug in USB

Is it possible to plug in USB WiFi stick and connect to internet over another WiFi network instead of using bridge mode and lost most of the R7800 funcionality?

Voxel
Voxel's picture
WiFi stick - problematic.

WiFi stick - problematic. Impossible w/o changes in FW.
 

Maybe it is more easy to use some additional cheap router working in bridge mode and connected to WAN of R7800 working in router mode. With cost $20-25. Tp-Link produces chear compact routers e.g. TL-MR3020. OpenWRT can be installed to such router.
 

Voxel.

Zeljko1234
Zeljko1234's picture
Thx Voxel. After some

Thx Voxel. After some research, I figured the same :)

eliz82
eliz82's picture
Some feedback

Some feedback

1) Netdata is not running with Entware 3x alternative instalation, again problems with user nobody (the default in netdata config). I used standard installation (I renamed the files and manually made symlinks myself) and it's running fine now (with the default config, I didn't test the plugins at the moment).

2) By puting registering ddns script to "/usr/sbin/net-wall" some users can have problems. I have made a log to check how many times the file is executed and it seems sometimes is running the script 4 times in the same minute. Some ddns host may have some protection implemented and ban you for making to many update requests in a short time. For example my ddns host ban you for 24h if you make more then 10 requests in 10 minutes.

Example from my log:

2016/12/27 22:54:12
2016/12/27 22:54:18
2016/12/27 22:58:54
2016/12/27 22:58:59
2016/12/27 22:59:14
2016/12/27 22:59:20

3) Inadyn client for ddns is not working in my case, it do not have a capability to specify user agent when trying to acces the ddns update page. I have made a request but it seems the developer don't want to add this future as he dosent use it , pff surprise

https://github.com/troglobit/inadyn/issues/153

Voxel
Voxel's picture
Hi,

Hi,

"1)" is a specific of Entware 3x. Not so difficult to correct either init files or use own user "nobody". All depens on concrete package. 

"2)" and "3)" as I wrote it is own Netgear's firewall. It run it depending on own logic. One precompiled binary from second precompiled binary. Specific of the stock FW. IMO it is better to use standard tools. You can use e.g. cron every 5 min to check WAN IP. And if it is changed then use your script with curl. How to check WAN IP: I placed script I use above. DynDNS provides relatively good service to get your WAN IP. 

 

P.S.
I use ddclient for my needs. It is Perl client so it does not depend on platform (computer or router or whatever else). Only needs to install Perl from Entware.

Voxel.

 

Voxel
Voxel's picture
Updated version of Entware-3x

Updated version of Entware-3x.

More than 150 packages are upgraded, new packages are added.

Link is the same: 
 

https://yadi.sk/d/DTr4u2IRxe8AF

It is enough to do "opkg update" and "opkg upgrade". No re-install is needed.

Voxel.

 

Zeljko1234
Zeljko1234's picture
Thx Voxel
Thx Voxel
 
P.S.
 
What a confusing forum. Every time when I get the link for a new post, it's not leading anywhere. Then I have to login, then click on the profile then subscription, thread link, last post. Did I miss any click? :D
 
Voxel
Voxel's picture
Zeljko:

Zeljko:

You are welcome ;-)

Regarding forum: I face "lost last message" is I dod not login. Cannot see my last published message.

 

BTW, new stock FW 1.0.2.20 is released by Netgear. So new release of my FW will be soon (most probably tomorrow).
Regards,

Voxel.

vladlenas
vladlenas's picture
Thank you Voxel! Excellent
Thank you Voxel! Excellent work!

 

 

 

 

vladlenas
vladlenas's picture
Terrible message editor in

Terrible message editor in this forum )

Voxel
Voxel's picture
Vladlenas:

Vladlenas:
 

My respect: you started with this almost as a beginner, and after three weeks you are practically pro ;-)

 

P.S. Forum is really too strange.

Voxel.

Zeljko1234
Zeljko1234's picture
What about moving to another

What about moving to another forum, for example http://www.snbforums.com/forums/?

Voxel
Voxel's picture
Zeljko (other forum):

Zeljko (other forum):

Well, if someone would start a topic there, I'll be glad to participate/migrate. I am too modest (and too lazy) to start it myself ;-)  

 

Regards,

Voxel.

Voxel
Voxel's picture
I publish new version of

I publish new version of custom firmware:1.0.2.21SF.

 

The link for download is https://yadi.sk/d/KEqUa7j738b72u

Changes (vs 1.0.2.15SF):
 

1.0.2.21SF
1. Integration with stock 1.0.2.20.
From Netgear notes to 1.0.2.12:
New Features and Enhancements:
* Opens the DFS channel for Japan.
* Supports the access control feature when the router operates in AP mode.
Bug Fixes:
* Fixes the issue in which the IPV6 SPI-filter doesn't work when IPv6 use same PPPoE session as IPv4.
* Fixed some minor bugs.
 Additional changes (found during my integration):
* ReadyCLOUD version is upgraded.
* Qualcomm drivers (firmware) are upgraded (5GHz).
* GPIO driver is changed (kernel level).
* Kernel signal scheme (interaction with Busybox) is added.
* WebGUI is optimized a bit.
* Netgear Downloader is optimized a bit.
2. ethtool version is upgraded 3.4.1->4.8.
3. e2fsprogs versinon is upgraded 1.43.1->1.43.3.
4. Changes several scripts to use direct path to firmware /bin/opkg (to avoid conflicts with opkg from Entware).
5. Bug with HiLink modem mode switch is correctd (tested by Vladlenas with Huawei E3372 HiLink modem, thanks to him).
6. Few minor Netgear's bugs are fixed.

Voxel.

 
Zeljko1234
Zeljko1234's picture
Just checked release notes,

Just checked release notes, not many changes.

Voxel
Voxel's picture
A bit more than in release

A bit more than in release notes, see my post above. You probably will be interested in newer version of ReadyCLOUD.

Zeljko1234
Zeljko1234's picture
Does not make sense that
Does not make sense that someone started a new topic with your firmware. Actually is really rude. You should make the first post and would be nice from you to edit with a new link after every release. Also, most probably you will get more attention and downloads over there than here.
 
Anyway, thx for a new build and more detailed changelog. About WebGUI, should be redesign, not just optimized a bit (that goes to NG, not you).
Voxel
Voxel's picture
Funny, I cannot create the

Funny, I cannot create the thread in snbforum. I am blocked there too ;-) 

OK, I send them message about this using “Contact us” link.

Voxel.

Zeljko1234
Zeljko1234's picture
So you had/have account there

So you had/have account there? Otherwise, how could you be blocked there? By default, you are too suspicious :D

Voxel
Voxel's picture
Yeah, I had an account there:

Yeah, I had an account there: registered about 3-4 years ago. Almost no post from me.

And yes, I am too suspicious ;-) Software is afraid of me ;-). Forum robot blocked me, mail from forum admin:
 

Cloudflare thinks you are trying to attack. Not sure why.

I posted the
text for you.

 

Finally:
 

http://www.snbforums.com/threads/custom-firmware-build-for-r7800.36859/
Voxel.

eliz82
eliz82's picture
i saw there is a package on

i saw there is a package on mynetgear:
http://downloads.mynetgear.com/entware/cortex-a15-3x
is this the hard float and optimized version ?

Voxel
Voxel's picture
eliz82:

eliz82:

Interesting... I am shocked. Where from did you find it? It's my own private site.. My DNS registered in my R7800. Yeah, HF and optimized. But I do not want to leave it public accessible. So OK, let's it be sometimes here, bu then I'll close it. It equals to what I published in past (Entware-3x).

 

Voxel.

 

Pages