Results 1 to 6 of 6
  1. #1

    APF Firewall Strange Behavor

    Anyone is an expert for apf firewall here? I check my apf_log and saw it was automatically restarted every 12 hours. This is strange because the developer mode was disabled, and usually developer mode was only for 5 minutes and not for 12 hours.

    Yes, the apf was restarted and function, but it's strange to see it restarted every 12 hours. Any clue anyone?

  2. #2
    Join Date
    May 2006
    Location
    India
    Posts
    661
    First of all, check is there any Cron-job got installed in your server to restart the APF

    crontab -l
    grep -ir apf /etc/cron*
    SparkSupport.Com - The Premier Tech Company
    Cloud Solutions|Email Infra setup|VOIP|Video Streaming|Software Development
    Email: [email protected] Phone : 1- 408-600-1449 | Skype : shijils

  3. #3
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,574
    APF creates a file in:

    /etc/cron.daily/fw

    With these contents:

    Code:
    #!/bin/sh
    /etc/rc.d/init.d/apf restart >> /dev/null 2>&1
    Which effectively means that APF will be restarted on a daily basis (per default behavior). Are you by any chance confusing this for every 12 hours?

  4. #4
    Join Date
    May 2006
    Location
    India
    Posts
    661
    Just disable for the time being and try !
    SparkSupport.Com - The Premier Tech Company
    Cloud Solutions|Email Infra setup|VOIP|Video Streaming|Software Development
    Email: [email protected] Phone : 1- 408-600-1449 | Skype : shijils

  5. #5
    Quote Originally Posted by layer0 View Post
    APF creates a file in:

    /etc/cron.daily/fw

    With these contents:

    Code:
    #!/bin/sh
    /etc/rc.d/init.d/apf restart >> /dev/null 2>&1
    Which effectively means that APF will be restarted on a daily basis (per default behavior). Are you by any chance confusing this for every 12 hours?
    I think you are right, so this is normal behavior for APF? I did grep -ir apf /etc/cron* and it showed the /etc/rc.d/init.d/apf restart >> /dev/null 2>&1.

    How come apf needs to restart itself every 12 hours?

    Thanks all for helping me stop worrying about this strange behavior, though I'm still curious why the default behavior -- restart apf daily?

  6. #6
    Join Date
    Jan 2008
    Location
    St. John's, NL
    Posts
    2,114
    Quote Originally Posted by argh2xxx1 View Post
    I think you are right, so this is normal behavior for APF? I did grep -ir apf /etc/cron* and it showed the /etc/rc.d/init.d/apf restart >> /dev/null 2>&1.

    How come apf needs to restart itself every 12 hours?

    Thanks all for helping me stop worrying about this strange behavior, though I'm still curious why the default behavior -- restart apf daily?
    I normally don't touch APF (I always recommend ConfigServer Firewall instead), but I would assume that restarting APF may be done daily to remove temp IP bans and such.
    Cpanel/WHM PHP Perl Ruby Full Time Support
    LCWSoft - Canada web hosting (based in Newfoundland) since 2007
    Servers based in the US and Canada (Uptime Report)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •