B – B = 0

perjalananku dalam mengenal hidup

Install OpenBSD

udah lama gak ngoprek akhirnya kesampain juga ngoprek berkat vmWare. kemarin coba coba install lagi openBSD. mungkin ada baiknya juga kalo di tulis di sini deh langkah-langkah yang gue liat dari site nya openBSD sendiri.setelah booting via cd maka akan tampil pertanyaan :

 rootdev=0×1100 rrootdev=0×2f00 rawdev=0×2f02

erase ^?, werase ^W, kill ^U, intr ^C, status ^T

(I)nstall, (U)pgrade or (S)hell? i

pilihan “I” di gunakan untuk install openBSD ke system kemudian pilihan “U” untuk Upgrade system nya tanpa merubah konfigurasi terdahulu, dan kemudian pilihan “S” untuk masuk kedalam shell nya, biasanya di gunakan untuk maintenance dll.

Setelah itu akan tampil :

  Welcome to the OpenBSD/i386 3.8 install program.
This program will help you install OpenBSD in a simple and rational way. At

any prompt except password prompts you can run a shell command by typing

‘!foo’, or escape to a shell by typing ‘!’. Default answers are shown in []’s

and are selected by pressing RETURN. At any time you can exit this program by

pressing Control-C and then RETURN, but quitting during an install can leave

your system in an inconsistent state.


Specify terminal type: [vt220] Enter kbd(8) mapping? (’?’ for list) [none] Enter

kita coba instal menggunakan standar instalasi untuk pilihan terminal dan keyboard mapping-nya jadi ya tinggal tekan enter aja.

 IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this

program can cause SIGNIFICANT data loss.
It is often helpful to have the installation notes handy. For complex disk

configurations, relevant disk hardware manuals and a calculator are useful.


Proceed with install? [no] y

karena kita sudah menyiapkan segalanya dan kondisi persiapan untuk instalasi sudah siap maka kita tinggal tekan “y” untuk melanjutkan proses instalasi

  Cool!  Let’s get to it…
You will now initialize the disk(s) that OpenBSD will use. To enable all

available security features you should configure the disk(s) to allow the

creation of separate filesystems for /, /tmp, /var, /usr, and /home.


Available disks are: wd0.

Which one is the root disk? (or done) [wd0] Enter

Kemudian kita masuk ke bagian tersulit dari proses instalasi ini, yaitu pembagian partisi harddrive yang akan kita gunakan. harddrive yang kebetulan di kenal adalah wd0 maka kita tinggal tekan enter untuk melanjutkan proses instalasi tersebut

  Do you want to use *all* of wd0 for OpenBSD? [no] yes

berhubung saya akan menggunakan semua partisi untuk di gunakan dengan system openBSD maka saya pilih “yes” dalam pemilihan tersebut.

  > p m

device: /dev/rwd0c

type: ESDI

disk: ESDI/IDE disk

label: ST320011A

bytes/sector: 512

sectors/track: 63

tracks/cylinder: 16

sectors/cylinder: 1008

cylinders: 16383

total sectors: 39102336

free sectors: 36030960

rpm: 3600
16 partitions:

#             size        offset  fstype [fsize bsize  cpg]

a:      17593.2M       1498.7M  unused      0     0

c:      19092.9M          0.0M  unused      0     0

i:       1498.7M          0.0M  MSDOS

> d a

> a a

offset: [3069360] Enter

size: [36030960] 150m

Rounding to nearest cylinder: 307440

FS type: [4.2BSD] Enter

mount point: [none] /

> a b

offset: [3376800] Enter

size: [35723520] 300m

Rounding to nearest cylinder: 614880

FS type: [swap] Enter

> a d

offset: [3991680] Enter

size: [35108640] 120m

Rounding to nearest cylinder: 245952

FS type: [4.2BSD] Enter

mount point: [none] /tmp

> a e

offset: [4237632] Enter

size: [34862688] 80m

Rounding to nearest cylinder: 164304

FS type: [4.2BSD] Enter

mount point: [none] /var

> a g

offset: [4401936] Enter

size: [34698384] 3g

Rounding to nearest cylinder: 6291936

FS type: [4.2BSD] Enter

mount point: [none] /usr

> a h

offset: [10693872] Enter size: [28406448] 4g

Rounding to nearest cylinder: 8388576

FS type: [4.2BSD] Enter

mount point: [none] /home

> p m

