<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>{ Berbagi, Menulis, Dan Mengajar } Ilmu... &#187; Free-BSD</title>
	<atom:link href="http://dimas.ubhara.id/category/os/free-bsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://dimas.ubhara.id</link>
	<description>sampaikanlah ilmu walau satu ayat</description>
	<lastBuildDate>Sun, 19 Apr 2026 23:30:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Squid Inspiration</title>
		<link>http://dimas.ubhara.id/2008/03/squid-inspiration/</link>
		<comments>http://dimas.ubhara.id/2008/03/squid-inspiration/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 10:44:37 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[File Config]]></category>
		<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=129</guid>
		<description><![CDATA[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 &#60;asalimun@andix.info&#62;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 with. Squid also needs fast disk storage. Use SCSI drives if you can, though IDE drives will do the job. ...]]></description>
				<content:encoded><![CDATA[<p>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. </p>
<p><hr />
Andi Salimun &lt;<a href="mailto:asalimun@andix.info">asalimun@andix.info</a>&gt;<br />Introduction<br />This 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. </p>
<p>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. </p>
<p>Requirements<br />Squid needs a lot of memory. More is better but 128 MB of memory is good to start with. Squid also needs fast disk storage. Use SCSI drives if you can, though IDE drives will do the job. Also have a FreeBSD 4.5 box setup and running! You will need to recompile the kernel with additional options and components. </p>
<p>1. Installing Squid<br />You can install Squid using Ports but you can&rsquo;t play with configure options, so I&rsquo;ll cover the steps to install from a tarball. </p>
<p>You can download the Squid source from <a href="http://www.squid-cache.org/">http://www.squid-cache.org</a>. The lastest version is squid-2.4.STABLE6-src.tar.gz. Run the following commands as root. </p>
<p> # cd /path/to/tarball<br /> # tar zxvf squid-2.4.STABLE6-src.tar.gz<br /> # cd squid-2.4.STABLE6<br /> # ./configure &#8211;enable-delay-pools &#8211;enable-ipf-transparent &rsquo;<br />   &#8211;enable-storeio=diskd,ufs &#8211;enable-storeio=diskd,ufs &rsquo;<br />   &#8211;disable-ident-lookups &#8211;enable-snmp &#8211;enable-removal-policies<br /> # make all<br /> # make install</p>
<p>The explaination of configure script options are below: <br />&#8211;enable-delay-pools &#8211; Enable delay pools to limit bandwidth usage.</p>
<p>You need to enable the option in order to use Squid to limit bandwith usage. It will give fair bandwith usage for everybody. In my case, I don&rsquo;t want one person sucking all of the available bandwidth by downloading a big movie, causing others to suffer. </p>
<p>&#8211;enable-ipf-transparent &#8211; Enable Transparent Proxy support for systems using IP Filter network address redirection.</p>
<p>With this option, you don&rsquo;t have to configure the client&rsquo;s browser proxy setting. Also it is a good way to force the client to use the proxy everytime. </p>
<p>&#8211;enable-storeio=diskd,ufs &#8211; Enable diskd</p>
<p>Improve disk I/O performance. According to the Squid FAQ, if you enable diskd you can gain a 400% increase of perfomance. However, you would need to recompile the kernel because your operating system must support message queues and shared memory. </p>
<p>&#8211;enable-removal-policies &#8211; Build support for the list of removal policies.</p>
<p>By default, Squid uses LRU, but there are two better policies: GDSF and LFUDA. See the Squid config for a more detailed explanation. </p>
<p>&#8211;disable-ident-lookups &#8211; This allows you to remove code that performs Ident (RFC 931) lookups.</p>
<p>Not really important. By the way, if you do transparent proxy, ident lookups won&rsquo;t work. </p>
<p>&#8211;enable-snmp</p>
<p>Optional: enable this and you can monitor Squid with mrtg or rrdtool. How to do this is outside of this article&rsquo;s scope. Perhaps in my next one. </p>
<p>2. Edit Squid Configuration File /usr/local/squid/etc/squid.conf</p>
<p> # Need for transparent proxy<br /> # You need to &#8211;enable-ipf-transparent<br /> http_port 3128<br /> httpd_accel_host virtual<br /> httpd_accel_port 80<br /> httpd_accel_with_proxy  on<br /> httpd_accel_uses_host_header on</p>
<p> # Physical memory / 3<br /> cache_mem 128 MB<br /> # Max out Squid I/O perfomance, 15 GB cache and use Squid special diskd but you need to recompile the kernel<br /> # To use disk you need to &#8211;enable-storeio=diskd,ufs<br /> # Reasonable values for Q1 and Q2 are 72 and 64, respectively.<br /> # Q1 value must bigger Q2<br /> cache_dir diskd /usr/local/squid/cache 15360 16 256 Q1=72 Q2=64</p>
<p> # You can use normal ufs instead<br /> #cache_dir ufs /usr/local/squid/cache 15360 16 256</p>
<p> # I dont want to log anything<br /> # The reason is to save some expensive I/O operation.<br /> cache_access_log /dev/null<br /> cache_store_log none<br /> cache_log /dev/null</p>
<p> # Cache replacement policy<br /> # The  heap GDSF policy optimizes object-hit rate by keeping  smaller popular<br /> # objects in cache, so it has a better chance of getting a hit. It achieves  a<br /> # lower byte hit rate than LFUDA, though, since it evicts larger (possibly popular)<br /> # objects.<br /> # The  heap LFUDA  ( Least  Frequently Used  with Dynamic  Aging )  policy keeps<br /> # popular objects in cache  regardless of their size  and thus optimizes byte  hit<br /> # rate at the  expense of hit  rate since one  large, popular object  will prevent<br /> # many smaller, slightly less popular objects from being cached.<br /> # You need to &#8211;enable-removal-policies<br /> cache_replacement_policy GDSF</p>
<p> # Standard Access List<br /> # I have two subnets, one for student and another one for admin<br /> # Modify this according to your network<br /> acl all src 0.0.0.0/0.0.0.0<br /> acl manager proto cache_object<br /> acl localhost src 127.0.0.1/255.255.255.255<br /> acl outgoing src 192.168.10.2/255.255.255.255<br /> acl student src 192.168.0.0/255.255.255.0<br /> acl admin src 192.168.1.0/255.255.255.0<br /> acl SSL_ports port 443 563<br /> acl Safe_ports port 80          # http<br /> acl Safe_ports port 21          # ftp<br /> acl Safe_ports port 443 563     # https, snews<br /> acl Safe_ports port 70          # gopher<br /> acl Safe_ports port 210         # wais<br /> acl Safe_ports port 1025-65535  # unregistered ports<br /> acl Safe_ports port 280         # http-mgmt<br /> acl Safe_ports port 488         # gss-http<br /> acl Safe_ports port 591         # filemaker<br /> acl Safe_ports port 777         # multiling http<br /> acl CONNECT method CONNECT</p>
<p> http_access allow manager<br /> http_access allow localhost<br /> http_access allow outgoing<br /> http_access allow student<br /> http_access allow admin<br /> http_access deny !Safe_ports<br /> http_access deny CONNECT !SSL_ports<br /> http_access deny all</p>
<p> icp_access allow localhost<br /> icp_access allow student<br /> icp_access allow admin<br /> icp_access deny all</p>
<p> # Avoid caching cgi scripts<br /> acl QUERY urlpath_regex cgi-bin<br /> no_cache deny QUERY</p>
<p> acl magic_words1 url_regex -i 192.168<br /> acl magic_words2 url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov</p>
<p> # Delay Pool<br /> # For delay pool, you need to &#8211;enable-delay-pools<br /> delay_pools 2</p>
<p> # I have ADSL 2Mbits line<br /> # 2 mbits == 256 kbytes per second<br /> # 256 KB/s, 5 KB/s<br /> # It means 256 KB/s bandwith for the whole network, but 5 KB/s for each node, which is fair for everybody<br /> delay_class 1 2<br /> delay_parameters 1 256000/256000 5000/256000<br /> delay_access 1 allow magic_words2<br /> delay_access 1 allow student<br /> delay_access 1 allow admin</p>
<p> # -1/-1 means that there are no limits for local traffic.<br /> delay_class 2 2<br /> delay_parameters 2 -1/-1 -1/-1<br /> delay_access 2 allow magic_words1</p>
<p> # Cancel download if file is bigger than 1MB<br /> reply_body_max_size 1024 KB</p>
<p> # snmp stuff<br /> acl snmppublic snmp_community public<br /> snmp_access allow snmppublic localhost<br /> snmp_access deny all</p>
<p> # Change to your domain<br /> # visible_hostname yourdomain.domain.com<br /> # cache_mgr <a href="mailto:yourname@youremail.com">yourname@youremail.com</a></p>
<p>3. Create cache dir and create swap</p>
<p> # mkdir /usr/local/squid/cache<br /> # chown nobody:nogroup cache<br /> # /usr/local/squid/bin/squid -k parse<br /> # /usr/local/squid/bin/squid -z</p>
<p>4. Configure transparent proxy with ipfilter<br />4.1 Edit /etc/rc.conf</p>
<p> # add these lines to enable ipfilter<br /> ipfilter_enable=&quot;YES&quot;<br /> ipnat_enable=&quot;YES&quot;<br /> ipmon_enable=&quot;YES&quot;<br /> ipfs_enable=&quot;YES&quot;</p>
<p>4.2 Edit /etc/ipnat.rules</p>
<p> # add this line<br /> # I assume rl0 is your internal nic<br /> # Redirect everything else to squid on port 3128<br /> rdr rl0 0/0 port 80 -&gt; 127.0.0.1 port 3128 tcp</p>
<p>5. Reconfigure kernel for squid diskd support<br />Consult the Freebsd Handbook for recompiling the kernel and add the following lines. Your kernel must have: </p>
<p> options         SYSVMSG</p>
<p>You can set the parameters in the kernel as follows. This is just an example. Make sure the values are appropriate for your system: <br /> options         MSGMNB=8192     # max # of bytes in a queue<br /> options         MSGMNI=40       # number of message queue identifiers<br /> options         MSGSEG=512      # number of message segments per queue<br /> options         MSGSSZ=64       # size of a message segment<br /> options         MSGTQL=2048     # max messages in system</p>
<p>The following is the explanation of the kernel options from the Squid FAQ: </p>
<p>The messages between Squid and diskd are 32 bytes for 32-bit CPUs and 40 bytes for 64-bit CPUs. Thus, MSGSSZ should be 32 or greater. You may want to set it to a larger value, just to be safe. </p>
<p>We&rsquo;ll have two queues for each cache_dir, one in each direction. So, MSGMNI needs to be at least two times the number of cache_dir&rsquo;s. </p>
<p>I&rsquo;ve found that 75 messages per queue is about the limit of decent performance. If each diskd message consists of just one segment (depending on your value of MSGSSZ), then MSGSEG should be greater than 75. </p>
<p>MSGMNB and MSGTQL affect how many messages can be in the queues at one time. Diskd messages shouldn&rsquo;t be more than 40 bytes, but let&rsquo;s use 64 bytes to be safe. MSGMNB should be at least 64*75. I recommend rounding up to the nearest power of two, or 8192. </p>
<p>MSGTQL should be at least 75 times the number of cache_dir&rsquo;s that you&rsquo;ll have. </p>
<p>Also you can tweak the kernel by commenting out unnecessary lines in the kernel config to gain extra perfomance. Then recompile the kernel. </p>
<p>6. Create start-up script /usr/local/etc/rc.d/squid.sh</p>
<p> #!/bin/sh</p>
<p> echo -n &rsquo; Squid &rsquo;</p>
<p> case &quot;$1&quot; in<br /> start)<br /> /usr/local/squid/bin/squid -D<br /> ;;<br /> stop)<br /> /usr/local/squid/bin/squid -k shutdown<br /> ;;<br /> restart)<br /> /usr/local/squid/bin/squid -k reconfigure<br /> ;;<br /> *)<br /> echo &quot;Usage: `basename $0` {start|stop|restart}&quot;<br /> ;;<br /> esac</p>
<p>7. All Done!<br />References</p>
<p>FreeBSD &#8211; <a href="http://www.freebsd.org/">http://www.freebsd.org/</a> <br />Squid Web Proxy Cache &#8211; <a href="http://www.squid-cache.org/">http://www.squid-cache.org/</a> <br />Configuration Manual for Squid 2.4 Stable x &#8211; <a href="http://squid.visolve.com/">http://squid.visolve.com/</a> <br />Linux Documentation Project &#8211; Bandwidth Limiting HOWTO &#8211; <a href="http://www.linuxdoc.org/">http://www.linuxdoc.org</a> <br />Do-It-Yourself Caching: Squid 2.3 &#8211; <a href="http://www.bsdtoday.com/2000/February/Tutorials28.html">http://www.bsdtoday.com/2000/February/Tutorials28.html</a> <br />IP Filter Based Firewalls HOWTO &#8211; <a href="http://www.obfuscation.org/ipf/ipf-howto.html">http://www.obfuscation.org/ipf/ipf-howto.html</a> </p>
<p>Andi Salimun<br />18 Jul 2002 </p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2008/03/squid-inspiration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blocking Alamat Email di Qmail</title>
		<link>http://dimas.ubhara.id/2007/07/blocking-alamat-email-di-qmail/</link>
		<comments>http://dimas.ubhara.id/2007/07/blocking-alamat-email-di-qmail/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 16:02:29 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=30</guid>
		<description><![CDATA[Untuk melakukan blocking alamat email di Server Qmail caranya cukup mudah
&#8212;-
Bisa Dilakukan dengan mengedit file &#8211;> /var/qmail/control/badmailfrom
*.Kalo ingin nge-block dari sebuah alamat domain, lakukan cara sebagai berikut
  echo &#8216;@domain.com&#8217; >> /var/qmail/control/badmailfrom 
.:GoodLuck:.
]]></description>
				<content:encoded><![CDATA[<p>Untuk melakukan blocking alamat email di Server Qmail caranya cukup mudah<br />
&#8212;-<br />
Bisa Dilakukan dengan mengedit file &#8211;> /var/qmail/control/badmailfrom</p>
<p>*.Kalo ingin nge-block dari sebuah alamat domain, lakukan cara sebagai berikut</p>
<p>  echo &#8216;@domain.com&#8217; >> /var/qmail/control/badmailfrom </p>
<p>.:GoodLuck:.</p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/blocking-alamat-email-di-qmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>installing Qmail on FreeBSD in 5 Minutes</title>
		<link>http://dimas.ubhara.id/2007/07/5-minutes/</link>
		<comments>http://dimas.ubhara.id/2007/07/5-minutes/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 13:32:59 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=28</guid>
		<description><![CDATA[FreeBSD Qmail Server&#8230;
asalamualaikum wr wb
This is a quick installation of Qmail on FreeBSD Operating System &#8230;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Do like this,
follow the step by step,
less than 5 minutes we can build a mail server&#8230;.
Good Luck &#8230;!!!
wasalam wr wb
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# 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 &#8220;OPTIONAL_MANPATH /var/qmail/man&#8221; >> /etc/manpath.config
# makewhatis
# echo &#8220;127.0.0.1:allow,RELAYCLIENT=\&#8221;\&#8221;&#8221; > /etc/tcp.smtp
# echo &#8220;192.168.0.:allow,RELAYCLIENT=\&#8221;\&#8221;&#8221; >> /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 line:
./Maildir/
* Maildir
Execute the following command to make the Maildir directory:
# /var/qmail/bin/maildirmake /usr/share/skel/Maildir
* Create Maildir and .qmail
Execute the following commands for ...]]></description>
				<content:encoded><![CDATA[<p>FreeBSD Qmail Server&#8230;<br />
asalamualaikum wr wb<br />
This is a quick installation of Qmail on FreeBSD Operating System &#8230;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Do like this,<br />
follow the step by step,<br />
less than 5 minutes we can build a mail server&#8230;.<br />
Good Luck &#8230;!!!<br />
wasalam wr wb<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
# cd /usr/ports/mail/qmail<br />
# make enable-qmail WITH_QMAILQUEUE_PATCH=yes WITH_BIG_TODO_PATCH=yes<br />
# make clean<br />
# cd /usr/ports/sysutils/ucspi-tcp<br />
# make all install clean</p>
<p># cd /usr/ports/security/checkpassword<br />
# make all install clean<br />
# echo &#8220;OPTIONAL_MANPATH /var/qmail/man&#8221; >> /etc/manpath.config<br />
# makewhatis<br />
# echo &#8220;127.0.0.1:allow,RELAYCLIENT=\&#8221;\&#8221;&#8221; > /etc/tcp.smtp</p>
<p># echo &#8220;192.168.0.:allow,RELAYCLIENT=\&#8221;\&#8221;&#8221; >> /etc/tcp.smtp<br />
# echo :allow >> /etc/tcp.smtp<br />
# /usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp</p>
<p>EDIT dot.cshrc</p>
<p>Find the following line in dot.cshrc:</p>
<p>set mail = (/var/mail/$USER)</p>
<p>and modify the file as follows:</p>
<p>#set mail = (/var/mail/$USER)<br />
setenv MAIL ~/Mailbox<br />
setenv MAILDIR ~/Maildir<br />
setenv MAILTMP ~/Maildir/tmp/tmpfile<br />
alias mail '/var/qmail/bin/maildir2mbox;/var/qmail/bin/qail'<br />
alias pine '/var/qmail/bin/maildir2mbox;/var/qmail/bin/pinq'<br />
alias elm  '/var/qmail/bin/maildir2mbox;/var/qmail/bin/elq'</p>
<p>EDIT dot.shrc</p>
<p>Append the following lines to the end of dot.shrc</p>
<p>MAIL=~/Mailbox<br />
MAILDIR=~/Maildir<br />
MAILTMP=~/Maildir/tmp/tmpfile<br />
export MAIL MAILDIR MAILTMP<br />
alias mail='/var/qmail/bin/maildir2mbox;/var/qmail/bin/qail'<br />
alias pine='/var/qmail/bin/maildir2mbox;/var/qmail/bin/pinq'<br />
alias elm='/var/qmail/bin/maildir2mbox;/var/qmail/bin/elq'</p>
<p>EDIT dot.qmail</p>
<p>Create the file dot.qmail and add this line:</p>
<p>./Maildir/</p>
<p>* Maildir</p>
<p>Execute the following command to make the Maildir directory:</p>
<p># /var/qmail/bin/maildirmake /usr/share/skel/Maildir</p>
<p>* Create Maildir and .qmail</p>
<p>Execute the following commands for each existing user:</p>
<p># cp -R /usr/share/skel/Maildir ~USERSNAME/<br />
# chown -R USERSNAME ~USERSNAME/Maildir<br />
# cp /usr/share/skel/dot.qmail ~USERSNAME/.qmail<br />
# chown USERSNAME ~USERSNAME/.qmail</p>
<p># qmail options<br />
qmail_smtp_enable="YES"<br />
qmail_pop_enable="YES"<br />
qmail_enable="YES"</p>
<p>Create /var/qmail/rc:</p>
<p>#!/bin/sh</p>
<p>#<br />
# This script starts and stops the qmail mail functions.<br />
#</p>
<p># Suck in the configuration variables.<br />
if [ -r /etc/defaults/rc.conf ]; then<br />
        . /etc/defaults/rc.conf<br />
        source_rc_confs<br />
elif [ -r /etc/rc.conf ]; then<br />
        . /etc/rc.conf<br />
fi</p>
<p>case "$1" in<br />
start)<br />
        case ${qmail_smtp_enable} in<br />
        [Yy][Ee][Ss])<br />
                # Start the qmail smtp daemon<br />
                /usr/local/bin/tcpserver -H -R -c 255 -x /etc/tcp.smtp.cdb \<br />
                        -u 82 -g 81 0 25 /var/qmail/bin/qmail-smtpd &#038;<br />
                echo -n " qmail-smtp"<br />
                ;;<br />
        esac</p>
<p>        case ${qmail_pop_enable} in<br />
        [Yy][Ee][Ss])<br />
                # Start the qmail pop daemon<br />
                /usr/local/bin/tcpserver -H -R -c 255 0 110 \<br />
                        /var/qmail/bin/qmail-popup HOSTNAME.DOMAIN \<br />
                        /usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d \<br />
                         Maildir &#038;<br />
                echo -n " qmail-pop"<br />
                ;;<br />
        esac</p>
<p>        case ${qmail_enable} in<br />
        [Yy][Ee][Ss])<br />
                # Start qmail<br />
                exec env - PATH="/var/qmail/bin:$PATH" \<br />
                        qmail-start ./Maildir splogger qmail &#038;<br />
                echo -n " qmail"<br />
                ;;<br />
        esac<br />
        ;;<br />
