Install DNSCrypt 1.4 di CentOS 7

Sebelum memulai instalasi, kita harus menginstall library-library yang dibutuhkan

yum install gcc make automake gcc-c++ glibc-devel libtool automake libtool-ltdl-devel

Install libsodium

cd /tmp
wget --no-check-certificate https://download.libsodium.org/libsodium/releases/libsodium-0.6.1.tar.gz
tar zxvf libsodium-0.6.1.tar.gz
cd libsodium-0.6.1
./configure
make && make check
su -c "make install"

setelah selesai menginstall libsodium jalankan

echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf

lalu jalankan

ldconfig

kalau tidak dijalankan nanti muncul error

configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
configure: error: ./configure failed for src/libevent-modified

sewaktu menginstall dnscrypt.

Install DNSCrypt

wget --no-check-certificate http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.0.tar.gz
tar zxvf dnscrypt-proxy-1.4.0.tar.gz
cd dnscrypt-proxy-1.4.0
./autogen.sh
./configure
make
su -c "make install"

sampai tahap disini, proses instalasi telah selesai.

Konfigurasi DNSCrypt

Agar komputer anda menggunakan DNSCrypt, hapus isi file /etc/resolv.conf ganti dengan

nameserver 127.0.0.1

jalankan service DNSCrypt (dnscrypt-proxy)

dnscrypt-proxy -R opendns -d

untuk mengetahui dnsproxy berjalan atau tidak hilangkan -d dibelakang perintah diatas. Test apakah koneksi sudah melewati DNSCrypt atau tidak

dig yahoo.net### output perintah diatas
......
;; ANSWER SECTION:
yahoo.net.		172781	IN	NS	ns4.yahoo.com.
yahoo.net.		172781	IN	NS	ns3.yahoo.com.
yahoo.net.		172781	IN	NS	ns1.yahoo.com.
yahoo.net.		172781	IN	NS	ns2.yahoo.com.
yahoo.net.		172781	IN	NS	ns5.yahoo.com.
;; Query time: 152 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Aug 12 05:17:31 EDT 2014
;; MSG SIZE  rcvd: 137

bagian SERVER: 127.0.0.1#53(127.0.0.1) menandakan query ke yahoo.net melewati DNSCrypt yang tadinya kita install.

tommy

Adi bekasta encari e, ja pe la lit renggetna.

Leave a Reply

Your email address will not be published. Required fields are marked *