Posts

Showing posts with the label nas

Use your private linux server (NAS or other) as a proxy with ssh, PuTTY and Firefox

Image
In PuTTY parameters, in Connection > SSH > Tunnels Configure your SSH connection as usual In Source port , input the port that putty will listen on (e.g. 44444). Use a port that is not currently used on the computer running putty In  the three-option Local, Remote, Dynamic, choose Dynamic Click the Add button Click the Open button to connect to the server In the Firefox options, Advanced > Network > Parameters , select the option Manual proxy configuration . In the field SOCKS host , input 127.0.0.1 and in port , the port you have configured in PuTTY. Your Firefox should now tunneling all your connections through your private server. (This should also work with any server running SSH) UPDATE 2014-03-12 :  If you also would like to secure your DNS queries, write "about:config" in the address bar. Then search for the value network.proxy.socks_remote_dns and set it to true  #1

Connect to SSH with a Public Key on a Synology Station

Prerequisites : You own a public key and a private key, or you can generate one with puttygen or openssl ipkg and nano installed if you want to use this editor First connect to your nas as root via ssh using your admin password. If you want to connect later on as root, go in the home folder of root If you want to connect as another user, go in the home folder of the other user, and follow the same instructions cd /root/ Go to or create the directory .ssh mkdir .ssh cd .ssh/ Open the file authorized_keys (assuming nano is installed with ipkg, otherwise use cat or vi) : nano authorized_keys Copy your public key inside the file and save it. Open sshd config file : nano /etc/ssh/sshd_config Ensure the two following parameters are enabled and uncommented : RSAAuthentication yes PubkeyAuthentication yes Configure your ssh client to use your private key and enjoy ;)

Install and configure dnsmasq on Synology NAS

ipkg dnsmasq In /opt/etc/dnsmasq.conf , modify the path where dhcp lease file is saved: dhcp-leasefile=/opt/var/dnsmasq/dnsmasq.leases

Open web remote access on Belgacom BBOX router via Synology NAS

Prerequisites : Synology NAS accessible via SSH lynx installed on the nas (you can install it with ipkg) If you want to remotly access to the router's web configuration page but didn't enable the option before, here is the way to do it : Connect via SSH to your server inside your local network Telnet the BBOX (192.168.1.1) login : admin pwd : BGCVDSL2 (if you didn't change it) Change the remote port with the following command  rg_conf_set admin/https/1/port 7777 Enable the remote access rg_conf_set admin/https/1/remote_access 1 Exit telnet Connect to the web interface localy with lynx (a command line webbrowser) lynx 'http://192.168.1.1/index.cgi?user_name=admin&password=BGCVDSL2' This is done probably because the admin web interface need to be accessed in order to load the new parameters You can now connect on your BBOX web interface through port 7777 #1   #2

fix uptime and ls commands after coreutils install on synology DS211+ nas

After installing coreutils with ipkg , lots of system commands will be used from /opt/bin instead of /bin . Most are working fine but some should be reverted. For example uptime seems completly broken and ls doesn't use color anymore. I've fixed this issue with the following commands: ln -sf /bin/ls /opt/bin/ls ln -sf /usr/bin/uptime /opt/bin/uptime

rc.d and init.d occurences in synology nas

(Took on a DS211+) /usr/syno/etc/rc.d link to /usr/syno/etc.defaults/rc.d -> synology standard applications /usr/local/etc/rc.d -> synology standard packages (*.spk) /opt/etc/init.d -> optware applications (ipkg) /etc/init.d -> linux standard applications

install ipkg on synology DS211+ NAS

Find out your processor version : cat /proc/cpuinfo Processor : Feroceon 88FR131 rev 1 (v5l) BogoMIPS : 1589.24 Features : swp half thumb fastmult edsp CPU implementer : 0x56 CPU architecture: 5TE CPU variant : 0x2 CPU part : 0x131 CPU revision : 1 Hardware : Synology 6282 board Revision : 0000 Serial : 0000000000000000 The Feroceon 88FR131 processor is also known as Marvel 6282 Installation of ipkg is done with the following steps : cd /tmp wget http://wizjos.endofinternet.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh sh syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh Credit : 1 2