Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th June 2004, 10:46 AM
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 63
Posts: 1,939
How to : Installing and compiling APF firewall

Here is how to install and configure APF firewall (My Favorite firewall and popular among server admins)

Website : http://www.rfxnetworks.com/apf.php

1. Grab latest APF package

PHP Code:
wget [url]http://www.rfxnetworks.com/downloads/apf-current.tar.gz[/url] 
2. Extract It

PHP Code:
tar -xvzf apf-current.tar.gz 
3. Go to the extracted folder

PHP Code:
cd apf-version
(replace version with the version number - try to ls if you dont know)

4. Installing it

PHP Code:
./install.sh 
You should see these

APF installed
Install path: /etc/apf
Config path: /etc/apf/conf.apf
Executable path: /usr/local/sbin/apf

5. Configure your firewall settings, this case i use pico (my fav) you can use others such as vi or nano.

PHP Code:
 pico /etc/apf/conf.apf 
follow the instructions on config files.

Sample port config from our server

Common ingress (inbound) ports
# Common ingress (inbound) TCP ports -3000_3500 = passive port range for Pure FTPD
IG_TCP_CPORTS="21,22,25,53,80,110,143,443"
#
# Common ingress (inbound) UDP ports
IG_UDP_CPORTS="53"

Common egress (outbound) ports
# Common egress (outbound) TCP ports
EG_TCP_CPORTS="21,25,80,443,43"
#
# Common egress (outbound) UDP ports
EG_UDP_CPORTS="20,21,53"

Remember to disable DEVM="1" to 0 if your firewall is working. If you set to 1 it will flush your firewall rules so you wont get lock up from outside (if this is remote server)

Start your firewall with
/usr/local/sbin/apf -s

To autostart apf on reboot, run this:

chkconfig --level 2345 apf on

To autostart apf on reboot, run this:

chkconfig --level 2345 apf on


Hope this how to helps
__________________
+ Visit My new blog
- [B]SlashGear US, SlashGear Japan, and
+Founder & Admin of www.fedoraforum.org

Follow me at http://twitter.com/ewdi

Laptop : MacBook Pro 2.4Ghz 4GB DDR, 20-inch iMac Aluminium/4GB RAM
Reply With Quote
  #2  
Old 14th June 2004, 12:34 PM
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 63
Posts: 1,939
also there is rpm available from freshrpm, but you still need to edit /etc/apf/conf.apf before starting it
__________________
+ Visit My new blog
- [B]SlashGear US, SlashGear Japan, and
+Founder & Admin of www.fedoraforum.org

Follow me at http://twitter.com/ewdi

Laptop : MacBook Pro 2.4Ghz 4GB DDR, 20-inch iMac Aluminium/4GB RAM
Reply With Quote
Reply

Tags
apf, compiling, firewall, installing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing firewall (apt-get .. what ?) n03l Security and Privacy 3 15th December 2005 12:42 AM
Compiling before installing nothing? teudiss Using Fedora 1 26th October 2005 03:32 PM
Installing and compiling, etc. EnderZero Using Fedora 1 22nd October 2005 06:22 PM


Current GMT-time: 23:17 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat