1424 days
|
||||||
1424 days
My situation, ns1 and ns2, master and slave. On ns1 I’ve installed smbind to simply manage my zones. Now I want that ns2 will be automatically updated with the new zones from ns1 but, unfortunately, I wasn’t able to find anything ready on internet. At the end I wrote a simple script that simply connect […] On original metarouter: cd / echo “ ./tmp/* ./proc/* ./sys/*” > /tmp/exclude.list tar zcvf /tmp/newimage.tgz -X /tmp/exclude.list . On original Mikrotik: /metarouter export Start the new metarouter with the SAME original image when it is booted, login to it and copy the /tmp/newimage.tgz from the original one: scp original_metarouter:/tmp/newimage.tgz /tmp and restore it: cd / […] Searching far and wide on the web looking for a solution to my problem (have a mikrotik router that do load balance and failover), I came to the conclusion that a complete solution doesn’t exist. So I started taking all the scripts and docs found and putting them together…. The result is a working system […] I just finished to write my first SNMP check for check_mk 🙂 These checks are for query mikrotik routerboard device and check status of voltage (power supply), temperature and memory. For memory I simly edit the hr_mem check, I don’t know why but mikrotik use hrOtherDisk instead of hrRamDisk for internal ram. I’ve also add […] On this post I’ll explain you how to grab analog data from an 8-channel, 12 bit ADC. The ADC used is the Custard-PI 3 http://www.sf-innovations.co.uk/custard-pi-3.html . You can buy it directly from them on that page. I use it to log value from different type of sensors. As you know ADC for raspberry can read […] This is a small tutorial on how to establish an IPIP tunnel between a Linux Debian server and a Mikrotik RouterOs. Linux Machine: ip tunnel add tun0 mode ipip remote <remote_ip_address> local <local_ip_address> ip link set tun0 up ip addr add 192.168.200.1/24 dev tun0 Mikrotik RouterBoard: /interface ipip add local-address=<local_address> remote-address=<remote_address> /ip address add address=192.168.200.2/24 […] Launch this commands: CATOP=./personalCA CAKEY=./cakey.pem CAREQ=./careq.pem CACERT=./cacert.pem cd /etc/ssl mkdir $CATOP mkdir $CATOP/certs mkdir $CATOP/crl mkdir $CATOP/newcerts mkdir $CATOP/private echo “00” > $CATOP/serial echo “00” > $CATOP/crlnumber touch $CATOP/index.txt export OPENSSL_CONF=/etc/ssl/essetigiCA.cnf copy /etc/ssl/openssl.cnf to personalCA.cnf and edit OrganizationName, Country, State, ecc fields. Then execute: openssl req -new -keyout $CATOP/private/$CAKEY -out $CATOP/$CAREQ write a complex passhprase […] If you previosuly installed Debian on your internal flash and for some reasons your u-boot environment f**k you can simply restore it with this: setenv mtdpartitions mtdparts=nand_mtd:0xa0000@0x0(u-boot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) setenv bootargs_root ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs setenv bootargs_console console=ttyS0,115200 setenv bootcmd_nand ‘nand read.e 0x00800000 0x00100000 0x00400000’ setenv bootcmd ‘setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); run bootcmd_nand; bootm 0x00800000’ saveenv This […] |
||||||
Copyright © 2024 Farlock.org - All Rights Reserved Powered by WordPress & Atahualpa |