device: /dev/rwd0c

type: ESDI

disk: ESDI/IDE disk

label: ST320011A

bytes/sector: 512

sectors/track: 63

tracks/cylinder: 16

sectors/cylinder: 1008

cylinders: 16383

total sectors: 39102336

free sectors: 22115520

rpm: 3600


16 partitions:

#             size        offset  fstype [fsize bsize  cpg]

a:        150.1M       1498.7M  4.2BSD   2048 16384   16 # /

b:        300.2M       1648.8M    swap

c:      19092.9M          0.0M  unused      0     0

d:        120.1M       1949.1M  4.2BSD   2048 16384   16 # /tmp

e:         80.2M       2069.2M  4.2BSD   2048 16384   16 # /var

g:       2048.0M       2149.4M  4.2BSD   2048 16384   16 # /usr

h:       4096.0M       4197.4M  4.2BSD   2048 16384   16 # /home

i:       1498.7M          0.0M   MSDOS

> q

Write new label?: [y] Enter

lanjut ke dalam penentuan partisi, yang saya pakai standar isntalasi sesuai dengan yang ada di site openBSD

  Mount point for wd0d (size=122976k)? (or ‘none’ or ‘done’) [/tmp] Enter 
  Mount point for wd0e (size=82152k)? (or ‘none’ or ‘done’) [/var] Enter 
  Mount point for wd0g (size=3145968k)? (or ‘none’ or ‘done’) [/usr] Enter 
  Mount point for wd0h (size=4194288k)? (or ‘none’ or ‘done’) [/home] Enter 
  Mount point for wd0d (size=122976k)? (or ‘none’ or ‘done’) [/tmp] done

No more disks to initialize.
OpenBSD filesystems:

wd0a /

wd0d /tmp

wd0e /var

wd0g /usr

wd0h /home


The next step *DESTROYS* all existing data on these partitions!

Are you really sure that you’re ready to proceed? [no] y

/dev/rwd0a:     307440 sectors in 305 cylinders of 16 tracks, 63 sectors 
                     150.1MB in 1 cyl groups (306 c/g, 150.61MB/g, 19328 i/g)

/dev/rwd0d:     245952 sectors in 244 cylinders of 16 tracks, 63 sectors 
                   120.1MB in 1 cyl groups (244 c/g, 120.09MB/g, 15360 i/g)

/dev/rwd0e:     164304 sectors in 163 cylinders of 16 tracks, 63 sectors 
                     80.2MB in 1 cyl groups (164 c/g, 80.72MB/g, 10368 i/g)

/dev/rwd0g:     6291936 sectors in 6242 cylinders of 16 tracks, 63 sectors 
                     3072.2MB in 20 cyl groups (328 c/g, 161.44MB/g, 20608 i/g)

/dev/rwd0h:     8388576 sectors in 8322 cylinders of 16 tracks, 63 sectors 
                    4096.0MB in 26 cyl groups (328 c/g, 161.44MB/g, 20608 i/g)

/dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Thu Oct 20 00:03:14 20
  05)

/dev/wd0h on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid, ctime=T
  hu Oct 20 00:03:14 2005)

/dev/wd0d on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Th
  u Oct 20 00:03:15 2005)

/dev/wd0g on /mnt/usr type ffs (rw, asynchronous, local, nodev, ctime=Thu Oct 20 
  00:03:15 2005)

/dev/wd0e on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Th
  u Oct 20 00:03:15 2005)

dan lanjut ke proses format atau menentukan mount point yang akan di gunakan setelah pengalokasian partisi tersebut. Setelah proses tersebut selesai maka akan berlanjut ke penentuan hostname yang akan digunakan oleh komputer tersebut.

  Enter system hostname (short form, e.g. ‘foo’): idonBSD

lalu berlanjut ke seting up network yang akan di gunakan, seperti tampilan di bawah ini :

