yum install -y openvpn modprobe iptable_nat echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -s 10.4.0.1/2 -o eth0 -j MASQUERADE cd /etc/openvpn/ openvpn –genkey –secret vpn.key vi openvpn.conf openvpn.conf port 8080 proto tcp-server dev tun1 ifconfig 10.4.0.1 10.4.0.2 status […]
Relax and Recover
Relax and Recover (ReaR) http://relax-and-recover.org/ . Thread sobre ReaR na Symantec http://www.symantec.com/connect/forums/netbackup-linux-bare-metal-restore-using-open-source-relax-and-recover-rear . Configurando NFS server # service rpcbind start # service nfs start # service nfslock start # lvcreate –name LV_media –size 4G VG_ROOT # mkfs -t ext4 -O […]
centos 6 change keyboard layout command line
centos 6 change keyboard layout command line vi /etc/sysconfig/keyboard KEYTABLE=”br-abnt2″ MODEL=”abnt2″ LAYOUT=”br” KEYBOARDTYPE=”pc” to exit vi do CRTL-ZZ
rtorrent how to
I needed a simple linux torrent client that work via Proxy! I tried Transfer,Deluge,uTorrent(via wine, very buggy!) none of them worked. Deluge has a known bug of using proxy. uTorrent worked for a bit by proxy but very buggy with […]
Setup AWS S3 Policy
S3 is a great place to keep logs data or even backups. Monthly Basic cost: S3 U$ 0.02 p/ GB (with Reduce Redundancy). Glacier only U$ 0.01 p/ GB For more detail use the AWS Calculator http://calculator.s3.amazonaws.com/index.html I currently send […]
nagios vmware esx plugin
The best script to monitor VMWare ESX using nagios was developed by Steve Shipway. 1. Download the script wget http://felipeferreira.net/wp-content/uploads/2015/05/VMWare.zip unzip VMWare.zip cd VMWare chmod +x check_vmware.pl && sed -i -e ‘s/\r$//’ check_vmware.pl ./check_vmware.pl OBS: It is normal to get […]
how to install zabbix on centos
How to install Zabbix yum -y update yum -y install httpd php php-cli php php-ctype php-bcmath php-xmlreader php-xmlwriter php-xmlwriterfping libcurl libiksemel net-snmp php-net-socket php-mbstring php-gettext mysql mysql-server mysql-devel.x86_64 php-mysql.x86_64 libxml2-devel.x86_64 libxml2.x86_64 libxml2-static.x86_64 net-snmp-devel.x86_64 net-snmp-libs.x86_64 net-snmp-utils.x86_64 libcurl-devel.x86_64 libcurl.x86_64 curl.x86_64 gd.x86_64 gd-progs.x86_64 […]