hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : APF problems

Forum Jump

APF problems

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 05-17-2007, 08:41 AM
LP560 LP560 is offline
Web Hosting Master
Join Date: Apr 2005
Location: Tinterweb
Posts: 554

APF problems

I have just got an ssh issue sorted 10 minutes ago, now I have a problem with APF.
I decided to install CSF, went ok, disabled apf. Didnít like CSF to much and didnít have time to configure it correctly. So uninstalled csf, now APF is my main firewall, but for some reason it doesnít want to block ports, even though I have only enabled certain ports to be allowed such as 21, 80 etc. Restarted APF, rebooted server.
If anyone has any ideas please let me know.

Sponsored Links
Old 05-17-2007, 10:17 AM
TLott TLott is offline
Junior Guru
Join Date: Aug 2003
Location: Florida
Posts: 181
Any chance you accidentally rebooted to a different kernel without iptables? No change in the APF conf at all since your working pre-CSF install, right?

"Server Administration Done Right"

Server setup, hardening, migrations and more

Old 05-17-2007, 10:31 AM
LP560 LP560 is offline
Web Hosting Master
Join Date: Apr 2005
Location: Tinterweb
Posts: 554
I only rebooted when this issue arisen. IPtables is installed and working.
APF working and configured. Its just not blocking ports for some reason.

Sponsored Links
Old 05-17-2007, 11:00 AM
SparkSupport SparkSupport is offline
Web Hosting Master
Join Date: May 2006
Posts: 652
These are the possibilities i could think of :-

1) Your main IP is on eth1 and you have APF configured for eth0.
2) You have multiple uncommented entries of IG_TCP_CPORTS in apf conf. Only the last entry matters.

Before that, check whether its APF only that controls your firewall. To check that - stop your apf and list your iptables rules ( iptables -L -n ). If you still have non-empty rulesets listed, apf no longer has any control over the firewall. In that case, you will need to dig further

SparkSupport.Com - The Premier Tech Company
IT Infrastructure Management|Software Development|
Cloud Solutions|Email |VOIP|Streaming
Contact us for a free quote:
Phone : 1- 408-335-0493 | Skype : spark.subhish

Old 05-17-2007, 11:19 AM
Ramprage Ramprage is offline
Keep rockin' in the free world
Join Date: May 2002
Location: Kingston, Ontario
Posts: 1,573
Yep check your iptables rules and make sure APF is actually loading the ruleset. iptables -L

Upload Guardian 2 - Malicious Upload Scanner - Windows and Linux!
Instantly scan uploaded files
Get notified when released

Old 05-17-2007, 11:27 AM
LP560 LP560 is offline
Web Hosting Master
Join Date: Apr 2005
Location: Tinterweb
Posts: 554
When I stop apf, i have an empty rule set, when I start apf the rules are loaded.

Old 05-17-2007, 12:01 PM
LP560 LP560 is offline
Web Hosting Master
Join Date: Apr 2005
Location: Tinterweb
Posts: 554
Just done an APF re-install, seems to be blocking the correct ports.


Related posts from
Title Type Date Posted
Nominet Pilot Program Hopes to Help SMBs Combat Cyber Threats with Support, Advice Web Hosting News 2014-02-07 15:12:39
Windows Azure, Xbox Live Experience Problems as Xbox One Launches Web Hosting News 2013-11-22 13:05:40
NSA Data Center Plagued by Electrical Problems Web Hosting News 2013-10-08 14:12:56
Amazon Web Services Northern Virginia Outage Rocks Instagram, Vine Web Hosting News 2013-08-26 14:33:03
Five Rules for Moving to the Cloud Blog 2013-07-24 09:27:00

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?