Archive

Posts Tagged ‘Linux’

Block IP bash script

March 30th, 2017 No comments

Still working hard to keep my server security locked down from attacks.

This script checks lighttpd logfile for unusual behaviour

Read more…

Failed to read keytab [default]

January 10th, 2017 No comments

When starting sssd in centos 7 I was getting this
ERROR:
Failed to read keytab [default]: No such file or directory

Read more…

Categories: HowTo, Linux Tags: , , ,

Python 3 Django Mariadb

December 7th, 2016 No comments

Centos 6 x64 Python 3 Django Mariadb
I found out the hard way that python 3 default mysql driver does not work
Anyways You will need to install mariadb devel

Read more…

Categories: HowTo, Linux Tags: , , , ,

URBACKUP CENTOS 7 HOW TO INSTALL

November 25th, 2016 No comments

URBACKUP CENTOS 7 HOW TO INSTALL

Centos 7 x64bit urbackup-server-2.0.36

Requirements:
yum install autoconf automake binutils bison flex gcc gcc-c++ gettext libtool make patch pkgconfig redhat-rpm-config rpm-build rpm-sign
yum install zlib-devel.x86_64 zlib.x86_64 libcurl-devel.x86_64 cryptopp-devel.x86_64

Read more…

Categories: HowTo, Linux Tags: , , , , , ,

VPN openvpn howto linux

November 17th, 2016 No comments

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 server-tcp.log
verb 4
secret vpn.key

Categories: HowTo Tags: , ,

Reverse SSH Tunnel

November 14th, 2016 No comments

The idea is to have my IP autostart connect to my Cloud server,
this way I can remote control my Raspberry PI without having to configure DynDNS and firewall rules.
The only requsisite is that PI has internet and run a simple script on startup to estabilish the SSH tunnel

Read more…

How to force ntpd time sync

September 14th, 2016 No comments

How to force time sync
Find out your ntpd servers:

grep server /etc/ntp.conf
service ntpd stop
ntpdate -s
service ntpd start

Read more…

Categories: HowTo, Linux Tags: , , , , ,

Can’t locate Sys/Statistics/Linux.pm

August 5th, 2016 No comments

When using check_stats.pl on Centos 7 I got a known error but not so easy to fix…

PROBLEM:
# su – nrpe -c “/usr/lib64/nagios/plugins/check_stats.pl -C -w 90% -c 95%”
Can’t locate Sys/Statistics/Linux.pm in @INC (@INC contains: /usr/lib64/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/nagios/plugins/check_stats.pl line 33.
BEGIN failed–compilation aborted at /usr/lib64/nagios/plugins/check_stats.pl line 33.

Read more…

Categories: Linux Tags: , ,

Relax and Recover

May 24th, 2016 No comments

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

Read more…

iptables block country script

April 25th, 2016 No comments

My own server is daily attacked by SSH scanner and bruteforce scripts.
My fail2ban solution

Read more…