<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: APF Firewall on Ubuntu 7.xx (0.9.6-2)</title>
	<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/</link>
	<description>Thoughts about high architecture and sheer speed.</description>
	<pubDate>Tue, 07 Feb 2012 14:53:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: joe heckert</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-242</link>
		<author>joe heckert</author>
		<pubDate>Fri, 05 Oct 2007 23:53:10 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-242</guid>
					<description>hello Palos!
I tried to follow your instructions on kubuntu feisty(german version), but got errors on install procedure. Erraticly your code shows a patch path with *-ubuntu*, but *.ubuntu* is correct. After correcting this I get other errors that are beyond my level of understanding, this is a copy of the console output:
kpf-0.9.6-2/COPYING.GPL
--01:41:48--  http://codeblog.palos.ro/downloads/apf-0.9.6-2.ubuntu7.04.patch
           =&#62; `apf-0.9.6-2.ubuntu7.04.patch.2'
Auflösen des Hostnamen »codeblog.palos.ro«.... 85.120.61.71
Verbindungsaufbau zu codeblog.palos.ro&#124;85.120.61.71&#124;:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 5.695 (5.6K) [text/plain]

100%[==========================================
===============================================
=========&#62;] 5.695         --.--K/s

01:41:48 (60.84 KB/s) - »apf-0.9.6-2.ubuntu7.04.patch.2« gespeichert [5695/5695]

patching file apf-0.9.6-2/apf.init
patching file apf-0.9.6-2/cron.daily
patching file apf-0.9.6-2/files/ad/antidos
patching file apf-0.9.6-2/files/ad/tlog
patching file apf-0.9.6-2/files/apf
patching file apf-0.9.6-2/files/extras/dshield/install
Hunk #1 succeeded at 1 with fuzz 1.
patching file apf-0.9.6-2/files/extras/get_ports
patching file apf-0.9.6-2/files/extras/importconf
patching file apf-0.9.6-2/files/firewall
patching file apf-0.9.6-2/files/vnet/vnetgen
patching file apf-0.9.6-2/importconf
patching file apf-0.9.6-2/install.sh
Hunk #2 FAILED at 53.
1 out of 2 hunks FAILED -- saving rejects to file apf-0.9.6-2/install.sh.rej
Installing APF 0.9.6-2: Completed.

Installation Details:
  Install path:         /etc/apf/
  Config path:          /etc/apf/conf.apf
  Executable path:      /usr/local/sbin/apf
  AntiDos install path: /etc/apf/ad/
  AntiDos config path:  /etc/apf/ad/conf.antidos
  DShield Client Parser:  /etc/apf/extras/dshield/

Other Details:
cp: Aufruf von stat für „/etc/apf.bk.last/vnet/*.rules“ nicht möglich: No such file or directory
  Imported options from 0.9.6-2 to 0.9.6-2.
  Note: Please review /etc/apf/conf.apf for consistency, install default backed up to /etc/apf/conf.apf.orig
hjh@noname:~/hjh_linux/applications$           

Do you have any idea to fix that?
Joe</description>
		<content:encoded><![CDATA[<p>hello Palos!<br />
I tried to follow your instructions on kubuntu feisty(german version), but got errors on install procedure. Erraticly your code shows a patch path with *-ubuntu*, but *.ubuntu* is correct. After correcting this I get other errors that are beyond my level of understanding, this is a copy of the console output:<br />
kpf-0.9.6-2/COPYING.GPL<br />
--01:41:48--  <a href="http://codeblog.palos.ro/downloads/apf-0.9.6-2.ubuntu7.04.patch" rel="nofollow">http://codeblog.palos.ro/downloads/apf-0.9.6-2.ubuntu7.04.patch</a><br />
           =&gt; `apf-0.9.6-2.ubuntu7.04.patch.2&#8242;<br />
Auflösen des Hostnamen »codeblog.palos.ro«&#8230;. 85.120.61.71<br />
Verbindungsaufbau zu codeblog.palos.ro|85.120.61.71|:80&#8230; verbunden.<br />
HTTP Anforderung gesendet, warte auf Antwort&#8230; 200 OK<br />
Länge: 5.695 (5.6K) [text/plain]</p>
<p>100%[==========================================<br />
===============================================<br />
=========&gt;] 5.695         --.--K/s</p>
<p>01:41:48 (60.84 KB/s) - »apf-0.9.6-2.ubuntu7.04.patch.2« gespeichert [5695/5695]</p>
<p>patching file apf-0.9.6-2/apf.init<br />
patching file apf-0.9.6-2/cron.daily<br />
patching file apf-0.9.6-2/files/ad/antidos<br />
patching file apf-0.9.6-2/files/ad/tlog<br />
patching file apf-0.9.6-2/files/apf<br />
patching file apf-0.9.6-2/files/extras/dshield/install<br />
Hunk #1 succeeded at 1 with fuzz 1.<br />
patching file apf-0.9.6-2/files/extras/get_ports<br />
patching file apf-0.9.6-2/files/extras/importconf<br />
patching file apf-0.9.6-2/files/firewall<br />
patching file apf-0.9.6-2/files/vnet/vnetgen<br />
patching file apf-0.9.6-2/importconf<br />
patching file apf-0.9.6-2/install.sh<br />
Hunk #2 FAILED at 53.<br />
1 out of 2 hunks FAILED -- saving rejects to file apf-0.9.6-2/install.sh.rej<br />
Installing APF 0.9.6-2: Completed.</p>
<p>Installation Details:<br />
  Install path:         /etc/apf/<br />
  Config path:          /etc/apf/conf.apf<br />
  Executable path:      /usr/local/sbin/apf<br />
  AntiDos install path: /etc/apf/ad/<br />
  AntiDos config path:  /etc/apf/ad/conf.antidos<br />
  DShield Client Parser:  /etc/apf/extras/dshield/</p>
<p>Other Details:<br />
cp: Aufruf von stat für „/etc/apf.bk.last/vnet/*.rules“ nicht möglich: No such file or directory<br />
  Imported options from 0.9.6-2 to 0.9.6-2.<br />
  Note: Please review /etc/apf/conf.apf for consistency, install default backed up to /etc/apf/conf.apf.orig<br />
<a href="mailto:hjh@noname:~/hjh_linux/applications$">hjh@noname:~/hjh_linux/applications$</a>           </p>
<p>Do you have any idea to fix that?<br />
Joe</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Valeriu Paloş</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-244</link>
		<author>Valeriu Paloş</author>
		<pubDate>Mon, 05 Nov 2007 07:22:58 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-244</guid>
					<description>Hey Joe, I had no time lately to update the script for the latest version of APF :( Sorry!

I will take a look and post an update! I suspect that the problem comes from the fact that APF has released new versions since I wrote the script.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hey Joe, I had no time lately to update the script for the latest version of APF :( Sorry!</p>
<p>I will take a look and post an update! I suspect that the problem comes from the fact that APF has released new versions since I wrote the script.</p>
<p>Thanks.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mike</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-245</link>
		<author>Mike</author>
		<pubDate>Thu, 08 Nov 2007 09:36:22 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-245</guid>
					<description>I'm so glad I found this! Too much time was wasted with Shorewall on my part and I've always loved APF on my Fedora machines. Now I'm running Ubuntu and was looking for a good APF tut. 

Just gave it a try on 7.10 and received 1 error when following your directions, if that is any help for your updating the patch.

patching file apf-0.9.6-2/apf.init
patching file apf-0.9.6-2/cron.daily
patching file apf-0.9.6-2/files/ad/antidos
patching file apf-0.9.6-2/files/ad/tlog
patching file apf-0.9.6-2/files/apf
patching file apf-0.9.6-2/files/extras/dshield/install
Hunk #1 succeeded at 1 with fuzz 1.
patching file apf-0.9.6-2/files/extras/get_ports
patching file apf-0.9.6-2/files/extras/importconf
patching file apf-0.9.6-2/files/firewall
patching file apf-0.9.6-2/files/vnet/vnetgen
patching file apf-0.9.6-2/importconf
patching file apf-0.9.6-2/install.sh
Hunk #2 FAILED at 53.
1 out of 2 hunks FAILED -- saving rejects to file apf-0.9.6-2/install.sh.rej

Is that a major failure from your side? 

All in all, great job and please keep it up! APF is a great little system that I'd love to have up and running on all my Ubuntu boxes.</description>
		<content:encoded><![CDATA[<p>I&#8217;m so glad I found this! Too much time was wasted with Shorewall on my part and I&#8217;ve always loved APF on my Fedora machines. Now I&#8217;m running Ubuntu and was looking for a good APF tut. </p>
<p>Just gave it a try on 7.10 and received 1 error when following your directions, if that is any help for your updating the patch.</p>
<p>patching file apf-0.9.6-2/apf.init<br />
patching file apf-0.9.6-2/cron.daily<br />
patching file apf-0.9.6-2/files/ad/antidos<br />
patching file apf-0.9.6-2/files/ad/tlog<br />
patching file apf-0.9.6-2/files/apf<br />
patching file apf-0.9.6-2/files/extras/dshield/install<br />
Hunk #1 succeeded at 1 with fuzz 1.<br />
patching file apf-0.9.6-2/files/extras/get_ports<br />
patching file apf-0.9.6-2/files/extras/importconf<br />
patching file apf-0.9.6-2/files/firewall<br />
patching file apf-0.9.6-2/files/vnet/vnetgen<br />
patching file apf-0.9.6-2/importconf<br />
patching file apf-0.9.6-2/install.sh<br />
Hunk #2 FAILED at 53.<br />
1 out of 2 hunks FAILED -- saving rejects to file apf-0.9.6-2/install.sh.rej</p>
<p>Is that a major failure from your side? </p>
<p>All in all, great job and please keep it up! APF is a great little system that I&#8217;d love to have up and running on all my Ubuntu boxes.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Valeriu Paloş</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-246</link>
		<author>Valeriu Paloş</author>
		<pubDate>Thu, 08 Nov 2007 10:29:37 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-246</guid>
					<description>In response to: Mike and Joe Heckert

Thanks for your input guys! Ok, I finally got some time to look at this problem! There were two issues here:

1 - The &lt;em&gt;"Hunk #2 FAILED at 53."&lt;/em&gt; part, was a real problem that caused APF not to install properly (the patch is now fixed).

2 - The &lt;em&gt;"cp: Aufruf von stat fur „/etc/apf.bk.last/vnet/*.rules“ nicht moglich: No such file or directory"&lt;/em&gt; part, is just a dummy error. It just says that it could not find some comfig files to import over the default ones, and that's because there are no files there to begin with. It's OK to ignore this one.

So, now the patch is fixed, and I also got to test it on Ubuntu 7.10 (Gutsy) (just as Mike did) which is actually identical from APFs point of view.

Cheers.</description>
		<content:encoded><![CDATA[<p>In response to: Mike and Joe Heckert</p>
<p>Thanks for your input guys! Ok, I finally got some time to look at this problem! There were two issues here:</p>
<p>1 - The <em>&#8220;Hunk #2 FAILED at 53.&#8221;</em> part, was a real problem that caused APF not to install properly (the patch is now fixed).</p>
<p>2 - The <em>&#8220;cp: Aufruf von stat fur „/etc/apf.bk.last/vnet/*.rules“ nicht moglich: No such file or directory&#8221;</em> part, is just a dummy error. It just says that it could not find some comfig files to import over the default ones, and that&#8217;s because there are no files there to begin with. It&#8217;s OK to ignore this one.</p>
<p>So, now the patch is fixed, and I also got to test it on Ubuntu 7.10 (Gutsy) (just as Mike did) which is actually identical from APFs point of view.</p>
<p>Cheers.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mike</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-247</link>
		<author>Mike</author>
		<pubDate>Thu, 08 Nov 2007 14:27:55 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-247</guid>
					<description>Just finished with the new patch and it worked like a charm, thanks Valeriu! Have you had any experience installing BFD (Brute Force Detection), also from the maker of APF, on 7.xx?</description>
		<content:encoded><![CDATA[<p>Just finished with the new patch and it worked like a charm, thanks Valeriu! Have you had any experience installing BFD (Brute Force Detection), also from the maker of APF, on 7.xx?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Valeriu Paloş</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-248</link>
		<author>Valeriu Paloş</author>
		<pubDate>Thu, 08 Nov 2007 14:42:46 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-248</guid>
					<description>Glad I could help Mike! About BFD, the answer is no! 

As far as I know, APF itself comes with Antidos which does brute force detection!

I have not used this BFD at all! But I'm intrigued I have to say! I wouldn't mind installing it on my server if it proves interesting. I'll take a look and post something here if I have something...

Thanks :)</description>
		<content:encoded><![CDATA[<p>Glad I could help Mike! About BFD, the answer is no! </p>
<p>As far as I know, APF itself comes with Antidos which does brute force detection!</p>
<p>I have not used this BFD at all! But I&#8217;m intrigued I have to say! I wouldn&#8217;t mind installing it on my server if it proves interesting. I&#8217;ll take a look and post something here if I have something&#8230;</p>
<p>Thanks :)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Paul</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-256</link>
		<author>Paul</author>
		<pubDate>Mon, 21 Jan 2008 17:23:34 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-256</guid>
					<description>Valeriu,
Thanks for the patch. Worked fine on 7.04. You saved me a ton of time man! Thanks again.</description>
		<content:encoded><![CDATA[<p>Valeriu,<br />
Thanks for the patch. Worked fine on 7.04. You saved me a ton of time man! Thanks again.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Valeriu Paloş</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-257</link>
		<author>Valeriu Paloş</author>
		<pubDate>Wed, 23 Jan 2008 07:13:03 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-257</guid>
					<description>Awesome Paul! Glad I could help!</description>
		<content:encoded><![CDATA[<p>Awesome Paul! Glad I could help!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Maxximus</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-258</link>
		<author>Maxximus</author>
		<pubDate>Sat, 26 Jan 2008 16:19:43 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-258</guid>
					<description>Well just want to say: Thank you! I'm using APF for a long time now, think it's great. 
This was my first use of Ubuntu, but without this wasn't able to install it. This patch was really helpful!</description>
		<content:encoded><![CDATA[<p>Well just want to say: Thank you! I&#8217;m using APF for a long time now, think it&#8217;s great.<br />
This was my first use of Ubuntu, but without this wasn&#8217;t able to install it. This patch was really helpful!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Nelson</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-260</link>
		<author>Nelson</author>
		<pubDate>Wed, 06 Feb 2008 15:56:11 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-260</guid>
					<description>apf 0.9.6-3 is out now.  can you update this patch?</description>
		<content:encoded><![CDATA[<p>apf 0.9.6-3 is out now.  can you update this patch?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: cezar</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-261</link>
		<author>cezar</author>
		<pubDate>Sat, 09 Feb 2008 16:04:30 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-261</guid>
					<description>Hallo Valeriu.

I just install the apf 0.9.6-3 on my computer. I run 7.10. I change some thinks like if condition on the install.sh to reflect the /etc/init.d/apf and the vi path on the function file, plus some linux  daemon starting shell. This is my proposal and probably you can test it also on 7.04.

Nice blog.

Proposal:
diff -rc apf-0.9.6-3/apf.init apf-0.9.6-3-ubuntu7.10/apf.init
*** apf-0.9.6-3/apf.init        2007-06-16 23:16:25.000000000 +0200
--- apf-0.9.6-3-ubuntu7.10/apf.init     2008-02-09 16:41:31.000000000 +0100
***************
*** 5,11 ****
  #

  # source function library
! . /etc/rc.d/init.d/functions
  # import variables
  . /etc/apf/conf.apf
  . /etc/apf/internals/internals.conf
--- 5,12 ----
  #

  # source function library
! #. /etc/rc.d/init.d/functions
! . /lib/lsb/init-functions
  # import variables
  . /etc/apf/conf.apf
  . /etc/apf/internals/internals.conf
***************
*** 17,30 ****
  case "$1" in
  start)
          echo -n "Starting APF:"
!         /usr/local/sbin/apf --start &#62;&#62; /dev/null 2&#62;&#38;1
!         echo_success
          echo
          ;;
  stop)
          echo -n "Stopping APF:"
!         /usr/local/sbin/apf --stop &#62;&#62; /dev/null 2&#62;&#38;1
!         echo_success
          echo
          ;;
  restart)
--- 18,33 ----
  case "$1" in
  start)
          echo -n "Starting APF:"
!       start-stop-daemon  --start --exec /usr/local/sbin/apf -- "--start" &#62;&#62; /dev/null 2&#62;&#38;1
!         log_end_msg 0
! #        echo_success
          echo
          ;;
  stop)
          echo -n "Stopping APF:"
!         start-stop-daemon  --start --exec /usr/local/sbin/apf -- "--stop" &#62;&#62; /dev/null 2&#62;&#38;1
!         log_end_msg 0
! #       echo_success
          echo
          ;;
  restart)
***************
*** 32,37 ****
          $0 start
          ;;
  *)
!         echo "usage: $0 [start&#124;stop&#124;restart]"
  esac
  exit 0
--- 35,41 ----
          $0 start
          ;;
  *)
!       log_action_msg "Usage: /etc/init.d/apf {start&#124;stop&#124;reload}"
!         exit 1
  esac
  exit 0
Only in apf-0.9.6-3/: .ca.def
diff -rc apf-0.9.6-3/cron.daily apf-0.9.6-3-ubuntu7.10/cron.daily
*** apf-0.9.6-3/cron.daily      2004-02-20 09:37:55.000000000 +0100
--- apf-0.9.6-3-ubuntu7.10/cron.daily   2008-02-09 14:51:26.000000000 +0100
***************
*** 1,2 ****
! #!/bin/sh
! /etc/rc.d/init.d/apf restart &#62;&#62; /dev/null 2&#62;&#38;1
--- 1,2 ----
! #!/bin/bash
! /etc/init.d/apf restart &#62;&#62; /dev/null 2&#62;&#38;1
diff -rc apf-0.9.6-3/files/apf apf-0.9.6-3-ubuntu7.10/files/apf
*** apf-0.9.6-3/files/apf       2008-01-31 18:01:33.000000000 +0100
--- apf-0.9.6-3-ubuntu7.10/files/apf    2008-02-09 15:15:37.000000000 +0100
***************
*** 1,4 ****
! #!/bin/sh
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
--- 1,4 ----
! #!/bin/bash
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
diff -rc apf-0.9.6-3/files/internals/functions.apf apf-0.9.6-3-ubuntu7.10/files/internals/functions.apf
*** apf-0.9.6-3/files/internals/functions.apf   2008-01-31 20:51:30.000000000 +0100
--- apf-0.9.6-3-ubuntu7.10/files/internals/functions.apf        2008-02-09 15:15:10.000000000 +0100
***************
*** 1,4 ****
! #!/bin/sh
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
--- 1,4 ----
! #!/bin/bash
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
***************
*** 379,386 ****
        /usr/bin/pico -w $iptc
  elif [ -f "/usr/bin/nano" ]; then
        /usr/bin/nano -w $iptc
! elif [ -f "/bin/vi" ]; then
!       /bin/vi $iptc
  fi
  clear
  rm -f $iptc
--- 379,386 ----
        /usr/bin/pico -w $iptc
  elif [ -f "/usr/bin/nano" ]; then
        /usr/bin/nano -w $iptc
! elif [ -f "/usr/bin/vi" ]; then
!       /usr/bin/vi $iptc
  fi
  clear
  rm -f $iptc
***************
*** 1433,1439 ****
  if [ ! "$SET_REFRESH" == "0" ] &#38;&#38; [ ! "$SET_REFRESH" == "" ]; then
  cat $INSTALL_PATH/internals/cron.refresh
  MAILTO=
! SHELL=/bin/sh
  */$SET_REFRESH * * * * root /etc/apf/apf --refresh &#62;&#62; /dev/null 2&#62;&#38;1 &#38;
  EOF
        chmod 644 $INSTALL_PATH/internals/cron.refresh
--- 1433,1439 ----
  if [ ! "$SET_REFRESH" == "0" ] &#38;&#38; [ ! "$SET_REFRESH" == "" ]; then
  cat $INSTALL_PATH/internals/cron.refresh
  MAILTO=
! SHELL=/bin/bash
  */$SET_REFRESH * * * * root /etc/apf/apf --refresh &#62;&#62; /dev/null 2&#62;&#38;1 &#38;
  EOF
        chmod 644 $INSTALL_PATH/internals/cron.refresh
diff -rc apf-0.9.6-3/importconf apf-0.9.6-3-ubuntu7.10/importconf
*** apf-0.9.6-3/importconf      2007-01-14 11:28:32.000000000 +0100
--- apf-0.9.6-3-ubuntu7.10/importconf   2008-02-09 14:51:58.000000000 +0100
***************
*** 1,4 ****
! #!/bin/sh
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
--- 1,4 ----
! #!/bin/bash
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
diff -rc apf-0.9.6-3/install.sh apf-0.9.6-3-ubuntu7.10/install.sh
*** apf-0.9.6-3/install.sh      2008-01-31 21:05:00.000000000 +0100
--- apf-0.9.6-3-ubuntu7.10/install.sh   2008-02-09 14:57:56.000000000 +0100
***************
*** 1,4 ****
! #!/bin/sh
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
--- 1,4 ----
! #!/bin/bash
  #
  # APF 0.9.6 [apf@r-fx.org]
  ###
***************
*** 54,63 ****
                  cp cron.daily /etc/cron.daily/apf
                  chmod 755 /etc/cron.daily/apf
          fi
!         if [ -f "/etc/rc.d/init.d/apf" ]; then
!                 cp -f apf.init /etc/rc.d/init.d/apf
          else
!                 cp -f apf.init /etc/rc.d/init.d/apf
          fi
        if [ -f "/var/log/apf_log" ] &#124;&#124; [ -f "/var/log/apfados_log" ]; then
        rm -f /var/log/apf_log /var/log/apfados_log
--- 54,63 ----
                  cp cron.daily /etc/cron.daily/apf
                  chmod 755 /etc/cron.daily/apf
          fi
!         if [ -f "/etc/init.d/apf" ]; then
!                 cp -f apf.init /etc/init.d/apf
          else
!                 cp -f apf.init /etc/init.d/apf
          fi
        if [ -f "/var/log/apf_log" ] &#124;&#124; [ -f "/var/log/apfados_log" ]; then
        rm -f /var/log/apf_log /var/log/apfados_log

Multzam pentru initiativa de a te ocupa de apf.</description>
		<content:encoded><![CDATA[<p>Hallo Valeriu.</p>
<p>I just install the apf 0.9.6-3 on my computer. I run 7.10. I change some thinks like if condition on the install.sh to reflect the /etc/init.d/apf and the vi path on the function file, plus some linux  daemon starting shell. This is my proposal and probably you can test it also on 7.04.</p>
<p>Nice blog.</p>
<p>Proposal:<br />
diff -rc apf-0.9.6-3/apf.init apf-0.9.6-3-ubuntu7.10/apf.init<br />
*** apf-0.9.6-3/apf.init        2007-06-16 23:16:25.000000000 +0200<br />
&#8212; apf-0.9.6-3-ubuntu7.10/apf.init     2008-02-09 16:41:31.000000000 +0100<br />
***************<br />
*** 5,11 ****<br />
  #</p>
<p>  # source function library<br />
! . /etc/rc.d/init.d/functions<br />
  # import variables<br />
  . /etc/apf/conf.apf<br />
  . /etc/apf/internals/internals.conf<br />
&#8212; 5,12 &#8212;-<br />
  #</p>
<p>  # source function library<br />
! #. /etc/rc.d/init.d/functions<br />
! . /lib/lsb/init-functions<br />
  # import variables<br />
  . /etc/apf/conf.apf<br />
  . /etc/apf/internals/internals.conf<br />
***************<br />
*** 17,30 ****<br />
  case &#8220;$1&#8243; in<br />
  start)<br />
          echo -n &#8220;Starting APF:&#8221;<br />
!         /usr/local/sbin/apf --start &gt;&gt; /dev/null 2&gt;&amp;1<br />
!         echo_success<br />
          echo<br />
          ;;<br />
  stop)<br />
          echo -n &#8220;Stopping APF:&#8221;<br />
!         /usr/local/sbin/apf --stop &gt;&gt; /dev/null 2&gt;&amp;1<br />
!         echo_success<br />
          echo<br />
          ;;<br />
  restart)<br />