stop)<br />
        # Stop the smtp daemon<br />
        smtppid=`ps -axw | grep tcpserver | grep smtp | grep -v grep | awk '{ print $1 }'`<br />
        if [ "$smtppid" != "" ]; then<br />
                kill $smtppid<br />
                echo -n " qmail-smtp"<br />
        fi</p>
<p>        # Stop the pop daemon<br />
        poppid=`ps -axw | grep tcpserver | grep popup | grep -v grep | awk '{ print $1 }'`<br />
        if [ "$poppid" != "" ]; then<br />
                kill $poppid<br />
                echo -n " qmail-pop"<br />
        fi</p>
<p>        # Stop qmail<br />
        qmailpid=`ps -axw | grep qmail-send | grep -v grep | awk '{ print $1 }'`<br />
        if [ "$qmailpid" != "" ]; then<br />
                kill $qmailpid<br />
                echo -n " qmail"<br />
        fi<br />
        ;;<br />
*)<br />
        echo "Usage: `basename $0` {start|stop}" >&#038;2<br />
        ;;<br />
esac</p>
<p>exit 0</p>
<p>chmod 750 /var/qmail/rc<br />
# echo HOSTNAME.DOMAIN > /var/qmail/control/me<br />
# echo HOSTNAME.DOMAIN > /var/qmail/control/rcpthosts<br />
# echo DOMAIN >> /var/qmail/control/rcpthosts<br />
# echo HOSTNAME.DOMAIN > /var/qmail/control/locals<br />
# echo DOMAIN >> /var/qmail/control/locals<br />
# echo HOSTNAME > /var/qmail/control/defaulthost<br />
# echo DOMAIN > /var/qmail/control/defaultdomain<br />
# echo DOMAIN > /var/qmail/control/plusdomain<br />
# echo EMAILADDRESS > /var/qmail/alias/.qmail-root<br />
# killall sendmail<br />
# rm /var/run/sendmail.pid<br />
# /usr/local/etc/rc.d/qmail.sh start<br />
# ps -ax | grep tcpserver<br />
# ps -ax | grep qmail<br />
<strong><em>.:GoodLuck:.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/5-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Config Error (BSD)</title>
		<link>http://dimas.ubhara.id/2007/07/config-error-bsd/</link>
		<comments>http://dimas.ubhara.id/2007/07/config-error-bsd/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 12:51:11 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=27</guid>
		<description><![CDATA[Dear All &#8230;
Mesin Saya FreeBSD-Stable &#8230;
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 &#8230;
thx
&#8212;&#8212;&#8212;
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:.
]]></description>
				<content:encoded><![CDATA[<p>Dear All &#8230;<br />
Mesin Saya FreeBSD-Stable &#8230;<br />
Hari ini saya mo compile ulang Kernel mesin tsb,tapi yang saya temui conflict / error spt dibawah :<br />
Biar Bisa Compile kernel lagi gimana ya ??<br />
kasih solusi donk &#8230;<br />
thx<br />
&#8212;&#8212;&#8212;<br />
Problem ::</p>
<p>#config FIREWALL<br />
ERROR: version of config(8) does not match kernel!<br />
config version = 500013, version required = 600002</p>
<p>Make sure that /usr/src/usr.sbin/config is in sync<br />
with your /usr/src/sys and install a new config binary<br />
before trying this again.</p>
<p>If running the new config fails check your config<br />
file against the GENERIC or LINT config files for<br />
changes in config syntax, or option/device naming<br />
conventions</p>
<p>Solution ::</p>
<p># cd /usr/src/usr.sbin/config<br />
# make depend all install clean</p>
<p>silakan rebuild kernel</p>
<p>-dh-<br />
<em><strong>.:GoodLuck:.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/config-error-bsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qmail error &#8230; /usr/ports (BSD)</title>
		<link>http://dimas.ubhara.id/2007/07/qmail-error-usrports-bsd/</link>
		<comments>http://dimas.ubhara.id/2007/07/qmail-error-usrports-bsd/#comments</comments>
		<pubDate>Sun, 08 Jul 2007 04:45:38 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=26</guid>
		<description><![CDATA[Problem ?? ::
dear all&#8230;
saya punya mesin BSD-STABLE &#8230;
Udah Lama Sekali njalanin Qmail &#8230;
beberapa Hari yang lalu Qmail-nya saya uninstall &#8230;.
kemudian saya coba menginstall ulang Qmail nya &#8230;
namun yang keluar malah error seperti ini &#8230;.
&#8212;&#8212;&#8212;&#8212;&#8212;
root@CS007# make reinstall
===>  qmail-1.03_4 is marked as broken: OUTGOINGIP and QMTPC conflicts!
Please, make your choice.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
Kira Kira kenapa neh ???
thx
Solutions ::
Hi Dimas,
cd /usr/ports/mail/qmail &#038;&#038; make config
Pilih OUTGOINGIP *atau* QMTPC (sesuai kebutuhan), di sisi saya, hanya
patch QMAILQUEUE saja.
Regards
Bd
.:GoodLuck:.
]]></description>
				<content:encoded><![CDATA[<p>Problem ?? ::<br />
dear all&#8230;<br />
saya punya mesin BSD-STABLE &#8230;<br />
Udah Lama Sekali njalanin Qmail &#8230;<br />
beberapa Hari yang lalu Qmail-nya saya uninstall &#8230;.<br />
kemudian saya coba menginstall ulang Qmail nya &#8230;<br />
namun yang keluar malah error seperti ini &#8230;.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
root@CS007# make reinstall<br />
===>  qmail-1.03_4 is marked as broken: OUTGOINGIP and QMTPC conflicts!<br />
Please, make your choice.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Kira Kira kenapa neh ???<br />
thx</p>
<p>Solutions ::<br />
Hi Dimas,</p>
<p>cd /usr/ports/mail/qmail &#038;&#038; make config</p>
<p>Pilih OUTGOINGIP *atau* QMTPC (sesuai kebutuhan), di sisi saya, hanya<br />
patch QMAILQUEUE saja.</p>
<p>Regards<br />
Bd</p>
<p><em><strong>.:GoodLuck:.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/qmail-error-usrports-bsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD Reprository for Port-Tree</title>
		<link>http://dimas.ubhara.id/2007/07/freebsd-reprository-for-port-tree/</link>
		<comments>http://dimas.ubhara.id/2007/07/freebsd-reprository-for-port-tree/#comments</comments>
		<pubDate>Sun, 08 Jul 2007 04:41:37 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=25</guid>
		<description><![CDATA[Ini Cerita ttg FreeBSD &#8211;> 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:.
]]></description>
				<content:encoded><![CDATA[<p>Ini Cerita ttg FreeBSD &#8211;> Create /etc/make.conf<br />
# Tambahkan Script ini u/ Porting file,lihat koneksinya (INDON or LUAR INDON)</p>
<p>#MASTER_SITE_BACKUP?=   \<br />
#       ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/<br />
#MASTER_SITE_BACKUP}</p>
<p>#Indonesia (Thx to CBN)<br />
#MASTER_SITE_BACKUP?=   \<br />
#       ftp://freebsd.cbn.net.id/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/<br />
#MASTER_SITE_BACKUP}</p>
<p>#Luar Negeri  (Thx to MIT)<br />
#MASTER_SITE_BACKUP?=   \<br />
#       http://cvsup3.freebsd.org/FreeBSD/ports/distfiles/${DIST_SUBDIR}/<br />
#MASTER_SITE_BACKUP}<br />
<strong><em>.:GoodLuck:.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/freebsd-reprository-for-port-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RC.CONF FreeBSD for VLAN</title>
		<link>http://dimas.ubhara.id/2007/07/rcconf-freebsd-for-vlan/</link>
		<comments>http://dimas.ubhara.id/2007/07/rcconf-freebsd-for-vlan/#comments</comments>
		<pubDate>Sun, 08 Jul 2007 04:39:39 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=24</guid>
		<description><![CDATA[# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter=&#8221;10.252.1.1&#8243;
gateway_enable=&#8221;YES&#8221;
named_enable=&#8221;YES&#8221;
squid_enable=&#8221;YES&#8221;
sendmail_enable=&#8221;NONE&#8221;
sendmail_enable=&#8221;NO&#8221;
apache22_enable=&#8221;YES&#8221;
sendmail_submit_enable=&#8221;NO&#8221;
sendmail_outbound_enable=&#8221;NO&#8221;
sendmail_msp_queue_enable=&#8221;NO&#8221;
clear_tmp_enable=&#8221;YES&#8221;
#if_vlan_load=&#8221;YES&#8221; &#8211;> ada di /boot/loader.conf
saver=&#8221;logo&#8221;
scrnmap=&#8221;NO&#8221;
hostname=&#8221;firewall.ptpn-11.com&#8221;
ifconfig_bge0=&#8221;inet 192.168.0.254  netmask 255.255.255.0&#8243;
ifconfig_xl0=&#8221;inet 10.252.1.3  netmask 255.255.0.0&#8243;
#ifconfig_rl0=&#8221;inet 192.168.10.111  netmask 255.255.255.0&#8243;
keymap=&#8221;us.iso&#8221;
linux_enable=&#8221;YES&#8221;
sshd_enable=&#8221;YES&#8221;
usbd_enable=&#8221;NO&#8221;
pf_enable=&#8221;YES&#8221;                  # Enable PF (load module if required)
pf_rules=&#8221;/etc/pf.conf&#8221;          # rules definition file for pf
pf_flags=&#8221;&#8221;                      # additional flags for pfctl startup
pflog_enable=&#8221;YES&#8221;               # start pflogd(8)
pflog_logfile=&#8221;/var/log/pflog&#8221;   # where pflogd should store the logfile
pflog_flags=&#8221;&#8221;                   # additional flags for pflogd startup
gateway_enable=&#8221;YES&#8221;         ...]]></description>
				<content:encoded><![CDATA[<p># This file now contains just the overrides from /etc/defaults/rc.conf.</p>
<p>defaultrouter=&#8221;10.252.1.1&#8243;<br />
gateway_enable=&#8221;YES&#8221;<br />
named_enable=&#8221;YES&#8221;<br />
squid_enable=&#8221;YES&#8221;<br />
sendmail_enable=&#8221;NONE&#8221;<br />
sendmail_enable=&#8221;NO&#8221;<br />
apache22_enable=&#8221;YES&#8221;<br />
sendmail_submit_enable=&#8221;NO&#8221;<br />
sendmail_outbound_enable=&#8221;NO&#8221;<br />
sendmail_msp_queue_enable=&#8221;NO&#8221;<br />
clear_tmp_enable=&#8221;YES&#8221;<br />
#if_vlan_load=&#8221;YES&#8221; &#8211;> ada di /boot/loader.conf<br />
saver=&#8221;logo&#8221;<br />
scrnmap=&#8221;NO&#8221;</p>
<p>hostname=&#8221;firewall.ptpn-11.com&#8221;<br />
ifconfig_bge0=&#8221;inet 192.168.0.254  netmask 255.255.255.0&#8243;<br />
ifconfig_xl0=&#8221;inet 10.252.1.3  netmask 255.255.0.0&#8243;<br />
#ifconfig_rl0=&#8221;inet 192.168.10.111  netmask 255.255.255.0&#8243;</p>
<p>keymap=&#8221;us.iso&#8221;<br />
linux_enable=&#8221;YES&#8221;<br />
sshd_enable=&#8221;YES&#8221;<br />
usbd_enable=&#8221;NO&#8221;</p>
<p>pf_enable=&#8221;YES&#8221;                  # Enable PF (load module if required)<br />
pf_rules=&#8221;/etc/pf.conf&#8221;          # rules definition file for pf<br />
pf_flags=&#8221;&#8221;                      # additional flags for pfctl startup<br />
pflog_enable=&#8221;YES&#8221;               # start pflogd(8)<br />
pflog_logfile=&#8221;/var/log/pflog&#8221;   # where pflogd should store the logfile<br />
pflog_flags=&#8221;&#8221;                   # additional flags for pflogd startup<br />
gateway_enable=&#8221;YES&#8221;             # Enable as LAN gateway</p>
<p>cloned_interfaces=&#8221;vlan0 vlan1 vlan2 vlan3 vlan4 vlan5 vlan6&#8243;</p>
<p>ifconfig_vlan0=&#8221;inet 192.168.10.254 netmask 255.255.255.0 vlan 10 vlandev bge0&#8243;<br />
ifconfig_vlan1=&#8221;inet 192.168.11.254 netmask 255.255.255.0 vlan 11 vlandev bge0&#8243;<br />
ifconfig_vlan2=&#8221;inet 192.168.12.254 netmask 255.255.255.0 vlan 12 vlandev bge0&#8243;<br />
ifconfig_vlan3=&#8221;inet 192.168.13.254 netmask 255.255.255.0 vlan 13 vlandev bge0&#8243;<br />
ifconfig_vlan4=&#8221;inet 192.168.14.254 netmask 255.255.255.0 vlan 14 vlandev bge0&#8243;<br />
ifconfig_vlan5=&#8221;inet 192.168.15.254 netmask 255.255.255.0 vlan 15 vlandev bge0&#8243;<br />
ifconfig_vlan6=&#8221;inet 192.168.16.254 netmask 255.255.255.0 vlan 16 vlandev bge0&#8243;</p>
<p><em><strong>.:GoodLuck:.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/rcconf-freebsd-for-vlan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Options Configuration Kernel FreeBSD</title>
		<link>http://dimas.ubhara.id/2007/07/options-configuration-kernel-freebsd/</link>
		<comments>http://dimas.ubhara.id/2007/07/options-configuration-kernel-freebsd/#comments</comments>
		<pubDate>Sun, 08 Jul 2007 04:37:25 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=23</guid>
		<description><![CDATA[Bikin Kernel &#8220;FreeBSD&#8221; 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         SHMMAX=2097152
options         SHMALL=4096
options       ...]]></description>
				<content:encoded><![CDATA[<p>Bikin Kernel &#8220;FreeBSD&#8221; Tambah Garang<br />
#Tuning For Squid<br />
options         MSGMNB=16384    # max # of bytes in a queue<br />
options         MSGMNI=41       # number of message queue identifiers<br />
options         MSGSEG=2049     # number of message segments per queue<br />
options         MSGSSZ=64       # size of a message segment<br />
options         MSGTQL=512      # max messages in system<br />
options         SHMSEG=16<br />
options         SHMMNI=32<br />
options         SHMMAX=2097152<br />
options         SHMALL=4096<br />
options         MAXFILES=8192<br />
options         NMBCLUSTERS=32768<br />
options         VFS_AIO</p>
<p>#IPFW<br />
options IPFIREWALL<br />
options IPFIREWALL_VERBOSE<br />
options IPFIREWALL_FORWARD<br />
options IPFIREWALL_DEFAULT_TO_ACCEPT<br />
options IPDIVERT</p>
<p># options Bandwidth Management<br />
options DUMMYNET<br />
options BRIDGE<br />
options HZ=1000</p>
<p>#IPF &#8220;Don&#8217;t Use<br />
# options IPFILTER<br />
# options IPFILTER_LOG<br />
# options IPFILTER_DEFAULT_BLOCK<br />
# options RANDOM_IP_ID</p>
<p># PF Device ENABLE<br />
device pf<br />
device pflog<br />
device pfsync</p>
<p># ALTQ ENABLED<br />
device    bpf # default<br />
options   INET # default<br />
options   INET6 # default<br />
#options   RANDOM_IP_ID<br />
#options   PFIL_HOOKS<br />
options   ALTQ<br />
options   ALTQ_CBQ           # Class Bases Queuing (CBQ)<br />
options   ALTQ_RED           # Random Early Detection (RED)<br />
options   ALTQ_RIO            # RED In/Out<br />
options   ALTQ_HFSC         # Hierarchical Packet Scheduler (HFSC)<br />
options   ALTQ_PRIQ          # Priority Queuing (PRIQ)<br />
options   ALTQ_NOPCC      # Required for SMP build</p>
<p>#&#8212;&#8211; VLAN ENABLE<br />
device  vlan</p>
<p><strong><em>.:GoodLuck:.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/options-configuration-kernel-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>boot -s on FreeBSD</title>
		<link>http://dimas.ubhara.id/2007/07/boot-s-bsd-box/</link>
		<comments>http://dimas.ubhara.id/2007/07/boot-s-bsd-box/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 17:37:05 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=19</guid>
		<description><![CDATA[Problem ::??
saya mo tanya ya &#8230;
hari ini saya ada masalah di mesin BSD,
kmudian saya login ke mesin BSD dengan Single User &#8230;
Akses Root udah saya dapatkan,
cuman masalahnya saya ga bisa melakukan perubahan di file rc.conf,
system bilang file tsb Read-Only &#8230;   So ..   Gimana ya biar saya bisa ngedit File tsb,
pake Single User ..??
Thx&#8230;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Solutions :: ;))
#mount -uw
#mount -at ufs
#vi /etc/rc.conf
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
.:GoodLuck:.
]]></description>
				<content:encoded><![CDATA[<p>Problem ::??<br />
saya mo tanya ya &#8230;<br />
hari ini saya ada masalah di mesin BSD,<br />
kmudian saya login ke mesin BSD dengan Single User &#8230;<br />
Akses Root udah saya dapatkan,<br />
cuman masalahnya saya ga bisa melakukan perubahan di file rc.conf,<br />
system bilang file tsb Read-Only &#8230;   So ..   Gimana ya biar saya bisa ngedit File tsb,<br />
pake Single User ..??<br />
Thx&#8230;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Solutions :: ;))<br />
#mount -uw<br />
#mount -at ufs<br />
#vi /etc/rc.conf<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong><em>.:GoodLuck:.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/boot-s-bsd-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>protect direktori web menggunakan htpasswd</title>
		<link>http://dimas.ubhara.id/2007/07/protect-direktori-web-menggunakan-htpasswd/</link>
		<comments>http://dimas.ubhara.id/2007/07/protect-direktori-web-menggunakan-htpasswd/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 15:39:57 +0000</pubDate>
		<dc:creator><![CDATA[dms]]></dc:creator>
				<category><![CDATA[Free-BSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.ptpn-xi.com/?p=7</guid>
		<description><![CDATA[Berikut ini adalah cara untuk memprotect direktori Web apache menggunakan Htpasswd
tidak terlalu rumit&#8230;
cukup mengedit file access.conf (/etc/apache/access.conf)
&#8212;&#8211;
Tambahkan
&#8212;
AuthUserFile /etc/htpasswd
AuthGroupFile /dev/null
AuthName &#8220;Label Yang Akan Muncul&#8221;
AuthType Basic require user daniel Joni Agung
&#8212;
Menentukan User
Membuat Files User-password &#8220;pertama&#8221;
htpasswd -c /etc/htpasswd  nama  password.
Menambahkan User-Password &#8220;Kedua dan Seterusnya&#8221;
htpasswd -b /etc/htpasswd nama password
Kalo masih bingung baca ini ya &#8230;
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&#8217;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
&#8212;
Restart Apache WebServer dan lakukan test ke alamat web yang diprotect maka akan muncul  Field seperti berikut :

.:Good Luck:.
]]></description>
				<content:encoded><![CDATA[<p>Berikut ini adalah cara untuk memprotect direktori Web apache menggunakan Htpasswd<br />
tidak terlalu rumit&#8230;<br />
cukup mengedit file access.conf (/etc/apache/access.conf)<br />
&#8212;&#8211;<br />
Tambahkan<br />
<strong>&#8212;<br />
AuthUserFile /etc/htpasswd<br />
AuthGroupFile /dev/null<br />
AuthName &#8220;Label Yang Akan Muncul&#8221;<br />
AuthType Basic require user daniel Joni Agung<br />
&#8212;</strong><br />
Menentukan User<br />
Membuat Files User-password &#8220;pertama&#8221;<br />
htpasswd -c /etc/htpasswd  nama  password.<br />
Menambahkan User-Password &#8220;Kedua dan Seterusnya&#8221;<br />
htpasswd -b /etc/htpasswd nama password<br />
Kalo masih bingung baca ini ya &#8230;<br />
Usage:<br />
htpasswd [-cmdpsD] passwordfile username\r\nhtpasswd -b[cmdpsD] passwordfile username password<br />
htpasswd -n[mdps] username<br />
htpasswd -nb[mdps] username password<br />
-c  Create a new file.<br />
Don&#8217;t update file;<br />
display results on stdout.<br />
-m  Force MD5 encryption of the password.<br />
-d  Force CRYPT encryption of the password (default).<br />
-p  Do not encrypt the password (plaintext).<br />
-s  Force SHA encryption of the password.<br />
-b  Use the password from the command line rather than prompting for it.<br />
-D  Delete the specified user<br />
&#8212;<br />
Restart Apache WebServer dan lakukan test ke alamat web yang diprotect maka akan muncul  Field seperti berikut :<br />
<img width="482" height="226" src="http://noc.ptpn-xi.com/~dms/picture/prompt.jpg"/><br />
<strong><em>.:Good Luck:.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dimas.ubhara.id/2007/07/protect-direktori-web-menggunakan-htpasswd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
