Hi! I'm a little bit lost about how to ssh to my router (my goal is to install kamoj add-on). How I'm able to get root/user passsword? or get keys? The search function atm is not working in this forum. Any guidance will be appreciatted. Thank you! Regards!
Another question, I would need to reproduce the steps every update? I mean, SSH keys and Kamoj add-on will survive with the next Voxel firmware version installation?
#!/bin/sh
if [ ! -f "/root/firewall-start.sh" ]
then
cp /tmp/mnt/$1/firewall-start.sh /root/.
fi
if [ ! -f "/root/.ssh/authorized_keys" ]
then
mkdir -p /root/.ssh
cp /tmp/mnt/$1/authorized_keys /root/.ssh/authorized_keys
fi
if [ ! -f "/overlay/etc/dnscrypt-proxy-2.toml " ]; then
sed -i -r "s/^(server_names[[:space:]]*=[[:space:]]*).*/\1['adguard-dns-doh']/" /etc/dnscrypt-proxy-2.toml
fi
I use a USB thumb drive that I leave in the router with backups of the authorized_keys and firewall-start.sh script. When the firmware is updated, it restores those files and patches the dnscrypt-proxy-2.toml config file to use the DNS servers I want.
Code:#!/bin/sh if [ ! -f "/root/firewall-start.sh" ] then cp /tmp/mnt/$1/firewall-start.sh /root/. fi if [ ! -f "/root/.ssh/authorized_keys" ] then mkdir -p /root/.ssh cp /tmp/mnt/$1/authorized_keys /root/.ssh/authorized_keys fi if [ ! -f "/overlay/etc/dnscrypt-proxy-2.toml " ]; then sed -i -r "s/^(server_names[[:space:]]*=[[:space:]]*).*/\1['adguard-dns-doh']/" /etc/dnscrypt-proxy-2.toml fi
The above is called post-mount.sh and goes in /autorun/scripts on the thumb drive. The thumb drive should be ext2/3/4, not FAT/FAT32.
Kamoj 5.4b6 running well on 1.0.2.80SF
New rules of SNB forums... I have to reply here. Let us @kamoj start the new thread himself.
There is very old bug in all versions of firmware (including 3 years old stock, even initial one) in 'date' command. Made by DNI/NG development team(s). It is fixed only since 1.0.2.80.5SF. Maybe it is "sleeping bug" and it does not touch you. More details: 'date -r /firmware_time' command should return the date of creation of the file "/firmware_time" file instead of current date/time. But in some cases, especially if you are not from UK i.e. not in GMT zone, or you do not set timezone in your settings by WebGUI it returns the current date (call of time() function from runtime C library, i.e. result is changed to the current time) instead of the date of "/firmware_time" creation.
Add-on made by kamoj is using this "date -r <filename>" result. Me too for NTP settings. Stock firmware does not. Sleeping bug. So it is recommended to upgrade to 1.0.2.80.5SF to fix this bug.
Bug exists in all versions of firmware I had to process: R7500, R7800, R9000/R8900, Orbi.
Voxel.
NG just released 1.0.2.76 yesterday. Wonder whats new. Says security fixes.
Thank you Voxel very much for your heroic contributions to the community, users all over the world and me.
You never stop amazing me with your brilliance, humor and humbleness.
PS: if you @kamoj is a common user then I wonder what I am...
I didn't see the security fixes (except chinese vpn funjsq), but some other changes:
- busybox
- funjsq : many changes
- duma code for XR500...
- New cert generation for openvpn
- debug_detail.htm : telnet removed...
I am currently running OpenWRT on my R7800. So, if I need to dive into Voxel, do I just flash the latest Voxel (R7800-V1.0.2.80.5SF.img) from the OpenWRT GUI or any special steps need to be performed? Of course, I will reset all the settings in OpenWRT but curious whether any additional steps need to be performed before Voxel.
Thank you. I almost forgot that I used TFTP to get to OpenWRT as it was a while back. I know how to use TFTP to move back/forth and thank you for pointing it out.You can not upload a ".img" firmware into OpenWRT (OpenWRT uses "*.bin") to get back to Netgear or Voxel firmware.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!