Configure the network? [yes] Enter 
  Available interfaces are: fxp0. 
  Which one do you wish to initialize? (or ‘done’) [fxp0] Enter 
  Symbolic (host) name for fxp0? [idonBSD] Enter 
  The default media for fxp0 is 
               media: Ethernet autoselect (100baseTX full-duplex) 
  Do you want to change the default media? [no] Enter 
  IP address for fxp0? (or ‘dhcp’) 192.168.0.251 
  Netmask? [255.255.255.0] Enter 
  IPv6 address for fxp0? (or ‘rtsol’ or ‘none’) [none] 
  No more interfaces to initialize. 
  DNS domain name? (e.g. ‘bar.com’) [my.domain] idonBSD.com 
  DNS nameserver? (IP address or ‘none’) [none] 202.134.0.155 
  Use the nameserver now? [yes] Enter 
  Default route? (IP address, ‘dhcp’ or ‘none’) 192.168.0.101 
  add net default: gateway 192.168.0.101 Edit hosts with ed? [no] Enter 
  Do you want to do any manual network configuration? [no] Enter

dan berlanjut ke proses menge-set password root di komputer tersebut.

Password for root account? (will not echo) pAssWOrd 
 Password for root account? (again) pAssWOrd

berlanjut ke pemilihan media instalasi, berhubung kita memiliki CD openBSD maka kita akan melanjutkan proses instalasi tersebut dengan pilihan media instalasinya adalah cdrom

  Let’s install the sets!

Location of sets? (cd disk ftp http or ‘done’) [cd] Enter Available CD-ROMs are: cd0.
  Available CD-ROMs are: cd0.

Which one contains the install media? (or ‘done’) [cd0] Enter 
   Pathname to the sets?  (or ‘done’) [3.8/i386] Enter

dan berlanjut ke pemilihan file-set yang akan di install kedalam system tersebut, di dalam proses ini saya akan install semua file-set yang tersedia.

  The following sets are available. Enter a filename, ‘all’ to select

all the sets, or ‘done’. You may de-select a set by prepending a ‘-’

to its name.
[X] bsd

[X] bsd.rd

[ ] bsd.mp

[X] base38.tgz

[X] etc38.tgz

[X] misc38.tgz

[X] comp38.tgz

[X] man38.tgz

[X] game38.tgz

[ ] xbase38.tgz

[ ] xetc38.tgz

[ ] xshare38.tgz

[ ] xfont38.tgz

[ ] xserv38.tgz


File Name? (or ‘done’) [bsd.mp] all


The following sets are available. Enter a filename, ‘all’ to select

all the sets, or ‘done’. You may de-select a set by prepending a ‘-’

to its name.


[X] bsd

[X] bsd.rd

[X] bsd.mp

[X] base38.tgz

[X] etc38.tgz

[X] misc38.tgz

[X] comp38.tgz

[X] man38.tgz

[X] game38.tgz

[X] xbase38.tgz

[X] xetc38.tgz

[X] xshare38.tgz

[X] xfont38.tgz

[X] xserv38.tgz

dan setelah itu akan tampil proses instalasi seperti di bawah ini.

  File Name? (or ‘done’) [done] Enter 
  Ready to install sets? [yes] Enter 
  Getting bsd … 
  100% |**************************************************|  5157 KB    00:08 
  Getting bsd.rd … 
  100% |**************************************************|  4549 KB    00:02 
  Getting bsd.mp … 
  100% |**************************************************|  5202 KB    00:03 
  Getting base38.tgz … 
  100% |**************************************************| 35928 KB    00:25 
  Getting etc38.tgz … 
  100% |**************************************************|  1123 KB    00:01 
  Getting misc38.tgz … 
  100% |**************************************************|  2222 KB    00:01 
  Getting comp38.tgz … 
  100% |**************************************************| 20522 KB    00:17 
  Getting man38.tgz … 
  100% |**************************************************|  7234 KB    00:05 
  Getting game38.tgz … 
  100% |**************************************************|  2538 KB    00:01 
  Getting xbase38.tgz … 
  100% |**************************************************| 10225 KB    00:07 
  Getting xetc38.tgz … 
  100% |**************************************************| 93384       00:00 
  Getting xshare38.tgz … 
  100% |**************************************************|  1986 KB    00:02 
  Getting xfont38.tgz … 
  100% |**************************************************| 32438 KB    00:23 
  Getting xserv38.tgz … 
  100% |**************************************************| 18172 KB    00:14 
  Location of sets? (cd disk ftp http or ‘done’) [done] Enter

kemudian lanjut ke proses finishing dari instalasi tersebut :

  Start sshd(8) by default? [yes] y
  Start ntpd(8) by default? [no] y
  Do you expect to run the X Window System? [yes] y
  Change the default console to com0? [no] Enter
    Saving configuration files……done.

Generating initial host.random file ……done.

What timezone are you in? (’?’ for list) [Canada/Mountain] ?

