rsync

rsync -avz system@ip-sumber:/home/system/telo-copy/ /home/system/telo-paste/ rsync -avz -e “ssh -p 2222” /home/system/telo-copy/ system@ip-tujuan:/home/system/telo-paste/ continous rsync :

Set ip VM di server NDEV

auto ens32iface ens32 inet static auto ens34iface ens34 inet staticaddress 172.17.21.212netmask 255.255.255.0dns-nameserver 8.8.8.8 80.80.80.80post-up route add -net 172.17.22.0 netmask 255.255.255.0 gw 172.17.21.12post-up route add -net 172.17.23.0 netmask 255.255.255.0 gw 172.17.21.12

install netdata on ubuntu 16

sudo apt-get update sudo apt install libuv1-dev zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config curl jq nodejs -y cd ~ git clone https://github.com/firehol/netdata.git –depth=1 cd netdata sudo ./netdata-installer.sh —————— To stop netdata run: systemctl stop netdata To start netdata run: systemctl start netdata

ufw

install : sudo apt install ufw check status : sudo ufw status verbose enable ufw : sudo ufw enable disable ufw : sudo ufw disable allow : sudo ufw allow 8080/tcp allow range : sudo ufw allow 9000:9100/tcp allow spesific address : sudo ufw allow from 192.168.1.234 sudo ufw allow from 192.168.1.234 to any port… Read More »

netcat and port scanning

listen tcp : netcat -l 1234 listen udp : netcat -u -l 1234 connect to another server tcp : netcat 192.168.1.1 1234 connect to another server udp : netcat -u 192.168.1.1 1234 port scanning : netcat -z -n -v 198.168.1.1 1-1000 2>&1 | grep succeeded

Duplicate datebase MySQL

create database dbbaru; mysqldump -uusernya -ppasswordnya –events –routines dblama | mysql -uusernya -ppasswordnya dbbaru