Custom firmware for R7800 to extend its functionality

417 posts / 0 new
Last post
Zeljko1234
Zeljko1234's picture
Hi Voxel
Hi Voxel
 
All answers are in the part you quoted, I'm using stock (official), latest (V1.0.2.40) and as router/access point.
 
No problems with DNS since I post this. Finger crossed.
d3n3b
d3n3b's picture
Hi Voxel,

Hi Voxel,

Is there some special way to configure port forwarding for Transmission (R7800 V1.0.2.45SF)? My client uses UPnP and there are corresponding entries in mapping table but port remain closed. Do You have any advice regarding this problem?

alaattinturyan
alaattinturyan's picture
Hi Voxel,

Hi Voxel,

Thank you for doing this job. This is absolutely amazing. I followed the steps in documentation and several pages in forum.

I have installed Rtorrent(RuTorrent) over the entware using opkg. GUI works over the 81 port correctly. But it doesn't download any torrent since it cannot find any of peers/trackers. Basically cannot download anything.

1-) Is there a way to fix Rtorrent(RuTorrent)?

2-) If not, I tried to uninstall all packages which installed (around 15-17 packages). opkg successfully removed packages but after restart I can still access to GUI using 81 port. How can I uninstall completely?

3-)While installing Entware, you mention that SWAP file shall be 2G if it's used for Plex. When I check opkg, I couldn't find any package related to Plex. How can I do it?

4-)I have seen several solutions to run Plex on modem devices like Asus using Debian. I have seen debian package around 200mb in your web page as well but no documentation. It would be great if you help me to install it.

Thank you, best.

Alaattin

alaattinturyan
alaattinturyan's picture
I have found answers some of

I have found answers some of my questions. 

1-) RuTorrent works correctly. Most probably my torrent file has some issues. RuTorrent works fine but as far as I see, it's not as fast as Transmission. While using RuTorrent, CPU has waves all the time which doesn't look normal.

2-) Since RuTorrent works on lighttpd server, html files under cd /opt/share/www shall be removed

3-) Still question. I would like to learn if any chance of installing Plex

4-) Still question. Good to be identified.

BTW, I have installed owncloud 10.0.4 w/mariadb. It looks working, quite slow. I couldn't find time to test properly yet. Only question is, when I check SWAP space, it's always empty like Swap:1048572 140 1048432. Is there any reason for that? Wouldn't be good to enable this space?

Best,

Alaattin

Voxel
Voxel's picture
Guys, sorry, I am very

Guys, sorry, I am very overloaded now (my main job). Not enough time to answer all in time.
 

d3n3b: Transmission: try just to open its port in firewall. How: it is written in my README (netwall.conf).

alaattinturyan: Transmission: there is IMO not quite legal way to use it with R7800. I tried myself long time ago, it worked with chroot-ed Debian.

As I found, there is similar way described for example here:
 

https://www.hqt.ro/plex-media-server-on-asuswrt-armhf-routers/

You can try it. I did myself something like that. But note that no any transcoding will work, too weak CPU.

SWAP: I do not quite understand. Did you use full procedure described in my README? NOTE: swapon command should be executed every time after router reboot.

Voxel.

 

d3n3b
d3n3b's picture
Thank you, Voxel. I have

Thank you, Voxel. I have overlooked this information in README, sorry for that.

I have one more question I did not found answer about in documentation. Is there possibility to configure Transmission to automatically load torrent files after reboot?

Voxel
Voxel's picture
I have one more question I

I have one more question I did not found answer about in documentation. Is there possibility to configure Transmission to automatically load torrent files after reboot?

 

It should be possible. But some initial manual job is needed. When transmission is started after reboot, it check the existence of directory "transmission" in the root of your external USB disk. So if it finds e.g.

/mnt/sda1/transmission/settings.json

it will use /mnt/sda1/transmission/ as a directory with your configuration of transmission. So it means that config will not be generated anew.

