<?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>Jontas &#187; firewall</title>
	<atom:link href="http://www.f15ijp.com/tag/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +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>No shorewall compiler installed</title>
		<link>http://www.f15ijp.com/2010/03/23/no-shorewall-compiler-installed/</link>
		<comments>http://www.f15ijp.com/2010/03/23/no-shorewall-compiler-installed/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 11:12:49 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[shorewall]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=421</guid>
		<description><![CDATA[If you run into the error &#8220;No shorewall compiler installed&#8221; (for instance using shorewall check) then there is a quick fix for this. The fix is to install shorewall-perl (using &#8220;apt-get install shorewall-perl&#8221;). Then you should be set.]]></description>
			<content:encoded><![CDATA[<p>If you run into the error &#8220;No shorewall compiler installed&#8221; (for instance using shorewall check) then there is a quick fix for this.<br />
The fix is to install shorewall-perl (using &#8220;apt-get install shorewall-perl&#8221;).</p>
<p>Then you should be set.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/03/23/no-shorewall-compiler-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly configure shorewall on Debian</title>
		<link>http://www.f15ijp.com/2010/02/05/quickly-configure-shorewall-on-debian/</link>
		<comments>http://www.f15ijp.com/2010/02/05/quickly-configure-shorewall-on-debian/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 16:20:44 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[shorewall]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=278</guid>
		<description><![CDATA[By definition shorewall is not a firewall, it is a way to (more) easily configure iptables to work as a firewall. First install shorewall &#8220;$ apt-get intall shorewall&#8221; Enter /etc/shorewall Copy the example files from /usr/share/doc/shorewall-common/default-config/ (might also be located in /usr/share/doc/shorewall/default-config/) &#8220;$ cp /usr/share/doc/shorewall-common/default-config/* .&#8221; Edit the files and enter the data that your [...]]]></description>
			<content:encoded><![CDATA[<p>By definition shorewall is not a firewall, it is a way to (more) easily configure iptables to work as a firewall.</p>
<ul>
<li>First install shorewall &#8220;$ apt-get intall shorewall&#8221;</li>
<li>Enter /etc/shorewall</li>
<li>Copy the example files from /usr/share/doc/shorewall-common/default-config/ (might also be located in /usr/share/doc/shorewall/default-config/) &#8220;$ cp /usr/share/doc/shorewall-common/default-config/* .&#8221;</li>
<li>Edit the files and enter the data that your system has
<ul>
<li>First create zones &#8220;$ nano zones&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ZONE   TYPE            OPTIONS         IN OPTIONS                OUT OPTIONS</span>
fw      firewall
net     ipv4
vpn     ipv4</pre></div></div>

</li>
<li>Connect zones with interfaces&#8221;$ nano interfaces&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ZONE   INTERFACE       BROADCAST       OPTIONS</span>
net     eth0            detect          tcpflags,blacklist,dhcp
vpn	tun0		-</pre></div></div>

</li>
<li>Create policies &#8220;$ nano policy&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#SOURCE         DEST            POLICY          LOG LEVEL       LIMIT:BURST</span>
fw              net             ACCEPT
vpn             net             ACCEPT
vpn             fw              ACCEPT
fw              vpn             ACCEPT
net             all             DROP            info
all             all             DROP            info</pre></div></div>

</li>
<li>Create rules &#8220;$ nano rules&#8221;

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ACTION SOURCE          DEST            PROTO   DEST    SOURCE          ORIGINAL        RATE            USER/</span>
<span style="color: #666666; font-style: italic;">#                                               PORT(S) PORT(S)         DEST            LIMIT           GROUP</span>
ACCEPT          net             fw             tcp     <span style="color: #000000;">22</span> <span style="color: #666666; font-style: italic;"># ssh</span>
ACCEPT          net             fw             tcp     <span style="color: #000000;">80</span> <span style="color: #666666; font-style: italic;"># web</span></pre></div></div>

</li>
<li>Verify that the rules are fine &#8220;$ shorewall check&#8221;</li>
<li>Edit /etc/default/shorewall and set startup to 1

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;"># prevent startup with default configuration</span>
<span style="color: #666666; font-style: italic;"># set the following varible to 1 in order to allow Shorewall to start</span>
&nbsp;
<span style="color: #007800;">startup</span>=<span style="color: #000000;">1</span></pre></div></div>

</li>
<li>Start the firewall &#8220;$ /etc/init.d/shorewall start&#8221; </li>
</ul>
</li>
</ul>
<p>If you later decide to update rules, zones etc run &#8220;$ /etc/init.d/shorewall restart&#8221; to load the changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/05/quickly-configure-shorewall-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

