{ Berbagi, Menulis, Dan Mengajar } Ilmu… » Free-BSD
Squid Inspiration
Artikel ini sengaja saya kopikan langsung dari sumber aslinya dan tidak saya rubah sedikit pun, karena dari artikel ini saya terinspirasi dengan Linux dan mengenal pertama kali dengan FreeBSD plus beberapa Feature Tunning yang dimiliki freeBSD. Terima Kasih buat yang telah menulis artikel ini. Andi Salimun <asalimun@andix.info>IntroductionThis article will explain how to configure Squid and tweak a FreeBSD box for web caching and conserving bandwidth. Usually, Squid will reduce the traffic 30% or more from normal usage (without squid), and enhance response time. This configuration and setting has been tested and the Squid FreeBSD boxes are running at several colleges in Sydney, Australia. Each Squid FreeBSD box serves about 100+ nodes. RequirementsSquid needs a lot of memory. More is better but 128 MB of memory is good to start … Read entire article »
Filed under: File Config, Free-BSD
Blocking Alamat Email di Qmail
Untuk melakukan blocking alamat email di Server Qmail caranya cukup mudah —- Bisa Dilakukan dengan mengedit file –> /var/qmail/control/badmailfrom *.Kalo ingin nge-block dari sebuah alamat domain, lakukan cara sebagai berikut echo ‘@domain.com’ >> /var/qmail/control/badmailfrom .:GoodLuck:. … Read entire article »
installing Qmail on FreeBSD in 5 Minutes
FreeBSD Qmail Server… asalamualaikum wr wb This is a quick installation of Qmail on FreeBSD Operating System … ———————— Do like this, follow the step by step, less than 5 minutes we can build a mail server…. Good Luck …!!! wasalam wr wb ————————— # cd /usr/ports/mail/qmail # make enable-qmail WITH_QMAILQUEUE_PATCH=yes WITH_BIG_TODO_PATCH=yes # make clean # cd /usr/ports/sysutils/ucspi-tcp # make all install clean # cd /usr/ports/security/checkpassword # make all install clean # echo “OPTIONAL_MANPATH /var/qmail/man” >> /etc/manpath.config # makewhatis # echo “127.0.0.1:allow,RELAYCLIENT=\”\”” > /etc/tcp.smtp # echo “192.168.0.:allow,RELAYCLIENT=\”\”” >> /etc/tcp.smtp # echo :allow >> /etc/tcp.smtp # /usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp EDIT dot.cshrc Find the following line in dot.cshrc: set mail = (/var/mail/$USER) and modify the file as follows: #set mail = (/var/mail/$USER) setenv MAIL ~/Mailbox setenv MAILDIR ~/Maildir setenv MAILTMP ~/Maildir/tmp/tmpfile alias mail '/var/qmail/bin/maildir2mbox;/var/qmail/bin/qail' alias pine '/var/qmail/bin/maildir2mbox;/var/qmail/bin/pinq' alias elm '/var/qmail/bin/maildir2mbox;/var/qmail/bin/elq' EDIT dot.shrc Append the following lines to the end of dot.shrc MAIL=~/Mailbox MAILDIR=~/Maildir MAILTMP=~/Maildir/tmp/tmpfile export MAIL MAILDIR MAILTMP alias mail='/var/qmail/bin/maildir2mbox;/var/qmail/bin/qail' alias pine='/var/qmail/bin/maildir2mbox;/var/qmail/bin/pinq' alias elm='/var/qmail/bin/maildir2mbox;/var/qmail/bin/elq' EDIT dot.qmail Create the file dot.qmail and add this … Read entire article »
Filed under: Free-BSD
Config Error (BSD)
Dear All … Mesin Saya FreeBSD-Stable … Hari ini saya mo compile ulang Kernel mesin tsb,tapi yang saya temui conflict / error spt dibawah : Biar Bisa Compile kernel lagi gimana ya ?? kasih solusi donk … thx ——— Problem :: #config FIREWALL ERROR: version of config(8) does not match kernel! config version = 500013, version required = 600002 Make sure that /usr/src/usr.sbin/config is in sync with your /usr/src/sys and install a new config binary before trying this again. If running the new config fails check your config file against the GENERIC or LINT config files for changes in config syntax, or option/device naming conventions Solution :: # cd /usr/src/usr.sbin/config # make depend all install clean silakan rebuild kernel -dh- .:GoodLuck:. … Read entire article »
Filed under: Free-BSD
Qmail error … /usr/ports (BSD)
Problem ?? :: dear all… saya punya mesin BSD-STABLE … Udah Lama Sekali njalanin Qmail … beberapa Hari yang lalu Qmail-nya saya uninstall …. kemudian saya coba menginstall ulang Qmail nya … namun yang keluar malah error seperti ini …. ————— root@CS007# make reinstall ===> qmail-1.03_4 is marked as broken: OUTGOINGIP and QMTPC conflicts! Please, make your choice. ——————- Kira Kira kenapa neh ??? thx Solutions :: Hi Dimas, cd /usr/ports/mail/qmail && make config Pilih OUTGOINGIP *atau* QMTPC (sesuai kebutuhan), di sisi saya, hanya patch QMAILQUEUE saja. Regards Bd .:GoodLuck:. … Read entire article »
Filed under: Free-BSD
FreeBSD Reprository for Port-Tree
Ini Cerita ttg FreeBSD –> Create /etc/make.conf # Tambahkan Script ini u/ Porting file,lihat koneksinya (INDON or LUAR INDON) #MASTER_SITE_BACKUP?= \ # ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ #MASTER_SITE_BACKUP} #Indonesia (Thx to CBN) #MASTER_SITE_BACKUP?= \ # ftp://freebsd.cbn.net.id/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ #MASTER_SITE_BACKUP} #Luar Negeri (Thx to MIT) #MASTER_SITE_BACKUP?= \ # http://cvsup3.freebsd.org/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ #MASTER_SITE_BACKUP} .:GoodLuck:. … Read entire article »
Filed under: Free-BSD
RC.CONF FreeBSD for VLAN
# This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=”10.252.1.1″ gateway_enable=”YES” named_enable=”YES” squid_enable=”YES” sendmail_enable=”NONE” sendmail_enable=”NO” apache22_enable=”YES” sendmail_submit_enable=”NO” sendmail_outbound_enable=”NO” sendmail_msp_queue_enable=”NO” clear_tmp_enable=”YES” #if_vlan_load=”YES” –> ada di /boot/loader.conf saver=”logo” scrnmap=”NO” hostname=”firewall.ptpn-11.com” ifconfig_bge0=”inet 192.168.0.254 netmask 255.255.255.0″ ifconfig_xl0=”inet 10.252.1.3 netmask 255.255.0.0″ #ifconfig_rl0=”inet 192.168.10.111 netmask 255.255.255.0″ keymap=”us.iso” linux_enable=”YES” sshd_enable=”YES” usbd_enable=”NO” pf_enable=”YES” # Enable PF (load module if required) pf_rules=”/etc/pf.conf” # rules definition file for pf pf_flags=”” # additional flags for pfctl startup pflog_enable=”YES” # start pflogd(8) pflog_logfile=”/var/log/pflog” # where pflogd should store the logfile pflog_flags=”” … Read entire article »
Filed under: Free-BSD
Options Configuration Kernel FreeBSD
Bikin Kernel “FreeBSD” Tambah Garang #Tuning For Squid options MSGMNB=16384 # max # of bytes in a queue options MSGMNI=41 # number of message queue identifiers options MSGSEG=2049 # number of message segments per queue options MSGSSZ=64 # size of a message segment options MSGTQL=512 # max messages in system options SHMSEG=16 options SHMMNI=32 options … Read entire article »
Filed under: Free-BSD
boot -s on FreeBSD
Problem ::?? saya mo tanya ya … hari ini saya ada masalah di mesin BSD, kmudian saya login ke mesin BSD dengan Single User … Akses Root udah saya dapatkan, cuman masalahnya saya ga bisa melakukan perubahan di file rc.conf, system bilang file tsb Read-Only … So .. Gimana ya biar saya bisa ngedit File tsb, pake Single User ..?? Thx… ———————— Solutions :: ;)) #mount -uw #mount -at ufs #vi /etc/rc.conf ———————— .:GoodLuck:. … Read entire article »
Filed under: Free-BSD
protect direktori web menggunakan htpasswd
Berikut ini adalah cara untuk memprotect direktori Web apache menggunakan Htpasswd tidak terlalu rumit… cukup mengedit file access.conf (/etc/apache/access.conf) —– Tambahkan — AuthUserFile /etc/htpasswd AuthGroupFile /dev/null AuthName “Label Yang Akan Muncul” AuthType Basic require user daniel Joni Agung — Menentukan User Membuat Files User-password “pertama” htpasswd -c /etc/htpasswd nama password. Menambahkan User-Password “Kedua dan Seterusnya” htpasswd -b /etc/htpasswd nama password Kalo masih bingung baca ini ya … Usage: htpasswd [-cmdpsD] passwordfile username\r\nhtpasswd -b[cmdpsD] passwordfile username password htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create a new file. Don’t update file; display results on stdout. -m Force MD5 encryption of the password. -d Force CRYPT encryption of the password (default). -p Do not encrypt the password (plaintext). -s Force SHA encryption of the password. -b Use the password from the command line rather than prompting for it. -D Delete the specified user — Restart Apache WebServer dan lakukan test ke alamat web … Read entire article »