Africa/      Chile/       GB-Eire      Israel       NZ-CHAT      Turkey

America/     Cuba         GMT          Jamaica      Navajo       UCT

Antarctica/  EET          GMT+0        Japan        PRC          US/

Arctic/      EST          GMT-0        Kwajalein    PST8PDT      UTC

Asia/        EST5EDT      GMT0         Libya        Pacific/     Universal

Atlantic/    Egypt        Greenwich    MET          Poland       W-SU

Australia/   Eire         HST          MST          Portugal     WET

Brazil/      Etc/         Hongkong     MST7MDT      ROC          Zulu

CET          Europe/      Iceland      Mexico/      ROK          posix/

CST6CDT      Factory      Indian/      Mideast/     Singapore    posixrules

Canada/      GB           Iran         NZ           SystemV/     right/

What timezone are you in? (’?’ for list) [Canada/Mountain] Asia/Jakarta 
  Setting local timezone to ‘Asia/Jakarta’…done.
  Making all device nodes…done.

Installing boot block…

boot: /mnt/boot

proto: /usr/mdec/biosboot

device: /dev/rwd0c

/usr/mdec/biosboot: entry point 0

proto bootblock size 512

/mnt/boot is 3 blocks x 16384 bytes

fs block shift 2; part offset 3069360; inode block 152, offset 4136

using MBR partition 1: type 166 (0xa6) offset 3069360 (0×2ed5b0)

done.
CONGRATULATIONS! Your OpenBSD install has been successfully completed!

To boot the new system, enter halt at the command prompt. Once the

system has halted, reset the machine and boot from the disk.

# halt

syncing disks… done


The operating system has halted.

Please press any key to reboot. 

selesai sudah standar instalasi untuk openBSD.

Februari 26, 2008 Ditulis oleh onotrah | OpenBSD | | No Comments Yet

Ports dalam OpenBSD

Download Packages Ports
#ftp ftp://ftp.openbsd.org/pub/OpenBSD/3.9/ports.tar.gz
#mv ports.tar.gz /usr
#cd /usr
#tar -xzf ports.tar.gz

beberapa cmd yg gue ketahui :

  • make search key=keyword : untuk mencari paket
  • make fetch : download paket tarball yang ingin install
  • make extract : download paket tarball (kalau belum ada)
  • make build / make : download tarball, ngextract, dan ngekompilenya dengan konfigurasi default
  • make install : download tarball, ngextract, ngekompile & nge-install pada sistem
  • make install clean : sama seperti ‘make install’ tapi ditambahin ‘clean’ untuk menghapus direktori work untuk menghemat space hdd.

ah segitu dulu ah..
dah malem mo pulang.. dahhhh

Februari 26, 2008 Ditulis oleh onotrah | OpenBSD | | No Comments Yet

Comple OpenBSD

# mkdir /mnt/cdrom; mount -t cd9660 /dev/cd0a /mnt/cdrom
# cp /mnt/cdrom/3.9/sys.tar.gz /usr/src
# tar zxvf sys.tar.gz
# cd /usr/src/sys/arch/i386/conf
# cp GENERIC BLUEBOX
# pico BLUEBOX /*edit sesuai kebutuhan */
# config BLUEBOX
# cd ../compile/BLUEBOX
# make depend && make
# make install
# reboot */restart deh*/

Februari 26, 2008 Ditulis oleh onotrah | OpenBSD | | No Comments Yet

OpenBSD SBG server proxy

proxy server di openBSD

By Idur_onotrah

Sebenere aku belajar ini karena tuntutan biar bisa buat proxy dengan openBSD dan tau cara cara
konfigurasinya :-)
paket yang akan kita gunakan disini ada squid-2.6.STABLE9.tgz dan ports.tar.gz
jangan lupa make.conf nya kita set dulu
vi /etc/make.conf
klu saya pribadi make.conf nya biasa nya seperti ini

COPTFLAGS= -02 -pipe -funroll-loops -ffast-math
BOOTWAIT=0
PERL_VER=5.8.8
PERL_VERSION=5.8.8

MASTER_SITE_OVERRIDE=http://10.14.15.5/mirror/openbsd/4.1/packages/i386/
#MASTER_SITE_OVERRIDE=http://10.14.3.5/mirror/freebsd/distfiles/
#MASTER_SITE_OVERRIDE=http://ftp.id.freebsd.org/ports/distfiles/
#MASTER_SITE_OVERRIDE=http://mirror.inter.net.il/pub/FreeBSD/ports/distfiles/

