gps

Banner


ShoutMix chat widget

This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Istall DHCP Server di FreeBSD

1. Apa itu DHCP?
Dynamic Host Configuration Protocol (DHCP) adalah suatu protokol untuk mengotomatiskan tugas IP menunjuk ke suatu jaringan. Masing-Masing komputer yang dihubungkan ke suatu jaringan harus mempunyai suatu IP unik, dan tanpa DHCP TCP/IP informasi harus ditugaskan dengan cara manual pada masing-masing komputer.
2. Installing ISC DHCP
ISC DHCP Server adalah suatu implementasi gratis untuk DHCP protokol. Software tersebut dapat kita download di situs www.isc.org/products/DHCP.
Sebelum kita mulai installasi, pastikan bpf device sudah di-compile kedalam kernel. Jika kita sedang menggunakan kernel default (GENERIC), maka kita harus konfigur kedalam kernel secara default.
Langkah-langkahnya adalah :
Anda harus login sebagai root, download terlebih dahulu software untuk DHCPnya.
#wget http://ftp.isc.org/isc/dhcp/dhcp-3.0.4.tar.gz
Kemudian extract file tersebut dengan cara :
#tar -zxvf dhcp-3.0.4.tar.gz
Ok... selesai extract langkah selanjutnya adalah proses installasi.
# cd /usr/ports/net/isc-dhcp3-server
# make install clean
Satu langkah sudah selesai menginstall, kita pindah ke konfigurasi server. sebagai contoh konfigurasi pada file usr/local/etc/dhcpd.conf.sample anda dapat menyalin atau mengganti nama menjadi dhcpd.conf.
3. Konfigurasi
Kita dapat menggunakan editor teks favorit kita untuk mengedit dhcpd configuration file.
option domain-name "example.com";
# the domain-name option specifies the domain provided to clients as the default search domain.
option domain-name-servers dns1.example.com, dns2.example.com;

# the domain-name-servers provide clients with the DNS server.Replace this with your DNS server.
default-lease-time 86400;
max-lease-time 86400;

# The default lease expiry time in seconds
# This is the maximum length of time that the server will lease for.
authoritative;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
ddns-update-style none;
# Use this to send dhcp log messages to a different log file (you also have to hack syslog.conf to complete the redirection).log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.5 192.168.0.25;
option routers 192.168.0.1;
}
host pingpong {
hardware ethernet 00:00:00:00:00:00; [1]
fixed-address pingpong; [2]
default-lease-time 604800;
max-lease-time 604800;
}
# [1] You should change this to the hardware MAC address of the client
# [2] You should provide this with a valid hostname, and dhcp server will resolve the hostname before returning the lease to the client. I edited /etc/hosts and specify pingpong with my IP address.
4. Menjalankan DHCP pada starup
Edit file pada direktori /etc/rc.conf, isinya :
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_withumask="022"
dhcpd_chuser_enable="YES"
dhcpd_withuser="dhcpd"
dhcpd_withgroup="dhcpd"
dhcpd_ifaces=”rl1”

Start DHCP dengan perintah berikut :
# /usr/local/etc/rc.d/isc-dhcpd.sh start

Ok... sekarang installasi sudah selesai. Semoga bermanfaat buat kita semua.
Selamat mencoba.

Internet Connection Sharing di FreeBSD

I. Kompilasi Ulang kernel :
- #cd /usr/src/sys/i386/conf
kalo belum ada direktori diatas install dulu kernel sourcenya.
- #cp GENERIC mykernel --> terserah kmu mau pake nama apa saja ....disini saya make mykernel
- #ee mykernel
tambahkan options dibawah ini :

options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_FORWARD
options IPDIVERT
options HZ=1000
options DUMMYNET #---> untuk bandwidth shaper
- simpan
- #config mykernel
- #cd ../compile/mykernel
- #make depend
- #make
- #make install

Selesai kompilasi ulang kernel.

II. Bikin Internet Connection sharing :

- #ee /etc/rc.conf
- kira-kira seperti ini isinya ( gua make 2 buah NIC )

gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="rl0"
natd_flags=""
sshd_enable="YES"
sendmail_enable="YES"

ifconfig_rl0="inet aaa.bbb.ccc.ddd netmask 255.255.255.0" ==> IP Public
ifconfig_xl0="inet eee.fff.ggg.hhh netmask 255.255.255.0" ==> IP Local
defaultrouter="mmm.nnn.ooo.ppp" ==> IP gateway dari ISP
hostname="terserah"

- simpan.

OK sesudah disimpan ....
Kita REBOOOT ...............??????
Kalau jalan berarti bagus dan Apabila gak jalan munkin ada kesalahan,dan lebih diteliti lagi mungkin ada yang salah didalam konfigurasi nya. Maaf yaa...