<?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>James Nachbar&#039;s Blog &#187; Ubuntu</title>
	<atom:link href="http://www.nachbar.name/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nachbar.name/blog</link>
	<description>Programming and Plastic Surgery</description>
	<lastBuildDate>Thu, 19 Apr 2012 15:54:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Ubuntu Server Configuration</title>
		<link>http://www.nachbar.name/blog/2009/03/01/ubuntu-server-configuration/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-server-configuration</link>
		<comments>http://www.nachbar.name/blog/2009/03/01/ubuntu-server-configuration/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 21:49:14 +0000</pubDate>
		<dc:creator>nachbar</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://nachbar.name/blog/?p=57</guid>
		<description><![CDATA[A few random notes. To start the iptables rules for the firewall on startup, first, create the firewall script, adding the iptables rules one by one, and save the rules with: iptables-save > /etc/default/iptables Then, to load the rules automatically with the new Upstart init system, I just create a new file, /etc/event.d/iptables : # [...]]]></description>
			<content:encoded><![CDATA[<p>A few random notes.</p>
<p>To start the iptables rules for the firewall on startup, first, create the firewall script, adding the iptables rules one by one, and save the rules with:</p>
<p><code><br />
iptables-save > /etc/default/iptables<br />
</code></p>
<p>Then, to load the rules automatically with the new Upstart init system, I just create a new file, /etc/event.d/iptables :</p>
<p><code><br />
# Script to start firewall<br />
# Save rules with iptables-save > /etc/default/iptables</p>
<p>start on runlevel 1<br />
start on runlevel 2<br />
start on runlevel 3<br />
start on runlevel 4<br />
start on runlevel 5</p>
<p>exec /sbin/iptables-restore < /etc/default/iptables<br />
</code></p>
<p>That way, you aren’t changing any existing files, just adding the new one. On every reboot, the iptables rules get loaded. You can check that they are loaded with:</p>
<p><code><br />
sudo /sbin/iptables-save | less<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nachbar.name/blog/2009/03/01/ubuntu-server-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

