Difference between revisions of "How to Install APF"

From Acenet Knowledgebase
Jump to: navigation, search
(test)
 
Line 1: Line 1:
<html> 1) Download and Install APF  
+
[1] Download and Install APF  
<div class="code_style">cd /usr/src<br /> wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz<br /> tar -xzf apf-current.tar.gz<br /> rm -f apf-current.tar.gz<br /> cd apf-*<br /> sh ./install.sh</div>
+
<syntaxhighlight lang="bash">
2) Update the APF config file  
+
cd /usr/src
<div class="code_style">pico /etc/apf/conf.apf</div>
+
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
A few lines need to be edited:  
+
tar -xzf apf-current.tar.gz
<div class="code_style">DEVEL_MODE="0"<br /> <br /> IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,587,993,995,1167,2082,2083,2086,2087,2095,2096,2719,3306,35000_36000,49152_49161"<br /> IG_UDP_CPORTS="21,53,465"<br /> <br /> EGF="1"<br /> EG_TCP_CPORTS="20,21,22,25,37,43,53,80,113,443,465,873,2087,2089,2719,3306,20001"<br /> EG_UDP_CPORTS="21,53,465,873"<br /> <br /> DLIST_PHP="1"<br /> DLIST_DSHIELD="1"<br /> DLIST_RESERVED="0"</div>
+
rm -f apf-current.tar.gz
3) Make sure that passive ports are open and that the FTP server is configured to use passive ports:  
+
cd apf-*
<div class="code_style">pico /etc/pure-ftpd.conf</div>
+
sh ./install.sh</syntaxhighlight>
 +
 
 +
[2] Update the APF config file  
 +
<syntaxhighlight lang="bash">
 +
pico /etc/apf/conf.apf</syntaxhighlight>
 +
 
 +
A few lines need to be edited:  
 +
<syntaxhighlight lang="bash">
 +
DEVEL_MODE="0"
 +
 
 +
IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,587,993,995,1167,2082,2083,2086,2087,2095,2096,2719,3306,35000_36000,49152_49161"
 +
IG_UDP_CPORTS="21,53,465"
 +
 
 +
EGF="1"
 +
EG_TCP_CPORTS="20,21,22,25,37,43,53,80,113,443,465,873,2087,2089,2719,3306,20001"
 +
EG_UDP_CPORTS="21,53,465,873"
 +
 
 +
DLIST_PHP="1"
 +
 
 +
DLIST_DSHIELD="1"
 +
 
 +
DLIST_RESERVED="0"</syntaxhighlight>
 +
 
 +
[3] Make sure that passive ports are open and that the FTP server is configured to use passive ports:  
 +
<syntaxhighlight lang="bash">
 +
pico /etc/pure-ftpd.conf</syntaxhighlight>
 +
 
 
  Change the following line:  
 
  Change the following line:  
<div class="code_style"># PassivePortRange 30000 50000</div>
+
<syntaxhighlight lang="bash">
 +
# PassivePortRange 30000 50000</syntaxhighlight>
 +
 
 
  to:  
 
  to:  
<div class="code_style">PassivePortRange 35000 36000</div>
+
 
4) Restart FTP  
+
<syntaxhighlight lang="bash">
<div class="code_style">service pure-ftpd restart</div>
+
PassivePortRange 35000 36000</syntaxhighlight>
5) Restart APF  
+
 
<div class="code_style">service apf restart</div></html> [[Category:APF]]
+
[4] Restart FTP  
 +
<syntaxhighlight lang="bash">
 +
service pure-ftpd restart</syntaxhighlight>
 +
 
 +
[5] Restart APF  
 +
<syntaxhighlight lang="bash">
 +
service apf restart</syntaxhighlight>
 +
 
 +
[[Category:APF]]

Revision as of 22:17, 5 October 2012

[1] Download and Install APF

cd /usr/src
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
tar -xzf apf-current.tar.gz
rm -f apf-current.tar.gz
cd apf-*
sh ./install.sh

[2] Update the APF config file

pico /etc/apf/conf.apf

A few lines need to be edited:

DEVEL_MODE="0"

IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,587,993,995,1167,2082,2083,2086,2087,2095,2096,2719,3306,35000_36000,49152_49161"
IG_UDP_CPORTS="21,53,465"

EGF="1"
EG_TCP_CPORTS="20,21,22,25,37,43,53,80,113,443,465,873,2087,2089,2719,3306,20001"
EG_UDP_CPORTS="21,53,465,873"

DLIST_PHP="1"

DLIST_DSHIELD="1"

DLIST_RESERVED="0"

[3] Make sure that passive ports are open and that the FTP server is configured to use passive ports:

pico /etc/pure-ftpd.conf
Change the following line: 
# PassivePortRange 30000 50000
to: 
PassivePortRange 35000 36000

[4] Restart FTP

service pure-ftpd restart

[5] Restart APF

service apf restart