<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Hacking Life - Network</title>
    <link>http://www.kungfu-hackers.net/</link>
    <description>Random Thoughts</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.2 - http://www.s9y.org/</generator>
    <pubDate>Fri, 22 Jun 2007 13:29:50 GMT</pubDate>

    <image>
        <url>http://www.kungfu-hackers.net/templates/competition/img/s9y_banner_small.png</url>
        <title>RSS: Hacking Life - Network - Random Thoughts</title>
        <link>http://www.kungfu-hackers.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>How to summarize your network traffic</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/94-How-to-summarize-your-network-traffic.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/94-How-to-summarize-your-network-traffic.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=94</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=94</wfw:commentRss>
    

    <author>nospam@example.com (Stefan Kraatz)</author>
    <content:encoded>
    In case you want to create firewall rules and don&#039;t know what type of traffic you have in your network, you will need to find out by sniffing it off the wire. &lt;a href=&quot;http://isc.sans.org/diary.html?storyid=3018&amp;rss&quot; &gt;This article&lt;/a&gt; outlines a very basic, but also very easy method to summarise your network traffic by looking at the TCP SYN ACK packets. Obviously, this doesn&#039;t catch everything you might have in your network, but if you need more, you can easily adapt this method to fit to your requirements. 
    </content:encoded>

    <pubDate>Fri, 22 Jun 2007 13:46:23 +0200</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/94-guid.html</guid>
    
</item>
<item>
    <title>Happy Birthday</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/87-Happy-Birthday.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/87-Happy-Birthday.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=87</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    

    <author>nospam@example.com (Stefan Kraatz)</author>
    <content:encoded>
    A while ago, I installed an OpenBSD gateway router for accessing a private network via a single IP address, which inspired me to write this &lt;a href=&quot;http://www.kungfu-hackers.net/index.php?/articles/ssh.html&quot; &gt;article&lt;/a&gt;. Today, this router is up and running flawlessly for 100 days. This is, in my mind, worth noticing. Thanks to the OpenBSD team for providing me with such a decent operating system, that makes my life as a networker so much easier.&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
# uname -a&lt;br /&gt;
OpenBSD gateway 4.0 GENERIC#625 sparc&lt;br /&gt;
# uptime&lt;br /&gt;
12:07PM  up 100 days, 23:07, 1 user, load averages: 0.13, 0.10, 0.08&lt;br /&gt;
&lt;/blockquote&gt; 
    </content:encoded>

    <pubDate>Fri, 18 May 2007 12:14:42 +0200</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/87-guid.html</guid>
    
</item>
<item>
    <title>getting ip calculation right</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/71-getting-ip-calculation-right.html</link>
            <category>Network</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/71-getting-ip-calculation-right.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=71</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    

    <author>nospam@example.com (Stefan Kraatz)</author>
    <content:encoded>
    &lt;a href=&quot;http://penguincares.no-ip.org:9090/mylinuxtips/?p=494&quot; &gt;This&lt;/a&gt; is a nice article, explaining the fundamental calculations needed, when dealing with ip addresses and subnets. 
    </content:encoded>

    <pubDate>Tue, 06 Mar 2007 15:01:18 +0100</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/71-guid.html</guid>
    
</item>
<item>
    <title>Packet Crafting for Firewall &amp; IDS Audits</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/50-Packet-Crafting-for-Firewall-IDS-Audits.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/50-Packet-Crafting-for-Firewall-IDS-Audits.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=50</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=50</wfw:commentRss>
    

    <author>nospam@example.com (Stefan Kraatz)</author>
    <content:encoded>
    This article is a very nice introduction to &lt;strong&gt;hping&lt;/strong&gt; and it&#039;s use for testing firewall rules and intrusion detection. I would recommend reading it to anybody, with interest in this topic.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.securityfocus.com/infocus/1787&quot; &gt;Article Part 1&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.securityfocus.com/infocus/1791&quot; &gt;Article Part 2&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 21 Feb 2007 13:58:40 +0100</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/50-guid.html</guid>
    
</item>
<item>
    <title>using SSH for loads of cool stuff</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/4-using-SSH-for-loads-of-cool-stuff.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/4-using-SSH-for-loads-of-cool-stuff.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=4</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=4</wfw:commentRss>
    

    <author>nospam@example.com (The Kungfu Hacker)</author>
    <content:encoded>
    I have written a small article on SSH, that will be more and more expanded when I have time, or learn something new. Check it out &lt;a href=&quot;http://www.kungfu-hackers.net/index.php?/articles/ssh.html&quot;  title=&quot;Article on SS&quot;&gt;here&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;Updated: &lt;/strong&gt;&lt;br /&gt;
I have amended the article with a picture for illustration purpose and put in some additional notes. 
    </content:encoded>

    <pubDate>Tue, 06 Feb 2007 14:04:00 +0100</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/4-guid.html</guid>
    
</item>
<item>
    <title>manage your pf firewall</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/18-manage-your-pf-firewall.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/18-manage-your-pf-firewall.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=18</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    

    <author>nospam@example.com (The Kungfu Hacker)</author>
    <content:encoded>
    Manage OpenBSDs firewall with Firewall Builder&lt;br /&gt;