Probably most simple way is to start some test downloads and after this copy /tmp/transmission-gui directory to your HDD:

cp -rp /tmp/transmission-gui /mnt/sda1/transmission
 

Something like this. After this edit your config to allow automatic load torrent files after reboot.
Voxel.

mroh
mroh's picture
First thanks Voxel, good job

First of all, thanks Voxel, good job with the firmware.

I have some issues with DNS though. With my erlier Asus router the router was a local DNS server and forwarded requests on to its DNS servers. Under its DHCP server settings I could tell it wich DNS servers the client should use.

With Netgear I only have the possibility to set the DNS servers on the Internet setting page and not which DNS servers the DHCP server should offer the clients. My problem is that I have an pi-hole server on a internal IP adress and I would like to have the pi-hole as a DNS server for all DHCP clients. If I put the PI-hole as DNS server for the router nothing works. I was hoping there is some config setting somwhere to set the DHCP server DNS settings. I have some suspicion the DNS-crypt service is casing parts of the problem also.

Could anyone offer some help or insights on this?

 

Thanks,

mroh

Voxel
Voxel's picture
I am not sure, as you can

I am not sure, as you can guess I have other configuration. But probably you should try to play with dnsmasq entering to your router console (telnet or ssh). Manual job. no GUI. First manually. Just changing /etc/dnsmasq.conf. I.g. stop dnsmqasq server (/etc/init.d/dnsmasq stop)  then changing /etc/dnsmasq.conf to something like:
 

localise-queries
no-negcache
cache-size=2048
try-all-ns
no-resolv
server=192.168.1.100
 
where let's supppose that 192.168.1.1 is IP of your internal server

Then try to start dnsmasq manually like /usr/sbin/dnsmasq and check if you local DNS works. If OK you should correct some init script, see as example /etc/init.d/dnscrypt-proxy script.

Voxel.

 
Voxel
Voxel's picture
New version of my custom
New version of my custom firmware build: 1.0.2.46SF.

Changes (vs 1.0.2.45SF):

1. Integration of changes from the latest stock v. 1.0.2.44.
2. Correction of several bugs introduced with the stock v. 1.0.2.44.
3. OpenVPN client changes: it is forced to use core 0 (affinity).
4. OpenVPN client changes: net-wall script is corrected to process "restart" argument (thanks tokamoj).
5. ubus package is upgraded 2017-11-13->2018-01-16.
6. curl package is upgraded 7.57.0->7.58.0.
7. liblz4 package is upgraded 1.8.0->1.8.1.2.

The link is:

https://www.voxel-firmware.com (thanks to vladlenas for his help with hosting).

NOTE: Most probably no reset is needed to upgrade from my previous versions. But if you face problems it is better to perform reset.

Voxel.

 

 

beepdotpw59
beepdotpw59's picture
Hello I do not understand,

Hello I do not understand, before I can connect with open vpn from the usb key and now it connects more 

/etc/init.d/openvpn-client stop
/etc/init.d/openvpn-client start
Error: tun0 interface exists. OpenVPN client is probably already started.
root@R7800:/$
root@R7800:/$
 
wildpumpkin
wildpumpkin's picture
Hello Voxel and everyone!

Hello Voxel and everyone!

Thanks Voxel for your work.

Sadly im unable to complete the installl of the firmware, hum not the firmware but entware.

