<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=1713&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Iptables with Devuan]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=1713</link>
		<description><![CDATA[The most recent posts in Iptables with Devuan.]]></description>
		<lastBuildDate>Sun, 19 Nov 2017 23:13:23 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6367#p6367</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>...<br /><span class="bbu">iptables-persistent</span> instead enshrines the path names <span class="bbu">/etc/iptables/rules.v4</span> and <span class="bbu">/etc/iptables/rules.v6</span> as being its &quot;master files&quot;.</p></div></blockquote></div><p>Thanks. Good to know <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Regarding the &quot;microHOWTO&quot; <span class="bbu"><a href="http://www.microhowto.info/howto/make_the_configuration_of_iptables_persistent_on_debian.html" rel="nofollow">iptables-persistent</a></span> guide and just for the record, the service itself is now named &#039;netfilter-persistent&#039;. Package name is still &#039;iptables-persistent&#039;.</p>]]></description>
			<author><![CDATA[dummy@example.com (Monti)]]></author>
			<pubDate>Sun, 19 Nov 2017 23:13:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6367#p6367</guid>
		</item>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6366#p6366</link>
			<description><![CDATA[<p>The direct answer is &quot;No&quot;. The notion of &quot;master file&quot; only concerns that example, and refers to the &quot;salient path name&quot; encoded into the automatic setup script. (As you know, that example is not ideal in my view, with the automatic setup attached to and repeated with any and all interface(s) coming up.)</p><p><span class="bbu">iptables-persistent</span> instead enshrines the path names <span class="bbu">/etc/iptables/rules.v4</span> and <span class="bbu">/etc/iptables/rules.v6</span> as being its &quot;master files&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 19 Nov 2017 22:53:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6366#p6366</guid>
		</item>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6365#p6365</link>
			<description><![CDATA[<p>Forgot to ask about &quot;master&quot; file.</p><p>Over at Debian Wiki <a href="https://wiki.debian.org/iptables" rel="nofollow">https://wiki.debian.org/iptables</a> it says:</p><div class="quotebox"><blockquote><div><p>&quot;...save the new rules to the master iptables file&quot;</p></div></blockquote></div><p>A bit confusing, so I have to ask; Is this some specific temporary master file read by netfilter?</p>]]></description>
			<author><![CDATA[dummy@example.com (Monti)]]></author>
			<pubDate>Sun, 19 Nov 2017 22:37:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6365#p6365</guid>
		</item>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6364#p6364</link>
			<description><![CDATA[<p>Thanks a lot for your prompt reply and support <a href="https://dev1galaxy.org/profile.php?id=22" rel="nofollow">ralph.ronnquist</a></p><p>Appreciate the iptables-persistent package. Having a service taking care of it make sense to me. Great.</p><div class="quotebox"><blockquote><div><p>although it does introduce a (confusion?) layer between the ufw rules and the actual iptables rules.</p></div></blockquote></div><p>Yes, agree. To see if I could understand how ufw is working I ended up with confusion <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (Monti)]]></author>
			<pubDate>Sun, 19 Nov 2017 22:27:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6364#p6364</guid>
		</item>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6338#p6338</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>So I can focus on how to setup rules, could you please come up with a suggestion on how to do loading of rules the best way with Devuan? Just to have something running I have temporary installed gufw/ufw.</p></div></blockquote></div><p>There are &quot;wheels&quot; of many colours for this <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> <span class="bbu">ufw</span> isn&#039;t too bad although it does introduce a (confusion?) layer between the <span class="bbu">ufw rules</span> and the actual <span class="bbu">iptables rules</span>. But I&#039;m sure you&#039;ll easily find proponents talking more warmly about <span class="bbu">ufw</span>.</p><p>I&#039;m happy with raw <span class="bbu">iptables</span>, so I install and use the <span class="bbu"><a href="http://www.microhowto.info/howto/make_the_configuration_of_iptables_persistent_on_debian.html" rel="nofollow">iptables-persistent</a></span> package.</p><div class="quotebox"><blockquote><div><p>Regarding Iptables How-To&#039;s that are out there, are there any differences between a systemd system and Devuan that I need to be aware of?</p></div></blockquote></div><p> Not really. Of course, for those kiddies, the &quot;word&quot; <em>iptables</em> has got the extra meaning of being the name of a service in addition to being the program for manipulating the kernel tables.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 19 Nov 2017 01:27:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6338#p6338</guid>
		</item>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6334#p6334</link>
			<description><![CDATA[<p>Thank you very much for your lengthy reply @ralph.ronnquist and sorry for my late follow up. I have been occupied with Wicd and Wi-Fi and thought I would try to come to a conclusion there first.</p><p>Regarding what you told me about attaching to the event of bringing up an interface, I was clearly not aware of what I was doing.</p><p>So I can focus on how to setup rules, could you please come up with a suggestion on how to do loading of rules the best way with Devuan? Just to have something running I have temporary installed gufw/ufw.</p><p>Regarding Iptables How-To&#039;s that are out there, are there any differences between a systemd system and Devuan that I need to be aware of?</p>]]></description>
			<author><![CDATA[dummy@example.com (Monti)]]></author>
			<pubDate>Sat, 18 Nov 2017 23:59:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6334#p6334</guid>
		</item>
		<item>
			<title><![CDATA[Re: Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6159#p6159</link>
			<description><![CDATA[<p>Hmm, by attaching the loading of table rules to the event(s) of bringing up an interface, you probably make life a little bit difficult for yourself. It&#039;s not &quot;wrong&quot; per se, and probably the only major complication is that in a typical set up, the network interfaces are brought up by <span class="bbu">udev</span> in the pre-pivot boot up stage.</p><p>If that is your case, you will need to ensure that the rules files are included in your <span class="bbu">initrd</span>, as well as the <span class="bbu">iptables-restore</span> program and its dependencies (libraries). (I believe the <span class="bbu">if-pre-up.d</span> script gets pulled in to the <span class="bbu">initrd</span> automagically when remaking <span class="bbu">initrd</span>).</p><p>Or alternatively, make that <em>not</em> be your case by <em>not</em> letting <span class="bbu">udev</span> start networking. I.e., remove all &quot;allow-hotplug&quot; phrases from <span class="bbu">/etc/nework/interfaces</span>. Possibly use &quot;auto &lt;if&gt;&quot; phrases instead, which tells the post-pivot networking init script that &quot;these are yours, mate&quot;, or if then you also have a separate network manager, you&#039;ll need to leave all song and dance to it.</p><p>EDIT: I see from your other post that you&#039;re using <span class="bbu">wicd</span>, so my thought about <span class="bbu">udev</span> is probably not applicable here. Maybe it&#039;s enough to make your script exit more promptly when <span class="bbu">lo</span> is brought up; or even tie it explicitly to <span class="bbu">$IFACE=wlan0</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 10 Nov 2017 22:26:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6159#p6159</guid>
		</item>
		<item>
			<title><![CDATA[Iptables with Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6158#p6158</link>
			<description><![CDATA[<p>Hi guys</p><p>After installing Devuan I was eager to find out how to configure Iptables so I could get an ok simple desktop configuration.</p><p>I have used FreeBSD for a while now and are starting pf in /etc/rc.conf, but if I am understanding correctly now Iptables is a way of handling rules for telling netfilter, which is running all the time no matter what, in the kernel on how to handle network traffic. So no need for any entry in a rc.-file. Is this correct?</p><p>As a first timer I used this guide: <a href="https://wiki.debian.org/iptables" rel="nofollow">https://wiki.debian.org/iptables</a></p><p>When it comes to loading rules I have understood it as such that one have&#160; to make a shell script that executes on every reboot, where this script tells which file is the custom iptables rules file. Otherwise there will be no loading of rules. Is this correct?</p><p>The Iptables rules file can be named what ever and be located where ever as long as the path in shell script points to it. Is this also correct?</p><p>I used the commands:</p><div class="codebox"><pre><code>iptables-restore &lt; /etc/network/iptables.up.rules
iptables-save &gt; /etc/network/iptables.up.rules</code></pre></div><p>I tried to make a script &#039;iptables&#039; which I placed in /etc/network/if-pre-up.d/</p><p>Content of the script was:</p><div class="codebox"><pre><code>#!/bin/sh
/sbin/iptables-restore &lt; /etc/network/iptables.up.rules</code></pre></div><p>To make the script executable I used:</p><div class="codebox"><pre><code>chmod +x /etc/network/if-pre-up.d/iptables</code></pre></div><p>My experience is that the computer hanged during boot when using this script. Note: I just noticed that there is no space betwen #! and /bin/sh. Maybe this has something to do with it.</p><p>Since this is new to me I am wondering if there is an optimal or preferable way of doing it with Devuan? Also, is there any difference between a systemd system and Devuan when it comes to configuring Iptables?</p><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (Monti)]]></author>
			<pubDate>Fri, 10 Nov 2017 21:34:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6158#p6158</guid>
		</item>
	</channel>
</rss>
