dig

How to install DNS server using BIND from source

This article describe how to install BIND DNS software on your linux machine, this guide has been tested on CentOS 6.3 x86_64 but I guest also work on other linux distros with  dependencies adjustment. As far I know, BIND is popular software that use as domain name system server in internet. I choose BIND because a lot of documentations and good life cycle also the important thing is stable and secure (depend on your setup).
Continue reading “How to install DNS server using BIND from source” »


openvz_logo

How to configure IPv6 on OpenVZ

I have been use OpenVZ since 2 years ago, and there was no critical issue. As we know, this blog had IPv6 address record in DNS and it was running for few months. The problems was come after I changed the distribution router to OpenBSD and I need to change routing table on core router. This article will show how to setup IPv6 in OpenVZ container and make the VPS IPv6 ready. Continue reading “How to configure IPv6 on OpenVZ” »


bridge

Linux Ethernet Bridging

Bridge adalah jembatan, begitu pula fungsi ethernet bridging di sistem operasi yaitu untuk menghubungkan paket data dan meneruskannya ke tujuan layaknya mobil yang melewati jembatan, ethernet bridging biasanya diimplementasikan sebagai transparent firewall atau traffic shapper sedangkan saya sendiri menggunakan ethernet bridging ini untuk kedua fungsi diatas. Berikut kutipan dari websitenya:

Ethernet bridging is a way to connect networks together to form a larger network. The standard for bridging is ANSI/IEEE 802.1d. A bridge is a way to connect two separate network segments together in a protocol-independent way. Packets are forwarded based on Ethernet address, rather than IP address (like a router). Since forwarding is done at Layer 2, all protocols can go transparently through a bridge.

Lagi-lagi hal ini saya lakukan under CentOS 5.5 Final release dengan menggunakan intel Pentium 3 880Mhz RAM 256 HDD 10GB 2 buah lancard intel gigabyte. Paket aplikasi yang diinstall adalah bridge-utils, let’s do it:

# yum install bridge-utils
Setelah menyimpan semua konfigurasi diatas sebaiknya create dulu interface untuk bridging yang akan dinamai br0, dan kita assign eth0 dan eth1 ke bridge interface br0.
# brctl addbr br0
# brctl addif br0 eth0
# brctl addif br0 eth1
Buat konfigurasi bridge interface /etc/sysconfig/network-scripts/ifcfg-br0:
# vi  /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
IPADDR=10.173.65.5
GATEWAY=10.173.65.1
NETMASK=255.255.255.248
ONBOOT=yes
Kemudian ubah konfigurasi eth0 dan eth1
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=ETHER
BRIDGE=br0
ONBOOT=yes
# vi etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
TYPE=ETHER
BRIDGE=br0
ONBOOT=yes
Selanjutnya restart service network:
# /etc/init.d/network restart
Selanjutnya lihat konfigurasi IP address dengan ifconfig seharusnya muncul parameter bro sesuai dengan konfigurasi bridge interface diatas:
# ifconfig |more
br0       Link encap:Ethernet  HWaddr 00:22:9A:5C:0T:2D
inet addr:10.173.65.5  Bcast:10.173.65.7  Mask:255.255.255.248
inet6 addr: fe80::226:5aff:fe6c:e2c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:6035 errors:0 dropped:0 overruns:0 frame:0
TX packets:357 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:338318 (330.3 KiB)  TX bytes:46389 (45.3 KiB)
Hope this useful :)
Originally posted at http://pnyet.web.id