Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts


Install Unbound Dns on Centos

First make repo

nano /etc/yum.repos.d/centalt.repo
[CentALT]
name=CentALT Packages for Enterprise Linux 5 - $basearch
baseurl=http://centos.alt.ru/repository/centos/5/$basearch/
enabled=1
gpgcheck=0
yum install unbound bind-utils -y
cd /etc/unbound
wget  ftp://FTP.INTERNIC.NET/domain/named.cache
unbound-control-setup
chown unbound:root unbound_*
chmod 440 unbound_*
nano /etc/unbound/unbound.conf


Make Startup Script on CentOS

Sebenarnya membuat script startup bisa dengan mengedit file rc.local yang ada pada /etc/rc.d/
Namun ane lebih suka dengan menggunakan script, jadi sita bisa menggunakan command “service namaprogram start / stop / restart..

Dan semua jenis program bisa dijalankan lewat script iniLangsung aja ya..

1. Buat file baru yang bernamakan “NamaService” (boleh diganti sesuai dengan program yang ingin kalian buat) yang isinya sebagai berikut.



Install openvpn on centos

I'm using CentOS 5.5 because TUN/TAP is not available in CentOS 32bit and x86. Okay, the installation will be finish in approximately 30 minutes, after finished now login to root using ssh.

Before we're going to install OPENVPN, check your TUN/TAP whether it is active or not, if it's not you can try to install another CentOS or contact your vps provider to activate TUN/TAP.

cat /dev/net/tun