<?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>Ronald en Hester in Australië en Azië &#187; Tech</title>
	<atom:link href="http://australie.rvandenblink.nl/category/tech/feed" rel="self" type="application/rss+xml" />
	<link>http://australie.rvandenblink.nl</link>
	<description></description>
	<lastBuildDate>Fri, 20 Aug 2010 21:08:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VIM-cheatsheet</title>
		<link>http://australie.rvandenblink.nl/2006/03/29/vim-cheatsheet1143640801</link>
		<comments>http://australie.rvandenblink.nl/2006/03/29/vim-cheatsheet1143640801#comments</comments>
		<pubDate>Wed, 29 Mar 2006 14:00:01 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.rvandenblink.nl/?p=50</guid>
		<description><![CDATA[Voor iedere Vi/Vim gebruiker: graphical vi/vim Cheat Sheet and Tutorial]]></description>
			<content:encoded><![CDATA[<p>Voor iedere Vi/Vim gebruiker:<br />
<a href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html">graphical vi/vim Cheat Sheet and Tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://australie.rvandenblink.nl/2006/03/29/vim-cheatsheet1143640801/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a snort enabled gateway</title>
		<link>http://australie.rvandenblink.nl/2006/02/13/building-a-snort-enabled-gateway</link>
		<comments>http://australie.rvandenblink.nl/2006/02/13/building-a-snort-enabled-gateway#comments</comments>
		<pubDate>Mon, 13 Feb 2006 16:59:12 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.rvandenblink.nl/?p=44</guid>
		<description><![CDATA[Today I build a snort enabled gateway, the risk of getting the Windows XP workstations infected by some kind of exploit or virus is getting bigger and bigger. We all have the zero-day WMF-exploit fresh in mind and the risk of getting infected by some foolish Windows exploit is just too big. Situation We don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Today I build a snort enabled gateway, the risk of getting the Windows XP workstations infected by some kind of exploit or virus is getting bigger and bigger. We all have the zero-day WMF-exploit fresh in mind and the risk of getting infected by some foolish Windows exploit is just too big.</p>
<p><strong>Situation</strong><br />
We don&#8217;t want our gateway to do anything with non-infected data, so we are going to build a transparent (bridging) gateway, knownas a bridge. A bridge passes all the traffic on OSI-layer 2 between two interfaces, so the clients aren&#8217;t able to see the trafficgoing over two interfaces.<br />
On the bridge we&#8217;re installing snort_inline, a modified version of snort able to drop maliscious traffic with iptables.</p>
<p><strong> Installing the bridge</strong><br />
If you know what you are doing, creating a bridge isn&#8217;t too difficult. To create a bridge between two interfaces (e.g. eth0 and eth1) you need the bridge-utils. In Debian it&#8217;s as easy as apt-get install bridge-utils, but I&#8217;m sure that your distribution has itpackaged. After installing the bridge-utils it is as easy as these commands:</p>
<blockquote><p>
#create the bridge<br />
brctl addbr br0<br />
#add the interfaces<br />
brctl addif eth0<br />
brctl addif eth1
</p></blockquote>
<p>Notice that we&#8217;re not giving the bridge an ip address, because we are going to connect this system directly to the Internet.</p>
<p><strong> Installing snort_inline</strong><br />
Before we install snort_inline, we need to install libpcap, libnet, libipq  and libpcre. Also make sure you have the iptables development headers in place. To install snort_inline it is as simple as doing the famous three-command sequence (configure, make, make install) but make sure you solve reported problems first <img src='http://australie.rvandenblink.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
After installation you need to edit the configfile by hand, look at the examples in the source-directory (some hints: var RULE_PATH, log stuff etc).</p>
<p><strong>Integrading snort_inline and iptables</strong><br />
Before you can use snort_inline to monitor (and block) you&#8217;re traffic you need to integrate it with iptables. We do this with theip_queue module, so you need to modprobe the module first. In case your kernel doesn&#8217;t provide ip_queue you are in bad luck, you need to recompile the kernel to include ip_queue&#8230;.<br />
After loading the module it is as easy as the following rule in iptables:</p>
<blockquote><p>
iptables -I FORWARD -p tcp &#8211;dport 80 -j QUEUE
</p></blockquote>
<p>The line above pushes all the traffic from and too port 80 in a queue. If you try to surf to the Internet with a box behind the bridge, it won&#8217;t work.<br />
Now we start snort_inline:</p>
<blockquote><p>
snort_inline -c /etc/snort_inline/snort_inline.conf -Q -N -t /var/log/snort/ -v
</p></blockquote>
<p>You should be able to surf again.</p>
<p><strong>Converting rules</strong><br />
Normaly snort has ALERT rules, it just alerts you when maliscious traffic is detected. Because we aren&#8217;t looking at our logs all the time, we&#8217;re going to DROP the traffic if it is maliscious. In the source-directory you see a directory rules, copy this directory to your configdirectory (normaly this is /etc/snort). Make a backup off the directory and run the following script on the backup:</p>
<blockquote><p>
#!/bin/bash<br />
#converting ALERT rules to DROP rules<br />
for file in $(ls -1 *.rules)<br />
do<br />
sed -e &#8216;s:^alert:drop:g&#8217; ${file} &gt; ${file}.new<br />
                mv ${file}.new ${file} -f<br />
                done
                </p></blockquote>
<p>                Make sure you alter your configfile to load the adjusted rules!</p>
<p>                <strong> That&#8217;s all folks!</strong><br />
                Remember, all the traffic to port 80 is going through snort_inline, so if snort_inline is stopped the traffic will stop!<br />
                To reverse this project, just remove ip_queue and the iptables rules you use to push the traffic through snort_inline!</p>
]]></content:encoded>
			<wfw:commentRss>http://australie.rvandenblink.nl/2006/02/13/building-a-snort-enabled-gateway/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iBook geupdate en de rumors beginnen alweer&#8230;.</title>
		<link>http://australie.rvandenblink.nl/2005/08/03/ibook-geupdate-en-de-rumors-beginnen-alweer</link>
		<comments>http://australie.rvandenblink.nl/2005/08/03/ibook-geupdate-en-de-rumors-beginnen-alweer#comments</comments>
		<pubDate>Tue, 02 Aug 2005 22:47:30 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.rvandenblink.nl/?p=31</guid>
		<description><![CDATA[Want, en ja als we dat checken klopt het wel, de PowerBook is end-off-life-cycle, als je van gemiddelden uitgaat that is. Alleen was de Mac mini nu niet geupdate omdat er eigenlijk te weinig geheugen inzat? En de iBook moest toch ook nodig naar de 512MB&#8230;. Dus ondanks dat Macrumors roept dat de PowerBook end-off-life [...]]]></description>
			<content:encoded><![CDATA[<p>Want, en ja als we dat checken klopt het wel, de PowerBook is end-off-life-cycle, als je van gemiddelden uitgaat that is. Alleen was de Mac mini nu niet geupdate omdat er eigenlijk te weinig geheugen inzat? En de iBook moest toch ook nodig naar de 512MB&#8230;. Dus ondanks dat <a href="http://buyersguide.macrumors.com/">Macrumors</a> roept dat de PowerBook end-off-life zou zijn, denk ik persoonlijk dat we nog wel even kunnen blijven wachten.<br />
Maar we zullen het zien, als er een update komt dan zou het nu moeten gebeuren, of in ieder geval in augustus&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://australie.rvandenblink.nl/2005/08/03/ibook-geupdate-en-de-rumors-beginnen-alweer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bull AIX freeware site</title>
		<link>http://australie.rvandenblink.nl/2005/07/30/bull-aix-freeware-site</link>
		<comments>http://australie.rvandenblink.nl/2005/07/30/bull-aix-freeware-site#comments</comments>
		<pubDate>Sat, 30 Jul 2005 00:48:26 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.rvandenblink.nl/?p=29</guid>
		<description><![CDATA[Spelen met een RS6000 van IBM is leuk, alleen die software is zo veroudert&#8230;. Wat ga je daar nou aan doen? Nou dan ga je dus naar deze site en kom je een hele bak met software tegen die je zo kan installeren (mits je natuurlijk genoeg vrije ruimte hebt). Hoe je dat doet? Gewoon [...]]]></description>
			<content:encoded><![CDATA[<p>Spelen met een RS6000 van IBM is leuk, alleen die software is zo veroudert&#8230;. Wat ga je daar nou aan doen? Nou dan ga je dus naar <a href="http://www.bullfreeware.com/">deze site</a> en kom je een hele bak met software tegen die je zo kan installeren (mits je natuurlijk genoeg vrije ruimte hebt). Hoe je dat doet? Gewoon heel simpel, je download van <a href="http://www.bullfreeware.com/listaix43.html">de juiste pagina (in dit geval voor AIX 4.3</a>) een bestand met extentie .exe, je chmod +x hem en voert hem uit. Daarna log je in als root (of je su-ed) verwijdert eventuele .toc bestanden en open je smit (oeh, nice name) met het commando install_latest erna (smit install_latest). Als er gevraagd wordt om de INPUT directory dan kies je voor de plek waar je het spul uitgepakt hebt en drukt op enter.<br />
Na het genereren van de lijst rammel je op F4 en selecteer je de bedoelde package met F7. Nu installeert smit speciaal voor jou de applicatie. Om de app te kunnen gebruiken zal je /usr/local/bin in je $PATH moeten hebben. Op AIX kan je dat voor alle users doen in /etc/environment. Als laatste zal je in /etc/profile nog export MANPATH=/usr/share/man:/usr/local/man:/uman: willen toevoegen.</p>
]]></content:encoded>
			<wfw:commentRss>http://australie.rvandenblink.nl/2005/07/30/bull-aix-freeware-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