I recently received this router (happy) so this is what i did :

  1. Unbox and plug the router
  2. Update the stock firmware
  3. flash your firmware .46
  4. Configure SSH access
  5. Prepare Usb stick with optware name in ext2 with entware-cortex-a15-3x-ad-block.tar.gz
  6. Plugin and reboot
  7. I can see symlink with ls -l /opt/*
  8. To continue i would like tocreate swap file but there is nothing to mount in /mnt/sd... Dont Work
  9. And reboot Opkg etc dont work

I hope you will have the time to help me.

Thanks, Wp.

Voxel
Voxel's picture
Hi,

Hi,

Try to use /opt/bin/opkg but not just opkg. And try to list e.g. /opt/bin/ if still problems.

Regards,
Voxel.

 

 

 

wildpumpkin
wildpumpkin's picture
Voxel, thanks for your answer

Voxel, thanks for your answer,

ls -l /opt/bin/*
-ash: root@R7800:/$: not found

There is symlink but i cant access it, there's nothing.
Its weird, i will reset the router tomorrow and try to do it again without updating the netgear firmware.

 

wildpumpkin
wildpumpkin's picture
And just for information, if

And just for information, if i copy/paste the link page 404 :

https://archive.openwrt.org/attitude_adjustment/12.09-rc1/ipq806x/generi...

 

Voxel
Voxel's picture
Try to run:

Try to run:

ls -l /mnt/optware/

Currently you have no "opkg" command from Entware, so opkg from firmware is called. And the last refers to this fake page. Something is wrong with your installation.
Voxel.

alaattinturyan
alaattinturyan's picture
Wow, 1.0.2.46SF offers a huge

Wow, 1.0.2.46SF offers a huge memory improvement. I have owncloud, mariadb, rutorrent and some optware apps like netdata.

After installing 1.0.2.46SF, free memory increased to 125mb from 20mb. Either there is an optimization or I have lost some stuff that I didn't figure it out until now.

Voxel, your work is great. Thank you. I just realised that after each upgrade I lose my ssh and some other stuff. I am sure you have a script for the overriden stuff. Can you please share it with us? My is below ;

tar cf /mnt/sda1/backup.tar etc/dropbear/ etc/init.d/dropbear root/.ssh/ etc/netwall.conf etc/init.d/powerctl 
 
Many thanks
Voxel
Voxel's picture
Thanks for you thanks ;-)

Thanks for you thanks ;-)

Memory: I am not sure, but there was a memory leak in avahi daemon. Fixed in 1.0.2.46SF.

backup: it is practically the same:
 

https://www.snbforums.com/threads/enabling-dhcp-auth-options-60-and-61-o...

P.S.
BTW, my version of Entware is upgraded (Sunday).

Voxel.

Voxel
Voxel's picture
s -l /opt/bin/*

s -l /opt/bin/*
-ash: root@R7800:/$: not found

There is symlink but i cant access it, there's nothing.
Its weird, i will reset the router tomorrow and try to do it again without updating the netgear firmware.

Something is wrong with your installation. IMO you should repear p 5
 

Prepare Usb stick with optware name in ext2 with entware-cortex-a15-3x-ad-block.tar.gz
 

and run "ls -l /mnt/optware/"

Voxel.

Zeljko1234
Zeljko1234's picture
DNS problem happened again.

DNS problem happened again. Some of my wifi devices became unreachable from internet, others with manually configured DNS worked fine. Re-apply internet setting in R7800 fixed the problem. For now.

I choose R7800 because of good reviews, high throughput but firmware is crap. Slow, buggy... 

p.s.

I'm not talking about Voxel's one. You do what you can with closed source.

Voxel
Voxel's picture
So why don't you use my build

So why don't you use my build? Just interesing. I am unable to correct all bugs but at least what Ican.

Zeljko1234
Zeljko1234's picture
Well, most of the time I do

Well, most of the time I do not have physical access to the router so when I had, I went for "safe" firmware.

Btw, did you fix this bug in your build?

Voxel
Voxel's picture
Btw, did you fix this bug in

Btw, did you fix this bug in your build?
 

I do not quite understand your problem.I use custom DNS in router mode. It is working. It is set not in DHCP setup but in Internet setup.

Voxel. 

Zeljko1234
Zeljko1234's picture
I have exactly the same

I have exactly the same settings and after a while, router is not forwarding DNS packets ant further. That's why I would like to have option to configure real DNS IP under DHCP, not to be R7800 private IP/def gw toward clients.

 

Btw, how is imlemented in the firmware? Using dnsmasq or similar? Maybe process crashed after a while?

alaattinturyan
alaattinturyan's picture
Voxel, can I ask you to

Voxel, can I ask you to update two packages.

1-) netatalk / afpd (with is usefull to use apple timemachine, it looks like netgear official netatalk is pretty old. afpd 2.2.1 ->3.1.xx)

2-) avahi (0.6.32 -> 0.7)

Thank you

Voxel
Voxel's picture
Voxel, can I ask you to

Voxel, can I ask you to update two packages.

1-) netatalk / afpd (with is usefull to use apple timemachine, it looks like netgear official netatalk is pretty old. afpd 2.2.1 ->3.1.xx)

2-) avahi (0.6.32 -> 0.7)

Thank you

 

It's a bit problematic. netatalk: I just do not have Mac to test it. Any such updates requires from me a testing that functionality is not destroyed, but no tools for testing. It is not difficult to compile after upgrade, but to check that everything is OK after update... This package is realy outdated in firmware, but NG are using aditional shells over it (binary utlilities calling netatalk programs), i.e. they are preparing config files, start/stop netatalk etc... I have it in mind of course, but...

avahi: I am not sure. OpenWRT and LEDE still are using 0.6.32.

https://github.com/openwrt/packages/blob/master/libs/avahi/Makefile

I upgraded 0.6.31 in stock to 0.6.32. Well, maybe. Again intensive testing. I have to process the logic of every package I upgrade.

You know, upgrade often means that config file directory or config file name are changed. Process of upgrade is not so easy as people could think... 

Voxel.

Voxel
Voxel's picture
Btw, how is imlemented in the

Btw, how is imlemented in the firmware? Using dnsmasq or similar? Maybe process crashed after a while?

 

dnsmasq is used in firmware. But I use dnscrypt-proxy (together with dnsmasq of course).

Voxel.

Voxel
Voxel's picture
1-) netatalk / afpd (with is

1-) netatalk / afpd (with is usefull to use apple timemachine, it looks like netgear official netatalk is pretty old. afpd 2.2.1 ->3.1.xx)

It is too problematic There are significant changes in netatalk 2.2.x vs 3.x For example absolutely changed config file(s). So I can only upgrade to 2.2.6 (July 2017)

avahi: as I checked even latest Debian is using 0.6.32
 

https://packages.debian.org/search?mode=path&suite=stretch&section=all&a...

(and BTW netatalk version in latest Debian is 2.2.5...)

Sometimes is is better to keep conservatism to do not break stability.

Voxel

 

owencool
owencool's picture
Hi, voxel

Hi, voxel

I'm trying to bypass openvpn tunnel using the script u gave me. But apparently it doesn't work for me. 

I tried to bypass local IP range 10.0.0.2 to 10.0.0.100

I put it by putting individual IP 10.0.0.2 to 10.0.0.100 in the script though

or maybe it doesn't work bcoz i didn't put dhcp reservation?

is it necessary to put dhcp reservation for the bypass to work?

 

#!/bin/sh

# Don't forget to reserve the list of IPs for exclusion devices on the DHCP server

# Edit the following IP list to bypass the VPN. Seperate individual IP's using a single space between them.

NO_VPN_LST="10.0.0.2 10.0.0.3 10.0.0.4 ... 10.0.0.100"

WAN_GWAY=`nvram get wan_gateway`

for excludeip in $NO_VPN_LST; do

   /usr/sbin/ip rule add from $excludeip table 200

done

/usr/sbin/ip route add table 200 default via $WAN_GWAY dev brwan

/usr/sbin/ip route flush cache

 

exit 0

 

Is there anyway to put range of IP instead of individual list?

sorry newbie here

owencool
owencool's picture
To put it simple

To put it simple

I want only selected device to go through the openvpn tunnel.

So the dhcp address will be set from 10.0.0.2 to 10.0.0.100 and these addresses will bypass the tunnel

while the one with static address configured manually from the devices itself from 10.0.0.101 to 10.0.0.254 will go through openvpn tunnel

Pages