Dru Lavigne, an exerienced administrator and trainer for topics related to unix has written a good article about  using fwbuilder to create a desktop firewall.  The article you will find &lt;a href=&quot;http://www.onlamp.com/pub/a/bsd/2006/08/03/FreeBSDBasics.html?page=1&quot;  title=&quot;using fwbuilder for pf&quot;&gt;here&lt;/a&gt; and my amendments to make in work in OpenBSD &lt;a href=&quot;http://www.kungfu-hackers.net/index.php?/archives/7-OpenBSD-desktop-firewall.html&quot;  title=&quot;kungfu hackers article amendments&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 26 Jan 2007 11:05:52 +0100</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/18-guid.html</guid>
    
</item>
<item>
    <title>Sample Configuration of a pf Server Firewall</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/8-Sample-Configuration-of-a-pf-Server-Firewall.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/8-Sample-Configuration-of-a-pf-Server-Firewall.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=8</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    

    <author>nospam@example.com (The Kungfu Hacker)</author>
    <content:encoded>
    &lt;pre&gt;

 ##      $OpenBSD: pf.conf,v 1.31 2006/01/30 12:20:31 camield Exp $
 #
 # See pf.conf(5) and /usr/share/pf for syntax and examples.
 # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
 # in /etc/sysctl.conf if packets are to be forwarded between interfaces.

 
 #pass quick on $int_if
 #antispoof quick for { lo $int_if }

 
 server_if=&quot;nfe0&quot;
 maint_if=&quot;le0&quot;

 maintenance = &quot;{ssh, www }&quot;
 user_tcp_services = &quot;{ www, afpovertcp }&quot;
 user_udp_services = &quot;{ afpovertcp }&quot;

 nice_hosts = &quot;{ a.a.a.0/25, b.b.b.b }&quot;
 bad_hosts = &quot;{ a.a.a.2 }&quot;
 maintenance_hosts = &quot;{ c.c.c.1 }&quot;
 
 set skip on lo
 scrub in

 block in log
 block in on $server_if from $bad_hosts to any

 pass in quick on $server_if proto tcp from $nice_hosts to ($ext_if) port $user_tcp_services keep state
 pass in quick on $server_if proto udp from $nice_hosts to ($ext_if) port $user_udp_services 
 
 pass in quick on $maint_if proto tcp from $maintenance_hosts to ($maint_if) port $maintenance keep state

 pass out keep state
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.kungfu-hackers.net/download/pf.conf&quot; &gt;download sample config&lt;/a&gt; 
    </content:encoded>

    <pubDate>Mon, 22 Jan 2007 10:06:01 +0100</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/8-guid.html</guid>
    
</item>
<item>
    <title>(OpenBSD) desktop firewall</title>
    <link>http://www.kungfu-hackers.net/index.php?/archives/7-OpenBSD-desktop-firewall.html</link>
            <category>Network</category>
            <category>Unix</category>
    
    <comments>http://www.kungfu-hackers.net/index.php?/archives/7-OpenBSD-desktop-firewall.html#comments</comments>
    <wfw:comment>http://www.kungfu-hackers.net/wfwcomment.php?cid=7</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.kungfu-hackers.net/rss.php?version=2.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    

    <author>nospam@example.com (The Kungfu Hacker)</author>
    <content:encoded>
    This posting is related to an entry in the BSD DEV Center. It contains the neccessary amendments to the original article, in order to make it work for me, running OpenBSD&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; installing the packet fwbuilder-2.0.7p0:&lt;br /&gt;
&lt;pre&gt;
#pkg_add fwbuilder-2.0.7p0.tgz
&lt;/pre&gt;&lt;br /&gt;
&lt;/strong&gt; ssh access to localhost has to be configured like this:&lt;br /&gt;
&lt;pre&gt;
src			dst			srvc 
server_wall:lo0:ip	server_wall:lo0:ip	ssh 
&lt;/pre&gt;&lt;br /&gt;
* the final rules look like this : &lt;br /&gt;
&lt;pre&gt;
# pfctl -s rules 
pass in quick inet proto tcp from 127.0.0.1 to 127.0.0.1 port = ssh keep state \
label &quot;RULE 0 -- ACCEPT &quot;
pass out quick inet proto tcp from 127.0.0.1 to 127.0.0.1 port = ssh keep state \
label &quot;RULE 0 -- ACCEPT &quot;
pass out quick inet from &lt;id44E8A3C9.1&gt; to any keep state label &quot;RULE 2 -- ACCEPT &quot;
block drop in quick inet all label &quot;RULE 3 -- DROP &quot;
block drop out quick inet all label  &quot;RULE 3 -- DROP &quot;
block drop in quick inet all label &quot;RULE 10000 -- DROP &quot;
block drop out quick inet all label &quot;RULE 10000 -- DROP &quot;&lt;/pre&gt;&lt;br /&gt;
Backslashes are just there because of the formatting, they would not be included in the command output.  &lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 18 Jan 2007 13:40:56 +0100</pubDate>
    <guid isPermaLink="false">http://www.kungfu-hackers.net/index.php?/archives/7-guid.html</guid>
    
</item>

</channel>
</rss>