Web Hosting Talk







View Full Version : APF Configuration for TP NAS Backup


alphafi
07-12-2004, 04:53 PM
Hello,

I recently installed APF on the server and discovered that I was not able to access the NAS backup offered by The Planet. After some figuring out I found that it's the firewall that's blocking it.

Now I'm supposed to do this:
Please ensure that your firewall is open to allow FTP and FTP-DATA to 67.19.0.29. Also open the firewall for TCP/UDP ports 137, 138, 139, and 445 to 67.19.0.29.

But not sure what to add to the conf.apf and where!!! :confused:

Anyone can provide a guide?

Many thanks!

SmartActive
07-12-2004, 05:25 PM
hi,

pico /etc/apf/conf.apf

and add ports in incoming tcp & udp to ensure .

also add the above ip to /etc/apf/allowed_hosts

that's all

Steven
07-12-2004, 05:37 PM
all you need to do is add the ip to

/etc/apf/allow_hosts.rules

or do

apf -a 67.19.0.29

alphafi
07-12-2004, 05:49 PM
hi!

so I don't need to edit conf.apf at all right?

does apf -a 67.19.0.29 permanently fix the issue?

SmartActive
07-12-2004, 05:52 PM
no sir ,
add them to the file use pico & save it CTRL+X and type y

so it's easy .

Steven
07-12-2004, 06:49 PM
Originally posted by alphafi
hi!

so I don't need to edit conf.apf at all right?

does apf -a 67.19.0.29 permanently fix the issue?

apf -a will add it to the allow hosts yes.

alphafi
07-12-2004, 06:51 PM
sorry I'm a bit confused!

blockcipher
07-12-2004, 07:30 PM
type

apf -a <ip address> thats it.

SmartActive
07-12-2004, 07:35 PM
Originally posted by blockcipher
type

apf -a <ip address> thats it.

is it working with redhat enterprise ?

root@security [/]# apf -a 217.19.*.*
bash: apf: command not found

i tried many forms .

alphafi
07-12-2004, 07:40 PM
Great!

Got it working with apf -a <ip address>

Many thanks

Steven
07-12-2004, 07:45 PM
Originally posted by SmartActive
is it working with redhat enterprise ?

root@security [/]# apf -a 217.19.*.*
bash: apf: command not found

i tried many forms .


DO you have apf installed?

/etc/apf/apf -a

SmartActive
07-12-2004, 07:51 PM
sure i installed it .

and it's running , but your command requiers iptables.

so , adding them to the allow list is easy i think .

in both cases it's running :)

Steven
07-12-2004, 08:09 PM
Dude apf requires iptables period. Your paths are screwed up on your box.

cd /usr/bin;ln -s /sbin/iptables