<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BSD Brasil's Weblog</title>
	<atom:link href="http://bsdbrasil.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bsdbrasil.wordpress.com</link>
	<description>How to use it</description>
	<lastBuildDate>Thu, 15 Dec 2011 22:04:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bsdbrasil.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>BSD Brasil's Weblog</title>
		<link>http://bsdbrasil.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bsdbrasil.wordpress.com/osd.xml" title="BSD Brasil&#039;s Weblog" />
	<atom:link rel='hub' href='http://bsdbrasil.wordpress.com/?pushpress=hub'/>
		<item>
		<title>FreeBSD: MBMon &#8211; CPU Temperature Monitor</title>
		<link>http://bsdbrasil.wordpress.com/2011/12/15/freebsd-mbmon-cpu-temperature-monitor/</link>
		<comments>http://bsdbrasil.wordpress.com/2011/12/15/freebsd-mbmon-cpu-temperature-monitor/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 22:04:38 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[background mode]]></category>
		<category><![CDATA[manual mode]]></category>
		<category><![CDATA[mbmon]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=88</guid>
		<description><![CDATA[Compile mbmon from ports: ports/sysutils/mbmon Loading process in background mode with tcp output (/etc/rc.conf): # Mbmon mbmon_enable=&#8221;YES&#8221; mbmon_port=&#8221;12999&#8243; Starting process: /usr/local/etc/rc.d/mbmon start Testing: ~$ telnet localhost 12999 Trying ::1&#8230; Trying 127.0.0.1&#8230; Connected to localhost. Escape character is &#8216;^]&#8217;. Temp.= 254.0, 38.0, 201.0; Rot.= 135000, 0, 0 Vcore = 1.36, 1.82; Volt. = 3.31, 5.11, 2.31, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=88&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Compile mbmon from ports: ports/sysutils/mbmon</p>
<p>Loading process in background mode with tcp output (/etc/rc.conf):</p>
<blockquote><p># Mbmon<br />
mbmon_enable=&#8221;YES&#8221;<br />
mbmon_port=&#8221;12999&#8243;</p></blockquote>
<p>Starting process:</p>
<blockquote><p>/usr/local/etc/rc.d/mbmon start</p></blockquote>
<p>Testing:</p>
<blockquote><p>~$ telnet localhost 12999<br />
Trying ::1&#8230;<br />
Trying 127.0.0.1&#8230;<br />
Connected to localhost.<br />
Escape character is &#8216;^]&#8217;.</p>
<p>Temp.= 254.0, 38.0, 201.0; Rot.= 135000,    0,    0<br />
Vcore = 1.36, 1.82; Volt. = 3.31, 5.11, 2.31, -14.19, -6.12<br />
Connection closed by foreign host.</p></blockquote>
<p>Manual mode:</p>
<blockquote><p>~$ mbmon -A 1</p></blockquote>
<p>-A -&gt; Check using all supported mode by mbmon<br />
1 -&gt; Sleep 1 sec</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=88&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2011/12/15/freebsd-mbmon-cpu-temperature-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>FreeBSD: Setting up CPU speed</title>
		<link>http://bsdbrasil.wordpress.com/2011/12/14/freebsd-setting-up-cpu-speed/</link>
		<comments>http://bsdbrasil.wordpress.com/2011/12/14/freebsd-setting-up-cpu-speed/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 07:06:27 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[CPU]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ac line]]></category>
		<category><![CDATA[battery power]]></category>
		<category><![CDATA[cpu load]]></category>
		<category><![CDATA[operation mode]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=79</guid>
		<description><![CDATA[Powerd settings (/etc/rc.conf): # Powerd powerd_enable=&#8221;YES&#8221; powerd_flags=&#8221;-a adp -b adp -i 50 -r 75 -p 250&#8243; Starting the process: /etc/rc.d/powerd start Parameters: -a apd -&#62; Operation mode while on AC power (adaptive) -b apd -&#62; Operation mode while on battery power (adaptive) -i 50 -&#62; Specifies the CPU load percent level when adaptive mode should [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=79&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Powerd settings (/etc/rc.conf):</p>
<blockquote><p># Powerd<br />
powerd_enable=&#8221;YES&#8221;<br />
powerd_flags=&#8221;-a adp -b adp -i 50 -r 75 -p 250&#8243;</p></blockquote>
<p>Starting the process:</p>
<blockquote><p>/etc/rc.d/powerd start</p></blockquote>
<p>Parameters:</p>
<blockquote><p>-a apd -&gt; Operation mode while on AC power (adaptive)<br />
-b apd -&gt; Operation mode while on battery power (adaptive)<br />
-i 50 -&gt; Specifies the CPU load percent level when adaptive mode should begin to degrade performance to save power<br />
-r 75 -&gt; Specifies the CPU load percent level where adaptive mode should consider the CPU running and increase performance<br />
-p 250 -&gt; Specifies a different polling interval (in milliseconds) for AC line state and system idle levels</p>
<p>Others:<br />
-m &lt;freq&gt; -&gt; Minimum frequence reached by processor<br />
-M &lt;freq&gt; -&gt; Maximum frequence reached by processor<br />
-n &lt;op_mode&gt; -&gt; Used when the AC line is unknown</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=79&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2011/12/14/freebsd-setting-up-cpu-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>FreeBSD: Wired and Wireless router with transparent Bridge</title>
		<link>http://bsdbrasil.wordpress.com/2011/12/14/freebsd-wired-and-wireless-router-with-transparent-bridge/</link>
		<comments>http://bsdbrasil.wordpress.com/2011/12/14/freebsd-wired-and-wireless-router-with-transparent-bridge/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 06:40:41 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[bridge]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[kernel config]]></category>
		<category><![CDATA[link bridge]]></category>
		<category><![CDATA[setting up a router]]></category>
		<category><![CDATA[tkip or aes]]></category>
		<category><![CDATA[transparent bridge]]></category>
		<category><![CDATA[wpa psk tkip]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=69</guid>
		<description><![CDATA[Setting up a router with wired and wireless interfaces (WPA2 &#8211; TKIP/AES auth) and transparent bridge, turning it the same lan. I&#8217;m using FreeBSD 8.2 on tests. Scheme: ADSL &#60;&#8212;&#62; FreeBSD &#60;&#8212;&#62; Lan (wired/wireless) Kernel config: device ral # Chipset Ralink &#8211; RT2560, RT2561S, RT2661 device ralfw device wlan  # 802.11 support device wlan_ccmp # 802.11 CCMP [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=69&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Setting up a router with wired and wireless interfaces (WPA2 &#8211; TKIP/AES auth) and transparent bridge, turning it the same lan.</p>
<p>I&#8217;m using FreeBSD 8.2 on tests.</p>
<p>Scheme:</p>
<p><strong>ADSL &lt;&#8212;&gt; FreeBSD &lt;&#8212;&gt; Lan (wired/wireless)</strong></p>
<p>Kernel config:</p>
<blockquote><p>device ral # Chipset Ralink &#8211; RT2560, RT2561S, RT2661<br />
device ralfw<br />
device wlan  # 802.11 support<br />
device wlan_ccmp # 802.11 CCMP support<br />
device wlan_xauth # 802.11 WPA support<br />
device wlan_amrr # Adaptive Multi-Rate Retry<br />
device firmware # firmware assist module<br />
device bridge</p></blockquote>
<p>Interfaces settings (/etc/rc.conf):</p>
<blockquote><p># Ethernet<br />
ifconfig_re0=&#8221;DHCP media 100BaseTX mediaopt full-duplex&#8221;<br />
ifconfig_rl0=&#8221;ether f6:4c:a3:09:d9:e6 media 100BaseTX mediaopt full-duplex&#8221;<br />
ifconfig_ral0=&#8221;ether f6:4c:a3:09:d9:e6&#8243;</p>
<p># Wlan<br />
wlans_ral0=&#8221;wlan0&#8243;<br />
create_args_wlan0=&#8221;wlanmode hostap&#8221;<br />
ifconfig_wlan0=&#8221;ether f6:4c:a3:09:d9:e6 protmode rtscts fragthreshold 2346 bintval 1000 dtimperiod 15 apbridge mode 11g ssid BLOCKED channel 6&#8243;</p>
<p># Bridge (with Spaning Tree Protocol)<br />
cloned_interfaces=&#8221;bridge0&#8243;<br />
ifconfig_bridge0=&#8221;ether f6:4c:a3:09:d9:e6 addm rl0 addm wlan0 stp rl0 stp wlan0&#8243;<br />
ifconfig_bridge0_alias0=&#8221;inet 192.168.2.1 netmask 255.255.255.0&#8243;</p>
<p># Hostapd &#8211; WPA/WPA2 authenticator for WiFi lan<br />
hostapd_enable=&#8221;YES&#8221;</p>
<p># Gateway<br />
gateway_enable=&#8221;YES&#8221;</p></blockquote>
<p>NOTE: I used the same MAC on all interfaces.</p>
<p>WPA/WPA2 auth settings (/etc/hostapd.conf):</p>
<blockquote><p>interface=wlan0<br />
driver=bsd<br />
logger_syslog=-1<br />
logger_syslog_level=0<br />
logger_stdout=-1<br />
logger_stdout_level=0<br />
debug=3<br />
dump_file=/tmp/hostapd.dump<br />
ctrl_interface=/var/run/hostapd<br />
ctrl_interface_group=wheel<br />
ssid=BLOCKED<br />
macaddr_acl=0<br />
auth_algs=1<br />
ieee8021x=0<br />
wpa=2 # 1 &#8211; WPA / 2 &#8211; WPA2<br />
wpa_passphrase=otengio1234<br />
wpa_key_mgmt=WPA-PSK<br />
## TKIP or AES<br />
wpa_pairwise=CCMP TKIP</p></blockquote>
<p>System settings (/etc/sysctl.conf):</p>
<blockquote><p>net.link.bridge.pfil_bridge=1 # Packet filter on the bridge interface<br />
net.link.bridge.log_stp=1 # Log STP state changes<br />
net.link.bridge.pfil_onlyip=0 # Only pass IP packets when pfil is enabled<br />
net.link.bridge.pfil_local_phys=0 # Packet filter on the physical interface for locally destined packets<br />
net.link.bridge.pfil_member=1 # Packet filter on the member interface</p></blockquote>
<p>Now you can set the firewall rules on bridge interface, and BE HAPPY!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=69&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2011/12/14/freebsd-wired-and-wireless-router-with-transparent-bridge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Lighttpd as Web Server on FreeBSD</title>
		<link>http://bsdbrasil.wordpress.com/2009/04/10/using-lighttpd-as-web-server-on-freebsd/</link>
		<comments>http://bsdbrasil.wordpress.com/2009/04/10/using-lighttpd-as-web-server-on-freebsd/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 17:43:37 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=54</guid>
		<description><![CDATA[Installing httpd from ports: ~# cd /usr/ports/www/lighttpd/ ~# make install &#38;&#38; make clean Configuring /usr/local/etc/lighttpd.conf: server.modules = ( &#8220;mod_access&#8221;, &#8220;mod_auth&#8221;, &#8220;mod_status&#8221;, &#8220;mod_accesslog&#8221; ) server.document-root = &#8220;/usr/local/www/data/&#8221; server.errorlog = &#8220;/var/lighttpd/log/lighttpd.error.log&#8221; index-file.names = ( &#8220;index.php&#8221;, &#8220;index.html&#8221;, &#8220;index.htm&#8221;, &#8220;default.htm&#8221; ) server.event-handler = &#8220;freebsd-kqueue&#8221; # needed on OS X mimetype.assign = ( &#8220;.pdf&#8221; =&#62; &#8220;application/pdf&#8221;, &#8220;.sig&#8221; =&#62; &#8220;application/pgp-signature&#8221;, &#8220;.spl&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=54&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Installing httpd from ports:</p>
<blockquote><p>~# cd /usr/ports/www/lighttpd/<br />
~# make install &amp;&amp; make clean</p></blockquote>
<p>Configuring /usr/local/etc/lighttpd.conf:</p>
<blockquote><p>
server.modules              = (<br />
&#8220;mod_access&#8221;,<br />
&#8220;mod_auth&#8221;,<br />
&#8220;mod_status&#8221;,<br />
&#8220;mod_accesslog&#8221;</p>
<p>)<br />
server.document-root        = &#8220;/usr/local/www/data/&#8221;<br />
server.errorlog             = &#8220;/var/lighttpd/log/lighttpd.error.log&#8221;<br />
index-file.names            = ( &#8220;index.php&#8221;, &#8220;index.html&#8221;,<br />
&#8220;index.htm&#8221;, &#8220;default.htm&#8221; )<br />
server.event-handler = &#8220;freebsd-kqueue&#8221; # needed on OS X<br />
mimetype.assign             = (<br />
&#8220;.pdf&#8221;          =&gt;      &#8220;application/pdf&#8221;,<br />
&#8220;.sig&#8221;          =&gt;      &#8220;application/pgp-signature&#8221;,<br />
&#8220;.spl&#8221;          =&gt;      &#8220;application/futuresplash&#8221;,<br />
&#8220;.class&#8221;        =&gt;      &#8220;application/octet-stream&#8221;,<br />
&#8220;.ps&#8221;           =&gt;      &#8220;application/postscript&#8221;,<br />
&#8220;.torrent&#8221;      =&gt;      &#8220;application/x-bittorrent&#8221;,<br />
&#8220;.dvi&#8221;          =&gt;      &#8220;application/x-dvi&#8221;,<br />
&#8220;.gz&#8221;           =&gt;      &#8220;application/x-gzip&#8221;,<br />
&#8220;.pac&#8221;          =&gt;      &#8220;application/x-ns-proxy-autoconfig&#8221;,<br />
&#8220;.swf&#8221;          =&gt;      &#8220;application/x-shockwave-flash&#8221;,<br />
&#8220;.tar.gz&#8221;       =&gt;      &#8220;application/x-tgz&#8221;,<br />
&#8220;.tgz&#8221;          =&gt;      &#8220;application/x-tgz&#8221;,<br />
&#8220;.tar&#8221;          =&gt;      &#8220;application/x-tar&#8221;,<br />
&#8220;.zip&#8221;          =&gt;      &#8220;application/zip&#8221;,<br />
&#8220;.mp3&#8243;          =&gt;      &#8220;audio/mpeg&#8221;,<br />
&#8220;.m3u&#8221;          =&gt;      &#8220;audio/x-mpegurl&#8221;,<br />
&#8220;.wma&#8221;          =&gt;      &#8220;audio/x-ms-wma&#8221;,<br />
&#8220;.wax&#8221;          =&gt;      &#8220;audio/x-ms-wax&#8221;,<br />
&#8220;.ogg&#8221;          =&gt;      &#8220;application/ogg&#8221;,<br />
&#8220;.wav&#8221;          =&gt;      &#8220;audio/x-wav&#8221;,<br />
&#8220;.gif&#8221;          =&gt;      &#8220;image/gif&#8221;,<br />
&#8220;.jpg&#8221;          =&gt;      &#8220;image/jpeg&#8221;,<br />
&#8220;.jpeg&#8221;         =&gt;      &#8220;image/jpeg&#8221;,<br />
&#8220;.png&#8221;          =&gt;      &#8220;image/png&#8221;,<br />
&#8220;.xbm&#8221;          =&gt;      &#8220;image/x-xbitmap&#8221;,<br />
&#8220;.xpm&#8221;          =&gt;      &#8220;image/x-xpixmap&#8221;,<br />
&#8220;.xwd&#8221;          =&gt;      &#8220;image/x-xwindowdump&#8221;,<br />
&#8220;.css&#8221;          =&gt;      &#8220;text/css&#8221;,<br />
&#8220;.html&#8221;         =&gt;      &#8220;text/html&#8221;,<br />
&#8220;.htm&#8221;          =&gt;      &#8220;text/html&#8221;,<br />
&#8220;.js&#8221;           =&gt;      &#8220;text/javascript&#8221;,<br />
&#8220;.asc&#8221;          =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.c&#8221;            =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.cpp&#8221;          =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.log&#8221;          =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.conf&#8221;         =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.text&#8221;         =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.txt&#8221;          =&gt;      &#8220;text/plain&#8221;,<br />
&#8220;.dtd&#8221;          =&gt;      &#8220;text/xml&#8221;,<br />
&#8220;.xml&#8221;          =&gt;      &#8220;text/xml&#8221;,<br />
&#8220;.mpeg&#8221;         =&gt;      &#8220;video/mpeg&#8221;,<br />
&#8220;.mpg&#8221;          =&gt;      &#8220;video/mpeg&#8221;,<br />
&#8220;.mov&#8221;          =&gt;      &#8220;video/quicktime&#8221;,<br />
&#8220;.qt&#8221;           =&gt;      &#8220;video/quicktime&#8221;,<br />
&#8220;.avi&#8221;          =&gt;      &#8220;video/x-msvideo&#8221;,<br />
&#8220;.asf&#8221;          =&gt;      &#8220;video/x-ms-asf&#8221;,<br />
&#8220;.asx&#8221;          =&gt;      &#8220;video/x-ms-asf&#8221;,<br />
&#8220;.wmv&#8221;          =&gt;      &#8220;video/x-ms-wmv&#8221;,<br />
&#8220;.bz2&#8243;          =&gt;      &#8220;application/x-bzip&#8221;,<br />
&#8220;.tbz&#8221;          =&gt;      &#8220;application/x-bzip-compressed-tar&#8221;,<br />
&#8220;.tar.bz2&#8243;      =&gt;      &#8220;application/x-bzip-compressed-tar&#8221;<br />
)<br />
accesslog.filename          = &#8220;/var/lighttpd/log/lighttpd.access.log&#8221;<br />
url.access-deny             = ( &#8220;~&#8221;, &#8220;.inc&#8221;, &#8220;Filmes&#8221; )<br />
$HTTP["url"] =~ &#8220;\.pdf$&#8221; {<br />
server.range-requests = &#8220;disable&#8221;<br />
}<br />
static-file.exclude-extensions = ( &#8220;.php&#8221;, &#8220;.pl&#8221;, &#8220;.fcgi&#8221; )<br />
server.port                = 80<br />
server.pid-file            = &#8220;/var/run/lighttpd.pid&#8221;<br />
dir-listing.activate       = &#8220;enable&#8221;<br />
server.username            = &#8220;www&#8221;<br />
server.groupname           = &#8220;www&#8221;<br />
$HTTP["host"] =~ &#8220;^.*$&#8221; {<br />
server.document-root = &#8220;/usr/home/www/public_html/&#8221;<br />
url.access-deny             = ( &#8220;~&#8221;, &#8220;.inc&#8221;, &#8220;Filmes&#8221; )<br />
$HTTP["url"] =~ &#8220;/sarg&#8221; {<br />
dir-listing.activate = &#8220;disable&#8221;<br />
}<br />
$HTTP["url"] =~ &#8220;/server-*&#8221; {<br />
status.status-url = &#8220;/server-status&#8221;<br />
status.config-url = &#8220;/server-config&#8221;<br />
## auth.backend should be htdigest, htpasswd, plain or ldap<br />
# htdigest format &#8211; &#8220;user:Personal Directory:2686e356efa71a1e93a8b6b00e938e81b&#8221;<br />
#    use &#8216;./htdigest -c passwordfile realm username&#8217; # -c needed to create a new file<br />
#<br />
## plain format &#8211; &#8220;user:passwd&#8221;<br />
#<br />
## htpasswd format &#8211; &#8220;user:78a6sd786asd78&#8243;<br />
#    use &#8216;./htpasswd -c passwordfile username password&#8217; # -c needed to create a new file<br />
auth.backend               = &#8220;htdigest&#8221;<br />
auth.backend.htdigest.userfile = &#8220;/usr/home/www/.htdigest&#8221;<br />
auth.backend.htpasswd.userfile = &#8220;/usr/home/www/.htplain&#8221;<br />
auth.require = ( &#8220;&#8221; =&gt;<br />
(<br />
## method should be plain or digest<br />
# digest &#8211; md5 auth<br />
# plain &#8211; plain auth<br />
&#8220;method&#8221;  =&gt; &#8220;digest&#8221;,<br />
&#8220;realm&#8221;   =&gt; &#8220;Personal Directory&#8221;,<br />
&#8220;require&#8221; =&gt; &#8220;valid-user&#8221;<br />
)<br />
)<br />
}<br />
$HTTP["url"] =~ &#8220;^/personal/&#8221; {<br />
auth.debug = 2<br />
dir-listing.activate = &#8220;enable&#8221;<br />
auth.backend               = &#8220;htdigest&#8221;<br />
auth.backend.htdigest.userfile = &#8220;/usr/home/www/.htdigest&#8221;<br />
auth.backend.htpasswd.userfile = &#8220;/usr/home/www/.htplain&#8221;<br />
auth.require = ( &#8220;&#8221; =&gt;<br />
(<br />
&#8220;method&#8221;  =&gt; &#8220;digest&#8221;,<br />
&#8220;realm&#8221;   =&gt; &#8220;Personal Directory&#8221;,<br />
&#8220;require&#8221; =&gt; &#8220;valid-user&#8221;<br />
)<br />
)<br />
}<br />
}</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=54&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2009/04/10/using-lighttpd-as-web-server-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>Using PF as Firewall on FreeBSD</title>
		<link>http://bsdbrasil.wordpress.com/2009/04/10/using-pf-as-firewall-on-freebsd/</link>
		<comments>http://bsdbrasil.wordpress.com/2009/04/10/using-pf-as-firewall-on-freebsd/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 16:48:35 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=40</guid>
		<description><![CDATA[Recompile the kernel with PF support: device          pf device          pflog Editing pf.conf file: # Variables ext_if=&#8221;rl0&#8243; int_if=&#8221;vr0&#8243; port_tcp_out_to_in=&#8221;{ 22, 88, 143, 6891, 6892, 6893 }&#8221; port_udp_out_to_in=&#8221;{ 53 }&#8221; #Options set timeout { interval 10, frag 30 } set timeout { tcp.first 30, tcp.opening 120, tcp.established 86400 } set timeout { tcp.closing 30, tcp.finwait 15, tcp.closed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=40&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recompile the kernel with PF support:</p>
<blockquote><p>
device          pf<br />
device          pflog
</p></blockquote>
<p>Editing pf.conf file:</p>
<blockquote><p>
# Variables<br />
ext_if=&#8221;rl0&#8243;<br />
int_if=&#8221;vr0&#8243;<br />
port_tcp_out_to_in=&#8221;{ 22, 88, 143, 6891, 6892, 6893 }&#8221;<br />
port_udp_out_to_in=&#8221;{ 53 }&#8221;<br />
<br />
#Options<br />
set timeout { interval 10, frag 30 }<br />
set timeout { tcp.first 30, tcp.opening 120, tcp.established 86400 }<br />
set timeout { tcp.closing 30, tcp.finwait 15, tcp.closed 15 }<br />
set timeout { udp.first 60, udp.single 30, udp.multiple 60 }<br />
set timeout { icmp.first 20, icmp.error 10 }<br />
set timeout { other.first 60, other.single 30, other.multiple 60 }<br />
set timeout { adaptive.start 0, adaptive.end 0 }<br />
set limit { states 10000, frags 5000 }<br />
set loginterface none<br />
set optimization normal<br />
set block-policy drop<br />
set require-order yes<br />
set fingerprints &#8220;/etc/pf.os&#8221;<br />
<br />
# Packages normalization<br />
scrub in all<br />
<br />
# Nat / Binat / Redirects<br />
binat on $int_if from 192.168.2.2 to any -&gt; 200.xxx.xxx.xx<br />
nat on $ext_if from 192.168.2.0/24 to any -&gt; ($ext_if) # or 200.xxx.xxx.xx<br />
rdr on $int_if proto tcp from 192.168.2.0/24 to any port 80 -&gt; 127.0.0.1 port 3128<br />
<br />
# Rules<br />
block in log all<br />
pass out on $ext_if proto { tcp, udp, icmp } all keep state<br />
pass on lo0 from 127.0.0.1 to 127.0.0.1<br />
pass on vr0 from 192.168.2.0/24 to 192.168.2.0/24 keep state<br />
pass in  on $ext_if proto tcp from any to ($ext_if) port $port_tcp_out_to_in keep state<br />
pass in on $ext_if proto udp from any to ($ext_if) port $port_udp_out_to_in keep state
</p></blockquote>
<p>Loading PF rules:</p>
<blockquote><p>
~# pfctl -f /etc/pf.conf
</p></blockquote>
<p>Edit /etc/rc.conf to start PF on boot:</p>
<blockquote><p>
pf_enable=&#8221;YES&#8221;                  # Set to YES to enable packet filter (pf)<br />
pf_rules=&#8221;/etc/pf.conf&#8221;         # rules definition file for pf<br />
pf_program=&#8221;/sbin/pfctl&#8221;        # where the pfctl program lives<br />
pf_flags=&#8221;"                     # additional flags for pfctl<br />
pflog_enable=&#8221;YES&#8221;<br />
pflog_logfile=&#8221;/var/log/pflog&#8221;  # where pflogd should store the logfile<br />
pflog_program=&#8221;/sbin/pflogd&#8221;    # where the pflogd program lives<br />
pflog_flags=&#8221;"                  # additional flags for pflogd
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=40&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2009/04/10/using-pf-as-firewall-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>FreeBSD UFS Snapshot</title>
		<link>http://bsdbrasil.wordpress.com/2008/11/20/freebsd-ufs-snapshot/</link>
		<comments>http://bsdbrasil.wordpress.com/2008/11/20/freebsd-ufs-snapshot/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 00:15:02 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[ufs]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=36</guid>
		<description><![CDATA[Creating a simple file to show how it works: ~# echo &#8220;test 1&#8243; &#62; /tmp/test.txt Setting a directory where will be save the snapshot: ~# mkdir /tmp/.snap Creating the snapshot: ~# mount -u -o snapshot /tmp/.snap/snap_1 /tmp ~# ls -l /tmp/.snap/snap_1 Changing the content of file: ~# echo &#8220;test 2&#8243; &#62; /tmp/test.txt ~# ls -l [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=36&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em><span style="color:#999999;"><br />
Creating a simple file to show how it works:</span></em></p>
<blockquote><p>~# echo &#8220;test 1&#8243; &gt; /tmp/test.txt</p></blockquote>
<p><em><span style="color:#999999;"><br />
Setting a directory where will be save the snapshot:</span></em></p>
<blockquote><p>~# mkdir /tmp/.snap</p></blockquote>
<p><em><span style="color:#999999;"><br />
Creating the snapshot:</span></em></p>
<blockquote><p>~# mount -u -o snapshot /tmp/.snap/snap_1 /tmp<br />
~# ls -l /tmp/.snap/snap_1</p></blockquote>
<p><em><span style="color:#999999;"><br />
Changing the content of file:</span></em></p>
<blockquote><p>~# echo &#8220;test 2&#8243; &gt; /tmp/test.txt<br />
~# ls -l /tmp/test.txt</p></blockquote>
<p><em><span style="color:#999999;"><br />
Mounting the Snapshot:</span></em></p>
<blockquote><p>~# mdconfig -a -t vnode -u 1<br />
~# mount -o ro /dev/md1 /mnt/<br />
~# ls -l /mnt/test.txt /tmp/test.txt</p></blockquote>
<p><em><span style="color:#999999;"><br />
Showing the content of files:</span></em></p>
<blockquote><p>~# cat /mnt/test.txt /tmp/test.txt<br />
test 1<br />
test 2</p></blockquote>
<p><em><span style="color:#999999;"><br />
Finalizing:</span></em></p>
<blockquote><p>~# umount /mnt<br />
~# mdconfig -d -u 1<br />
~# rm /tmp/.snap/snap_1</p></blockquote>
<p><em><span style="color:#999999;"><br />
Yes, It really works!</span></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=36&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2008/11/20/freebsd-ufs-snapshot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>Working With Jail On FreeBSD</title>
		<link>http://bsdbrasil.wordpress.com/2008/06/20/working-with-jail-on-freebsd/</link>
		<comments>http://bsdbrasil.wordpress.com/2008/06/20/working-with-jail-on-freebsd/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 18:51:35 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[jail]]></category>
		<category><![CDATA[virtual server]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=5</guid>
		<description><![CDATA[We can use Jail to make virtual environment as virtual mail server and/or virtual web server. Well, lets make it works&#8230; We need create the environment: ~# mkdir /jail/jail01 Compiling the binary of the base system: ~# cd /usr/src ~# make buildworld installing the binaries: ~# make installworld DESTDIR=&#8221;/jail/jail01&#8243; Configure &#8220;/etc/rc.conf&#8221;: jail_enable=&#8221;YES&#8221; jail_list=&#8221;jail01&#8243; jail_jail01_rootdir=&#8221;/jail/jail01&#8243; jail_jail01_hostname=&#8221;jail01.domain&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=5&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em><span style="color:#999999;"><br />
We can use Jail to make virtual environment as virtual mail server and/or virtual web server.</span></p>
<p><span style="color:#999999;"><br />
Well, lets make it works&#8230;<br />
</span><br />
<span style="color:#999999;"><br />
We need create the environment:<br />
</span></em></p>
<blockquote><p>~# mkdir /jail/jail01</p></blockquote>
<p><span style="color:#999999;"><em><br />
Compiling the binary of the base system:<br />
</em></span></p>
<blockquote><p>
~# cd /usr/src<br />
~# make buildworld
</p></blockquote>
<p><span style="color:#999999;"><em><br />
installing the binaries:<br />
</em></span></p>
<blockquote><p>~# make installworld DESTDIR=&#8221;/jail/jail01&#8243;</p></blockquote>
<p><span style="color:#999999;"><em><br />
Configure &#8220;/etc/rc.conf&#8221;:<br />
</em></span></p>
<blockquote><p>jail_enable=&#8221;YES&#8221;<br />
jail_list=&#8221;jail01&#8243;<br />
jail_jail01_rootdir=&#8221;/jail/jail01&#8243;<br />
jail_jail01_hostname=&#8221;jail01.domain&#8221;<br />
jail_jail01_ip=&#8221;192.168.1.100&#8243;<br />
jail_jail01_interface=&#8221;fxp0&#8243;<br />
jail_jail01_exec_start=&#8221;/bin/sh /etc/rc&#8221;<br />
jail_jail01_exec_stop=&#8221;/bin/sh /etc/rc.shutdown&#8221;<br />
jail_jail01_devfs_enable=&#8221;YES&#8221;<br />
jail_jail01_fdescfs_enable=&#8221;YES&#8221;<br />
jail_jail01_procfs_enable=&#8221;YES&#8221;<br />
jail_jail01_mount_enable=&#8221;YES&#8221;<br />
jail_jail01_devfs_ruleset=&#8221;ruleset_name&#8221;<br />
jail_jail01_flags=&#8221;-l -U root&#8221;</p></blockquote>
<p><span style="color:#999999;"><em><br />
Starting the jail manually:<br />
</em></span></p>
<blockquote><p>~# jail /jail/jail01 jail01.domain 192.168.1.100 /bin/sh /bin/rc</p></blockquote>
<p><em><span style="color:#999999;"><br />
If all occour well a shell will be started from jail.<br />
</span><br />
<span style="color:#999999;"><br />
can also start the jail using&#8230;<br />
</span><br />
</em></p>
<blockquote><p>~# /etc/rc.d/jail start jail01</p></blockquote>
<p><span style="color:#999999;"><em><br />
stopping&#8230;<br />
</em></span></p>
<blockquote><p>~# /etc/rc.d/jail stop jail01</p></blockquote>
<p><span style="color:#999999;"><em><br />
Well I think is it.<br />
</em></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bsdbrasil.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bsdbrasil.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=5&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2008/06/20/working-with-jail-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>Working with GEOM</title>
		<link>http://bsdbrasil.wordpress.com/2008/01/25/working-with-gmirror/</link>
		<comments>http://bsdbrasil.wordpress.com/2008/01/25/working-with-gmirror/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 01:35:43 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[gconcat]]></category>
		<category><![CDATA[geli]]></category>
		<category><![CDATA[geom]]></category>
		<category><![CDATA[ggate]]></category>
		<category><![CDATA[ggatec]]></category>
		<category><![CDATA[ggated]]></category>
		<category><![CDATA[gmirror]]></category>
		<category><![CDATA[graid]]></category>
		<category><![CDATA[graid3]]></category>
		<category><![CDATA[gshsec]]></category>
		<category><![CDATA[gstrip]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/?p=4</guid>
		<description><![CDATA[[ original font: http://www.fug.com.br/content/view/119/60/ ] What&#8217;s GEOM? Is a framework where it works between kernel and disks, and it manage the input and output data on disks. It&#8217;s on level of kernel and act as a manager interface of data on disks to kernel, thus the GEOM is transparent to file system. The GEOM manipulate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=4&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span><em>[ original font: http://www.fug.com.br/content/view/119/60/ ]</em></span></p>
<p><span><em><br />
What&#8217;s GEOM? Is a framework where it works between kernel and disks, and it manage the input and output data on disks. It&#8217;s on level of kernel and act as a manager interface of data on disks to kernel, thus the GEOM is transparent to file system.</em></span></p>
<p><span><em><br />
The GEOM manipulate geometry, RAID and protection, using until criptografy on the disks.<br />
</em></span></p>
<p><span><em><br />
Functions:<br />
</em></span></p>
<p><strong>GELI</strong> &#8211; To cryptography data using AES, Blowfish or 3DES. [see <em>geli(8)</em>]</p>
<p><strong>GCONCAT</strong> &#8211; To concat disks in raw mode building a big disk. [see <em>gconcat(8)</em>]</p>
<p><strong>GSTRIP</strong> &#8211; To concat disks in balanced mode building a big disk. [see <em>gstrip(8)</em>]</p>
<p><strong>GMIRROR</strong> &#8211; Creating a mirror to other disk or slice. [see <em>gmirror(8)</em>]</p>
<p><strong>GRAID3</strong> &#8211; Building a RAID in mode 3 using &#8220;n&#8221; disks to concat and 1 to spare disk (parity bit). [see <em>graid3(8)</em>]</p>
<p><strong>GSHSEC</strong> &#8211;  Share the secret with other disk, without some these disks it doesn&#8217;t work. [see <em>gshsec(8)</em>]</p>
<p><strong>GGATEC</strong> and <strong>GGATED</strong> &#8211; share devices into the network. [see <em>ggatec(8)</em> and <em>ggated(8)</em>]</p>
<p>[NOT COMPLETED]</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bsdbrasil.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bsdbrasil.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=4&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2008/01/25/working-with-gmirror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
		<item>
		<title>Transparent Firewall With Redundant Bridge</title>
		<link>http://bsdbrasil.wordpress.com/2007/12/16/bridge-redundant-transparent-firewall/</link>
		<comments>http://bsdbrasil.wordpress.com/2007/12/16/bridge-redundant-transparent-firewall/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 21:59:34 +0000</pubDate>
		<dc:creator>screenblack</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[pf]]></category>
		<category><![CDATA[pfsync]]></category>
		<category><![CDATA[redundant bridge]]></category>

		<guid isPermaLink="false">http://bsdbrasil.wordpress.com/2007/12/16/bridge-redundant-transparent-firewall/</guid>
		<description><![CDATA[Creating a transparent firewall with redundant bridge using bridge+pf+pfsync were used OpenBSD 4.2 on test Using 4 network interfaces: fxp0 = internal net fxp1 (bridge0) = input traffic general fxp2 (bridge0) = output traffic general fxp3 = PFSync MACHINE 1 Configuring the internal net interface: # vi /etc/hostname.fxp0 inet 172.16.0.1 255.255.255.0 172.16.0.255 description &#8220;Internal Link&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=3&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#999999;"><em>Creating a transparent firewall with redundant bridge using bridge+pf+pfsync<br />
</em></span></p>
<p><span style="color:#999999;"><em><br />
were used OpenBSD 4.2 on test<br />
</em></span></p>
<p><span style="color:#999999;"><em><br />
Using 4 network interfaces:<br />
</em></span></p>
<blockquote><p><strong>fxp0</strong> = internal net<br />
<strong>fxp1</strong> (bridge0) = input traffic general<br />
<strong>fxp2</strong> (bridge0) = output traffic general<br />
<strong>fxp3</strong> = PFSync</p></blockquote>
<p><em><span style="text-decoration:underline;"><br />
MACHINE 1<br />
</span></em></p>
<p><span style="color:#999999;"><em><br />
Configuring the internal net interface:<br />
</em></span></p>
<blockquote><p># vi /etc/hostname.fxp0<br />
inet 172.16.0.1 255.255.255.0 172.16.0.255 description &#8220;Internal Link&#8221;</p></blockquote>
<p><span style="color:#999999;"><em><br />
Configuring the bridge (input/output) interface:<br />
</em></span></p>
<blockquote><p><em><br />
# vi /etc/hostname.fxp1<br />
media 100baseTX mediaopt full-duplex<br />
up<br />
</em></p>
<p><em><br />
# vi /etc/hostname.fxp2<br />
media 100baseTX mediaopt full-duplex<br />
up<br />
</em></p>
<p><em><br />
# vi /etc/bridgename.bridge0<br />
add fxp1<br />
add fxp2<br />
up<br />
</em></p></blockquote>
<p><em><span style="color:#999999;"><br />
Doing the same on another machine changing only the ips:<br />
</span></em></p>
<p><em><span style="text-decoration:underline;"><br />
MACHINE 2<br />
</span></em></p>
<p><em><span style="color:#999999;"><br />
Configuring the internal net interface:<br />
</span></em></p>
<blockquote><p><em><br />
# vi /etc/hostname.fxp0<br />
inet 172.16.0.2 255.255.255.0 172.16.0.255 description &#8220;Internal Link&#8221;<br />
</em></p></blockquote>
<p><span style="color:#999999;"><em><br />
Configuring the bridge (input/output) interface:<br />
</em></span></p>
<blockquote><p><em><br />
# vi /etc/hostname.fxp1<br />
media 100baseTX mediaopt full-duplex<br />
up<br />
</em></p>
<p><em><br />
# vi /etc/hostname.fxp2<br />
media 100baseTX mediaopt full-duplex<br />
up<br />
</em></p>
<p><em><br />
# vi /etc/bridgename.bridge0<br />
add fxp1<br />
add fxp2<br />
up<br />
</em></p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bsdbrasil.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bsdbrasil.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bsdbrasil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bsdbrasil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bsdbrasil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bsdbrasil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bsdbrasil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bsdbrasil.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bsdbrasil.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bsdbrasil.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bsdbrasil.wordpress.com&amp;blog=2335673&amp;post=3&amp;subd=bsdbrasil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bsdbrasil.wordpress.com/2007/12/16/bridge-redundant-transparent-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e0cf39686a75252c8729399fd8791a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">screenblack</media:title>
		</media:content>
	</item>
	</channel>
</rss>