&#8212; 18,33 &#8212;-<br />
  case &#8220;$1&#8243; in<br />
  start)<br />
          echo -n &#8220;Starting APF:&#8221;<br />
!       start-stop-daemon  --start --exec /usr/local/sbin/apf -- &#8220;--start&#8221; &gt;&gt; /dev/null 2&gt;&amp;1<br />
!         log_end_msg 0<br />
! #        echo_success<br />
          echo<br />
          ;;<br />
  stop)<br />
          echo -n &#8220;Stopping APF:&#8221;<br />
!         start-stop-daemon  --start --exec /usr/local/sbin/apf -- &#8220;--stop&#8221; &gt;&gt; /dev/null 2&gt;&amp;1<br />
!         log_end_msg 0<br />
! #       echo_success<br />
          echo<br />
          ;;<br />
  restart)<br />
***************<br />
*** 32,37 ****<br />
          $0 start<br />
          ;;<br />
  *)<br />
!         echo &#8220;usage: $0 [start|stop|restart]&#8221;<br />
  esac<br />
  exit 0<br />
&#8212; 35,41 &#8212;-<br />
          $0 start<br />
          ;;<br />
  *)<br />
!       log_action_msg &#8220;Usage: /etc/init.d/apf {start|stop|reload}&#8221;<br />
!         exit 1<br />
  esac<br />
  exit 0<br />
