PDA

View Full Version : APF-0.9.6-1 Released


Tony
09-23-2005, 09:43 PM
A few days ago, 0.9.6-1 was released. With it, comes a whole load of new features (See APF CHANGELOG (http://rfxnetworks.com/appdocs/CHANGELOG.apf)).

After a couple of days of testing, and ironing out a few upgrade bugs, I've thrown together a little script that should get you upgraded with no fuss what-so-ever.

As root in SSH, do the following:


wget -O /root/apfup.sh http://download.powervps.com/apf/apfup.sh && sh /root/apfup.sh

Don't worry about the errors it spits out during the install; APF has some really weird upgrade issues on VPS in this version that have to be remedied after the install is complete; which of course, the script will do for you. Note, the upgrade is pretty seamless, and none of your apf settings should be lost; however, I have taken that into consideration and the script will tarball your original apf directory to /etc/apfold.tgz - just in case!

If you get stuck, or just want us to do it for you, don't hesitate to contact support. =)

Zaf
09-24-2005, 02:23 AM
Once bitten, twice shy....I've had problems with the current APF already, just waiting for morning so I open a ticket with a request to do it for me ;-)

Bogdan
09-24-2005, 04:43 AM
I do see that after the update it puts DEVEL_MODE back to 1.

Tony
09-24-2005, 10:06 AM
Bogdan: see the content of the script. There are a few sed lines to deal with the apf `auto-reconfiguration' settings after upgrade. =)

Shahzada: supposedly, there are a few fixes for some of the previous issues.. we'll see; but it's been running well on my VPS since it's release date =)

jhobbs
09-24-2005, 11:23 AM
For What It's Worth-
# APF 0.9.6 [apf@r-fx.org]
(and)
DEVEL_MODE="0" on my VPS after Tony's update.
Thanks, Tony!

Tony
09-24-2005, 11:33 AM
=D

Not a problem. =)

Chris
09-24-2005, 02:40 PM
Thanks Tony . . . installed without a hitch. Truly appreciate it.

Tony
09-24-2005, 03:08 PM
Thanks Tony . . . installed without a hitch. Truly appreciate it.

You're welcome. :D

mag
09-26-2005, 10:55 PM
Works for me too. Excellent.

ikaruz
07-31-2006, 01:09 PM
was trying to update apf but the upgrade script seems to be unavailable.
root@ [~]# wget -O /root/apfup.sh http://download.powervps.com/apf/apfup.sh && sh /root/apfup.sh
--13:03:14-- http://download.powervps.com/apf/apfup.sh
=> `/root/apfup.sh'
Resolving download.powervps.com... 204.157.9.117
Connecting to download.powervps.com[204.157.9.117]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:03:14 ERROR 404: Not Found.


Is there anu easy way to update apf?

Tony
07-31-2006, 02:58 PM
What's your current version of APF? AFAIK, we're shipping latest with all VPS; run /etc/apf/apf and paste the output here. The script listed above got lost when we had to rebuild download; I don't mind re-writing it, if there are a few people needing it, but it isn't forwards compatible, so if you're already running 0.9.6, then this script isn't going to help you upgrade to a newer version. Best bet, is to let the support guys know, and they should be able to help ya.

ikaruz
07-31-2006, 03:10 PM
We notice that we had an old version, so tryed to update.

Here it is,

root@host [~]# /etc/apf/apf
APF version 0.9.5 <apf@r-fx.org>
Copyright (C) 1999-2004, R-fx Networks <proj@r-fx.org>
Copyright (C) 2004, Ryan MacDonald <ryan@r-fx.org>
This program may be freely redistributed under the terms of the GNU GPL

usage /etc/apf/apf [OPTION]
-s|--start ......................... load firewall policies
-r|--restart ....................... flush & load firewall
-f|--flush|--stop .................. flush firewall
-l|--list .......................... list chain rules
-st|--status ....................... firewall status
-a HOST CMT|--allow HOST COMMENT ... add host (IP/FQDN) to allow_hosts.rules and
immediately load new rule into firewall
-d HOST CMT|--deny HOST COMMENT .... add host (IP/FQDN) to deny_hosts.rules and
immediately load new rule into firewall


If update is to complicated, just give us instructions on how we can install the newer version.
Btw, the version you are using are tweaked for VPS or just are the standard versions?

Thanks

Fred
07-31-2006, 03:58 PM
tried to upgrade...

root@XXXXXXXXXXXX [~]# wget -O /root/apfup.sh http://download.powervps.com/apf/apfup.sh && sh /root/apfup.sh
--15:57:41-- http://download.powervps.com/apf/apfup.sh
=> `/root/apfup.sh'
Resolving download.powervps.com... 204.157.9.117
Connecting to download.powervps.com|204.157.9.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:57:50 ERROR 404: Not Found.

It was one minute ago :)

EDIT: It seems the dir doesn't exists... http://download.powervps.com/apf/ File not found.

vps-vince
07-31-2006, 06:43 PM
Seems a few of us are indeed behind on latest versions Rob:

# /etc/apf/apf
APF version 0.9.5 <apf@r-fx.org>
Copyright (C) 1999-2004, R-fx Networks <proj@r-fx.org>
Copyright (C) 2004, Ryan MacDonald <ryan@r-fx.org>
This program may be freely redistributed under the terms of the GNU GPL

usage /etc/apf/apf [OPTION]
-s|--start ......................... load firewall policies
-r|--restart ....................... flush & load firewall
-f|--flush|--stop .................. flush firewall
-l|--list .......................... list chain rules
-st|--status ....................... firewall status
-a HOST CMT|--allow HOST COMMENT ... add host (IP/FQDN) to allow_hosts.rules and
immediately load new rule into firewall
-d HOST CMT|--deny HOST COMMENT .... add host (IP/FQDN) to deny_hosts.rules and
immediately load new rule into firewall


Shall we raise a ticket?

Oh, any incompatibility issues; eAccelerator?

- Vince

elix
07-31-2006, 08:49 PM
Oh, any incompatibility issues; eAccelerator?
Of course not :) Think of it like this, PHP is to eAccelerator, what Iptables is to APF. But eAcelerator has absolutely nothing to do with iptables/apf :)

vps-vince
08-01-2006, 05:21 PM
Shucks, I was almost asleep last night when I posted that.:eek:

Got confused with eAccelerator non compatible with PHP4.3.11

- Vince

elix
08-01-2006, 05:44 PM
eAccelerator non compatible with PHP4.3.11
I've ran it on 4.3.11 in the past with no problems.

vps-vince
08-01-2006, 06:08 PM
Ok, OK. I'll try and get more than 4 hours sleep per night for the next week.

I meant the PHP 4.4.x

I am also using it with no problems on a VPS with 4.3.11 and don't want to update it to 4.4.x because I don't want to loose the benefits of eAccelerator.

... Godd night.:)

Zzzzzzzzzzzzzzzzz

- Vince

elix
08-01-2006, 08:52 PM
I am also using it with no problems on a VPS with 4.3.11 and don't want to update it to 4.4.x because I don't want to loose the benefits of eAccelerator.

o_0

Incompatibility problems?

http://jaguar.thehostingmarket.net/phpinfo.php

Let me know if you have any further questions ;-)

BornOnline
08-01-2006, 08:58 PM
No problems here..

eAccelerator 0.9.4 , PHP 4.4.2 [ZE 1.3.0]

elix
08-01-2006, 09:30 PM
No problems here..

eAccelerator 0.9.4 , PHP 4.4.2 [ZE 1.3.0]
yeah, that's what i am running as well

vps-vince
08-02-2006, 07:35 PM
Guys, you are running 0.9.4
This thread was about APF-0.9.6-1 and I was questioning if it worked with PHP 4.4.2 as I had to turn it off on another VPS.

From PVPS support some time ago:
The server is running on php 4.4.2 which do have an incompatibility issue with eaccelarator, it was causing the error and was not letting apache to start up. You must have seen it in our forums too. I have disabled eaccelarator in the server now , so that apache can function normally.
Please verify the same from your end. update us if php is to be upgraded in the server, then we can try reinstalling eaccelarator too :)

It do work fine with php 4.4.1 , but does not get along with 4.4.2 and only has issue with that version alone.



- Vince

elix
08-02-2006, 08:12 PM
The server is running on php 4.4.2 which do have an incompatibility issue with eaccelarator, it was causing the error and was not letting apache to start up. You must have seen it in our forums too. I have disabled eaccelarator in the server now , so that apache can function normally.
Please verify the same from your end. update us if php is to be upgraded in the server, then we can try reinstalling eaccelarator too

It do work fine with php 4.4.1 , but does not get along with 4.4.2 and only has issue with that version alone.
PowerVPS support is wrong, but not much a surprise there.

elix
08-02-2006, 08:14 PM
Guys, you are running 0.9.4
This thread was about APF-0.9.6-1 and I was questioning if it worked with PHP 4.4.2 as I had to turn it off on another VPS.
dude, get some sleep. ;)

We are not running APF 0.9.4. We are running eAccelerator 0.9.4. which has been out for many months now.

Robert
08-02-2006, 09:12 PM
PowerVPS support is wrong, but not much a surprise there.

I'm sorry... but in ALL instances, it does NOT work. Please before just jumping to the conclusion about how horrible you think our support is, at least know the exact circumstances in the case.

Also, your comment about "not much of a suprise there" is also a out of line.

elix
08-02-2006, 09:34 PM
I'm sorry... but in ALL instances, it does NOT work. Please before just jumping to the conclusion about how horrible you think our support is, at least know the exact circumstances in the case.

Also, your comment about "not much of a suprise there" is also a out of line.
How come I've got it running on 20+ servers accross my fleet? No custom patch, no nothing, just a straight up install.

http://jaguar.thehostingmarket.net/phpinfo.php once again.

Whether you want to admit it or not, your support staff were simply not aware of it being able to work just fine, and as such they gave a response stating that it has compatibility issues (but this is NOT true).

at least know the exact circumstances in the case.
No, it's not. It's my opinion. I'm entitled to it.

Robert
08-02-2006, 10:06 PM
That should say ALWAYS work. :D

elix
08-03-2006, 07:46 AM
That should say ALWAYS work. :D
That must have something to do with your installation method. I never had a problem and guarantee that I never will.

BornOnline
08-03-2006, 09:39 AM
Not trying to argue with anyone, but I have it on a Centos 4.2 VPS and RH 9 VPS here with php 4.4.2 as stated in my other post. Guess I have been lucky then :confused: Anyway.. is this about APF or eAccel? LOL... I'm out of here.
O.. if this is about APF, you guys should try config server firewall instead.

eAccelerator 0.9.4 , PHP 4.4.2 [ZE 1.3.0]

elix
08-03-2006, 01:13 PM
Not trying to argue with anyone, but I have it on a Centos 4.2 VPS and RH 9 VPS here with php 4.4.2 as stated in my other post. Guess I have been lucky then :confused: Anyway.. is this about APF or eAccel? LOL... I'm out of here.
O.. if this is about APF, you guys should try config server firewall instead.

eAccelerator 0.9.4 , PHP 4.4.2 [ZE 1.3.0]
Your not being lucky, this is how it should always be. It is absolute rubbish that there are compatibility issues.

vps-vince
08-03-2006, 04:20 PM
dude, get some sleep. ;)


Yep!

Good night all.

- Vince

Tony
08-08-2006, 12:28 AM
Just for those of you wondering; I'll re-write my script tomorrow for the latest greatest version of APF.

Watch this space for more details.

ozgreg
08-08-2006, 12:57 AM
Thanks Tony :)

Tony
08-08-2006, 09:28 PM
Okay, new script is up.

For those of you who saw a snippet here about errors, my fault, I made an error on one line of code. If you got those errors, make sure lines 33 and 34 look like this:

33 IFACE_IN="venet0"
34 IFACE_OUT="venet0"

(obviously without the line numbers) -- Then restart apf.

Same as before, wget -O /root/apfup.sh http://download.powervps.com/apf/apfup.sh && sh /root/apfup.sh

ozgreg
08-09-2006, 05:56 AM
Upgraded worked a charm :-)