dalam open bsd ada fasilitas instal dari souce kodenya dengan perintah PKG_add
kemudian tujukan pada web atawa ftp:// xxxx yang ada souce kodenya openBSD:

*dengan pkg_add
terlebih dahulu kita harus login sebagai root dulu

untuk menginstal tinggal ketik
pkg_add http://10.14.15.5/mirror/openbsd/4.1/packages/i386/squid-2.6.STABLE9.tgz

sistem akan mengginstall secara otomatis dengan kondisi default
folder squid nya akan ada di /var/squid

folder conf nya ada di /etc/squid

*dengan bantuan ports
siap kan paket ports.tar.gz
sama denga yg diatas kita harus loggin sebagai root terlebih dahulu
masuk ke direktory tempat kita menyimpan ports.tar.gz tadi lalu pindahkan
ke direktory /usr/ dengan mengetik mv ports.tar.gz /usr/
extract ports dengan mengetik tar -xzvf ports.tar.gz
masuk ke direktory /usr/ports dengan mengetik cd /usr/ports
biasa nya squid terletak /usr/ports/www/squid/
masuk ke direktory di atas
ketik
#make configure
#make install clean

folder squid akan ada di /usr/local/squid/ untuk conf nya akan ada di /usr/local/etc/squid/squid.conf

contoh config squid

# cat /etc/squid/squid.conf
http_port 10.14.15.22:5555
icp_port 0
#———————-
cache_mem 6 MB
cache_swap_low 80%
cache_swap_high 100%
#——————————
cache_dir ufs /var/squid 13000 128 128
cache_replacement_policy LFUDA
cache_store_log none
negative_ttl 2 minutes
half_closed_clients off
#visible_hostname_clients off
#visible_hostname smartbeauty.stttelkom.ac.id
#—————————–
maximum_object_size 16384 KB
minimum_object_size 0KB
maximum_object_size_in_memory 8 KB
#———————
acl CONNECT method CONNECT
acl coba dst 10.14.200.231
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
#————————————

#—————————-
acl safe_port port 21 80 443 1025-65535
#—————————————
http_access allow coba
http_access allow all
http_reply_access allow all
http_access allow CONNECT
http_access allow localhost
http_access deny !safe_port
#——————————————–

#——————————————-
cache_mgr smartbeauty@students.stttelkom.ac.id

kita bisa lihat klu proxy diatas menggunakan IP 10.14.15.22 port 5555
kita tinggal ganti setingan di browser atau di mirc kita
proxy diatas juga tidak menggunakan username dan password
config diatas maseh belum mempunyai filter kata2
kita bisa saja menambahkan nya

maaf klu bahasa gw kurang bisa di mengerti

Februari 26, 2008 Ditulis oleh onotrah | OpenBSD | | No Comments Yet

Radio Streaming

Beberapa minggu lalu ada temen nanya tentang radio Stream ya aku jawab gak tau dehhh :)
Lalau untuk menambah pengetahuan nanya2  + googling al-hasil dapat pencerahan:
Sistem radio Streaming dapat dilakuka dengan beberapa cara yaitu:

1. Dengan model Streaming geatway sistem kalo ini aku juga belum mudeng mat :(

2. Dengan metode

Januari 3, 2008 Ditulis oleh onotrah | Projek Baru | | No Comments Yet

Install Apache on freeBSD

1. langkah pertama download file apache, disini saya menggunakan file apache httpd-2.2.4.tar.gz
2. login ke freeBSD dengan root
3. masukkan file httpd-2.2.4.tar.gz ke /usr/src
# cp httpd-2.2.4.tar.gz /usr/src
3. kemudian masuk ke derektori /usr/src
# cd /usr/src
4. ekstrak file httpd-2.2.4.tar.gz dengan perintah
# tar -zxvf httpd-2.2.4.tar.gz
5. kemudian masuk pada derektori hasil ekstrak
# cd httpd-2.2.4
6 kemudian lakukan perintah konfigurasi
# ./configure –prefix=/usr/local/apache2/
7. setelah konfigurasi kurang lebih 15 menit dan gak ada eror jalan kan perintah
# make
8. setelah itu perintah
# make install
9. peroses make install selesai masuk pada derektori /usr/local/apache2/bin
# cd /usr/local/apache2/bin
10. kemudian jalakan daemon dari apache denagn perintah
# ./apachectl start
11. untuk mencoba keberhasilan instalasi lihat pada broser ketikkan localhost / pada kompi yang terjaring
dengan memanggil ip kompi freeBSD kita
12. kaloo ada tertampil pada broser maka kita telah berhasil melakukan instalasi apache

Desember 27, 2007 Ditulis oleh onotrah | FreeBSD | | No Comments Yet

Mengkomfigurasi Mikrotik sebagai proxy

minggu ini ini aku bingung untuk menyelesaikan masalah ku, kan gini aku pengen ngeblok web tertentu yang amoral + nyedot BW banyak. yang jadi masalah router ku and server proxy gak jadi satu alias dua pc gituuu!

pengen saya setiap clien langsung otomatis ngelot server proxy saya ???

PERSOALAN ITU DAH ADA JALAN KELUAR :)