Only in apf-0.9.6-3/: .ca.def<br />
diff -rc apf-0.9.6-3/cron.daily apf-0.9.6-3-ubuntu7.10/cron.daily<br />
*** apf-0.9.6-3/cron.daily      2004-02-20 09:37:55.000000000 +0100<br />
&#8212; apf-0.9.6-3-ubuntu7.10/cron.daily   2008-02-09 14:51:26.000000000 +0100<br />
***************<br />
*** 1,2 ****<br />
! #!/bin/sh<br />
! /etc/rc.d/init.d/apf restart &gt;&gt; /dev/null 2&gt;&amp;1<br />
&#8212; 1,2 &#8212;-<br />
! #!/bin/bash<br />
! /etc/init.d/apf restart &gt;&gt; /dev/null 2&gt;&amp;1<br />
diff -rc apf-0.9.6-3/files/apf apf-0.9.6-3-ubuntu7.10/files/apf<br />
*** apf-0.9.6-3/files/apf       2008-01-31 18:01:33.000000000 +0100<br />
&#8212; apf-0.9.6-3-ubuntu7.10/files/apf    2008-02-09 15:15:37.000000000 +0100<br />
***************<br />
*** 1,4 ****<br />
! #!/bin/sh<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
&#8212; 1,4 &#8212;-<br />
! #!/bin/bash<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
diff -rc apf-0.9.6-3/files/internals/functions.apf apf-0.9.6-3-ubuntu7.10/files/internals/functions.apf<br />
*** apf-0.9.6-3/files/internals/functions.apf   2008-01-31 20:51:30.000000000 +0100<br />
&#8212; apf-0.9.6-3-ubuntu7.10/files/internals/functions.apf        2008-02-09 15:15:10.000000000 +0100<br />
***************<br />
*** 1,4 ****<br />
! #!/bin/sh<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
&#8212; 1,4 &#8212;-<br />
! #!/bin/bash<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
***************<br />
*** 379,386 ****<br />
        /usr/bin/pico -w $iptc<br />
  elif [ -f &#8220;/usr/bin/nano&#8221; ]; then<br />
        /usr/bin/nano -w $iptc<br />
! elif [ -f &#8220;/bin/vi&#8221; ]; then<br />
!       /bin/vi $iptc<br />
  fi<br />
  clear<br />
  rm -f $iptc<br />
&#8212; 379,386 &#8212;-<br />
        /usr/bin/pico -w $iptc<br />
  elif [ -f &#8220;/usr/bin/nano&#8221; ]; then<br />
        /usr/bin/nano -w $iptc<br />
! elif [ -f &#8220;/usr/bin/vi&#8221; ]; then<br />
!       /usr/bin/vi $iptc<br />
  fi<br />
  clear<br />
  rm -f $iptc<br />
***************<br />
*** 1433,1439 ****<br />
  if [ ! &#8220;$SET_REFRESH&#8221; == &#8220;0&#8243; ] &amp;&amp; [ ! &#8220;$SET_REFRESH&#8221; == &#8220;&#8221; ]; then<br />
  cat $INSTALL_PATH/internals/cron.refresh<br />
  MAILTO=<br />
! SHELL=/bin/sh<br />
  */$SET_REFRESH * * * * root /etc/apf/apf --refresh &gt;&gt; /dev/null 2&gt;&amp;1 &amp;<br />
  EOF<br />
        chmod 644 $INSTALL_PATH/internals/cron.refresh<br />
&#8212; 1433,1439 &#8212;-<br />
  if [ ! &#8220;$SET_REFRESH&#8221; == &#8220;0&#8243; ] &amp;&amp; [ ! &#8220;$SET_REFRESH&#8221; == &#8220;&#8221; ]; then<br />
  cat $INSTALL_PATH/internals/cron.refresh<br />
  MAILTO=<br />
! SHELL=/bin/bash<br />
  */$SET_REFRESH * * * * root /etc/apf/apf --refresh &gt;&gt; /dev/null 2&gt;&amp;1 &amp;<br />
  EOF<br />
        chmod 644 $INSTALL_PATH/internals/cron.refresh<br />
diff -rc apf-0.9.6-3/importconf apf-0.9.6-3-ubuntu7.10/importconf<br />
*** apf-0.9.6-3/importconf      2007-01-14 11:28:32.000000000 +0100<br />
&#8212; apf-0.9.6-3-ubuntu7.10/importconf   2008-02-09 14:51:58.000000000 +0100<br />
***************<br />
*** 1,4 ****<br />
! #!/bin/sh<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
&#8212; 1,4 &#8212;-<br />
! #!/bin/bash<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
diff -rc apf-0.9.6-3/install.sh apf-0.9.6-3-ubuntu7.10/install.sh<br />
*** apf-0.9.6-3/install.sh      2008-01-31 21:05:00.000000000 +0100<br />
&#8212; apf-0.9.6-3-ubuntu7.10/install.sh   2008-02-09 14:57:56.000000000 +0100<br />
***************<br />
*** 1,4 ****<br />
! #!/bin/sh<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
&#8212; 1,4 &#8212;-<br />
! #!/bin/bash<br />
  #<br />
  # APF 0.9.6 [apf@r-fx.org]<br />
  ###<br />
***************<br />
*** 54,63 ****<br />
                  cp cron.daily /etc/cron.daily/apf<br />
                  chmod 755 /etc/cron.daily/apf<br />
          fi<br />
!         if [ -f &#8220;/etc/rc.d/init.d/apf&#8221; ]; then<br />
!                 cp -f apf.init /etc/rc.d/init.d/apf<br />
          else<br />
!                 cp -f apf.init /etc/rc.d/init.d/apf<br />
          fi<br />
        if [ -f &#8220;/var/log/apf_log&#8221; ] || [ -f &#8220;/var/log/apfados_log&#8221; ]; then<br />
        rm -f /var/log/apf_log /var/log/apfados_log<br />
&#8212; 54,63 &#8212;-<br />
                  cp cron.daily /etc/cron.daily/apf<br />
                  chmod 755 /etc/cron.daily/apf<br />
          fi<br />
!         if [ -f &#8220;/etc/init.d/apf&#8221; ]; then<br />
!                 cp -f apf.init /etc/init.d/apf<br />
          else<br />
!                 cp -f apf.init /etc/init.d/apf<br />
          fi<br />
        if [ -f &#8220;/var/log/apf_log&#8221; ] || [ -f &#8220;/var/log/apfados_log&#8221; ]; then<br />
        rm -f /var/log/apf_log /var/log/apfados_log</p>
<p>Multzam pentru initiativa de a te ocupa de apf.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Max</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-263</link>
		<author>Max</author>
		<pubDate>Fri, 15 Feb 2008 16:30:56 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-263</guid>
					<description>Fails for me :(

on a fresh gutsy install:

root@lhc-voipgate:/usr/src# patch -p0 </description>
		<content:encoded><![CDATA[<p>Fails for me :(</p>
<p>on a fresh gutsy install:</p>
<p><a href="mailto:root@lhc-voipgate:/usr/src#">root@lhc-voipgate:/usr/src#</a> patch -p0</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-267</link>
		<author>Frank</author>
		<pubDate>Wed, 27 Feb 2008 18:01:52 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-267</guid>
					<description>Can you please update the patch for 0.9.6-3?</description>
		<content:encoded><![CDATA[<p>Can you please update the patch for 0.9.6-3?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Valeriu Palos</title>
		<link>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-268</link>
		<author>Valeriu Palos</author>
		<pubDate>Thu, 28 Feb 2008 08:54:05 +0000</pubDate>
		<guid>http://codeblog.palos.ro/2007/09/08/apf-firewall-on-ubuntu-704/#comment-268</guid>
					<description>Sorry for the delay guys, I had no time for it until this morning. See &lt;a href="http://codeblog.palos.ro/2008/02/28/apf-firewall-patches/" rel="nofollow"&gt;here&lt;/a&gt; for updates.</description>
		<content:encoded><![CDATA[<p>Sorry for the delay guys, I had no time for it until this morning. See <a href="http://codeblog.palos.ro/2008/02/28/apf-firewall-patches/" rel="nofollow">here</a> for updates.</p>
]]></content:encoded>
				</item>
</channel>
</rss>