ketika brosing ama mbah google ketemu deh caranya yaitu:

#NAT IP#
chain=srcnat out-interface=ether1 src-address=192.168.7.0/24 out-interface=ether1 action=src-nat to-addresses=[ip public/WAN] —– kalo ni dari user yang mau konek ke wan
chain=srcnat out-interface=ether1 src-address=10.10.1.0/30 out-interface=ether1 action=src-nat to-addresses=[ip public/WAN] —- kalo ni maksutnya apa kagak tau aku

#NAT proxy#
chain=dstnat src-address=192.168.7.0/24 protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.7.252 to-ports=8080 —— ni berarti untuk setiap koneksi dari ip 192.168.7.0/24 yang memakai pot 80 di tujukan terlebih dahulu ke pot 8080 proxy server dengan ip 192.168.7.252

Desember 19, 2007 Ditulis oleh onotrah | Mikrotik | | No Comments Yet

Compile file kernel BSD

kompile merupakan suatu cara untuk mengoptimalkan OS BSD terhadap hadware yang kita miliki
sehingga kenerja hadwer dan sofware dapat bekerja dengan optimal.

PROSES PENGKOMPILANYA YAITU :-)

1. login sebagai root pada OS bsd Anda
2. kemudian masuk pada pada derektori /conf dng printah
#cd /usr/src/sys/i386/conf
#ls perintah ini digunaka untuk melihat isi dari deroktori conf
.cvsignore GENERIC.hints NOTES SMP
DEFAULTS MYKERNEL PAE XBOX
GENERIC Makefile ROUTER
#cp GENERIC MYKERNEL
perintah ini digunaka untuk mengkopi file GENERIC dan disimpan dengan nama MYKERNEL
MYKERNEL dapat diberi nama sesuka kita.
3. ketikkan perintah
#vi MYKERNEL

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09 18:41:36 simon Exp $

machine i386
cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident GENERIC

# To statically compile in device wiring instead of /boot/device.hints
#hints “GENERIC.hints” # Default places to look for devices.

makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols

options SCHED_4BSD # 4BSD scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT # Network Filesystem Client
options NFSSERVER # Network Filesystem Server
options NFS_ROOT # NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options ADAPTIVE_GIANT # Giant mutex is adaptive.

edit driver 2 yang gak penting dan gak guna seperti hd scsi adn yang lain lainnn oke

4. untuk melihat hadware yang kita guankan saat ini ketikkan perintah:
#vi /var/run/dmesg.boot /var/run/dmesg.boot

Copyright (c) 1992-2006 The FreeBSD Project.

opyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RC2 #0: Mon Dec 17 20:08:36 CET 2007
root@idur.com:/usr/src/sys/i386/compile/MYKERNEL
Timecounter “i8254″ frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.50GHz (928.31-MHz 686-class CPU)
Origin = “GenuineIntel” Id = 0xf12 Stepping = 2
Features=0×780a17b<FPU,VME,PSE,TSC,MSR,PAE,CX8,PGE,CMOV,MMX,FXSR,SSE,SSE2>
real memory = 111149056 (106 MB)
avail memory = 99172352 (94 MB)
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0×1f0-0×1f7,0×3f6,0×170-0×177,0×376,0xffa0-0xffaf at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <old, non-VGA display device> at device 7.2 (no driver attached)
pci0: <bridge> at device 7.3 (no driver attached)
pci0: <display, VGA> at device 8.0 (no driver attached)
de0: <Digital 21140A Fast Ethernet> port 0xec00-0xec7f mem 0xfebff000-0xfebfffff irq 11 at device 10.0 on pci0
de0: 21140A [10-100Mb/s] pass 2.0
de0: Ethernet address: 00:03:ff:81:4e:f0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc9fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0×60,0×64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0

Desember 19, 2007 Ditulis oleh onotrah | FreeBSD | | No Comments Yet

SERVER PROXY REDHAT

squid proxy rathad –idur–

Cek dahulu apakah squid dah ter instal blum:
# rpm -qa | grep squid

ketikadah muncul sequid… dengan versi berapa maka squid telah terinstall.

jika belum maka perlu dilakukan instalasi terlebih dahului:

ketika squid telh teristall maka kita teinggal melakukan sentuhan sedikit aja:

1. Konfigurasi Squid
membuat derektori squid sejajar dengan derektori root
# pwd
# /root
# cd /
# mkdir /cache
# chown squid.squid /cache -Rf
chown disini digunakan untuk mengganti akses
kalo sudahn sekarang tinggal kita konfigurasi  squid.conf

#cd /etc/squid
#ls -l
errors   mime.conf          msntauth.conf          notsex  squid.conf          squid.conf.save
mib.txt  mime.conf.default  msntauth.conf.default  sex     squid.conf.default  squid.save

kita telah masuk dalam derektori squid dan kita telah melihat isinya
sebelum melakukan konfigurasi squid.conf alangkah baiknya file squid.conf di bekup dahulu.
# touch squid.conf
# chmod 640 squid.conf
# vi /etc/squid/squid.conf
# :wq squid.conf.safe

sekarang inggal mengedit file squid.conf

# vi squid.conf

konfigurasi squid.conf yang paling umum digunakan adalah

http_port 8080
icp_port 0
cache_mem 80 MB
maximum_object_size 256 KB
cache_dir ufs /cache 200 16 256
memory_pools_limit 32 MB
redirect_rewrites_host_header off
replacement_policy GDSF
half_closed_clients off
#———–transparent proxy ———–
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#——————————————-
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl lan src 192.168.7.252/255.255.255.0
acl Safe_ports port 80 443 210 119 563 70 21 1025-65535
acl CONNECT method CONNECT
acl notsex url_regex -i “/etc/squid/notsex”
acl sex url_regex -i “/etc/squid/sex”
no_cache deny SEX
http_access allow notsex all
http_access deny sex all
http_access allow lan
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
#—————- administration info ————
cache_mgr alfinux@telkom.net
cache_effective_user squid
cache_effective_group squid
log_icp_queries off
cachemgr_passwd mypassword all
forwarded_for off
buffered_logs on
visible_hostname alfinuke.edcentral.pdk
ftp_user squid@edcentral.pdk

proxy yang natinta digunakan adalah ip kompi server denagn pot 8080

2. untuk konfigurasi web yang difilter atau pun tidak dapat di konfigurasi:

#pwd
/etc/squid
#vi sex
disini kita tingggal memasukkan nama web yang akan di fileter oleh proxy
jangan lupa menyimpan editanya.
#:wq

3. untuk memperbolehkan situs yang masuk kita tinggal mengedit filr di /ec/squid/notsex

#vi /etc/squid/notsex
tinggal memasukkan nama web yang akan masukkk oeh proxy
jangn lupa menyimpan hasil editan ya.

3. menjalankan squid
# squid -z
#/ec/init.d/squid start
#iptabels -f

Desember 19, 2007 Ditulis oleh onotrah | Redhat | | No Comments Yet

Login root pada freeBSD dengan SSH

ketika aku kenal freeBSD, aku kebingungn masalah ssh dengan root. ternya untuk dapat mengakses freeBSD dengan ssh login root maka kita harus mengedit fili sshd_config langkah2 nya yaitu:

1. login freeBSD dengan root

#cd /etc/ssh

#vi sshd_config akan muncul tampilan

Port 22 ini kita enable dengan menghilangkan tanda #

#Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes pada ini juga kita anable dan tulisan no kita ganti yes

#StrictModes yes
#MaxAuthTries 6
2. kita tingggal restart sshd denga perintah

# /etc/rc.d/sshd restart

3. coba ssh denagn kompi lain pasti bisa dehh

Desember 18, 2007 Ditulis oleh onotrah | FreeBSD | | No Comments Yet