Results 1 to 10 of 10
  1. #1

    Arrow APF won't install properly!

    Hello all,

    Well I've been looking for the past two hours for a solution to my problem when installing APF, and have found nothing.

    I'm new to managing my own server and shell. Any help at all would be GREATLY appreciated! Thankyou.

    This is my shell log after trying to install and run APF:
    [email protected] [~]# cd /temporary
    [email protected] [/temporary]# wget http://www.rfxnetworks.com/downloads/apf-curr
    tar.gz
    --07:41:01-- http://www.rfxnetworks.com/downloads/apf-current.tar.gz
    => `apf-current.tar.gz'
    Resolving www.rfxnetworks.com... done.
    Connecting to www.rfxnetworks.com[69.50.193.149]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 91,798 [application/x-gzip]

    100%[====================================>] 91,798 284.59K/s ETA 00

    07:41:02 (284.59 KB/s) - `apf-current.tar.gz' saved [91798/91798]

    [email protected] [/temporary]# tar -xvzf apf-current.tar.gz
    apf-0.9.6-1/
    apf-0.9.6-1/files/
    apf-0.9.6-1/files/ad/
    apf-0.9.6-1/files/ad/conf.antidos
    apf-0.9.6-1/files/ad/.mnum
    apf-0.9.6-1/files/ad/ad.rules
    apf-0.9.6-1/files/ad/antidos
    apf-0.9.6-1/files/ad/arin.msg
    apf-0.9.6-1/files/ad/chains
    apf-0.9.6-1/files/ad/ignore.hosts
    apf-0.9.6-1/files/ad/ignore
    apf-0.9.6-1/files/ad/usr.msg
    apf-0.9.6-1/files/ad/tlog
    apf-0.9.6-1/files/ad/noncrit.ports
    apf-0.9.6-1/files/doc/
    apf-0.9.6-1/files/extras/
    apf-0.9.6-1/files/extras/dshield/
    apf-0.9.6-1/files/extras/dshield/README
    apf-0.9.6-1/files/extras/dshield/cron.ds
    apf-0.9.6-1/files/extras/dshield/install
    apf-0.9.6-1/files/extras/dshield/dshield-3.2.tar.gz
    apf-0.9.6-1/files/extras/fed.networks
    apf-0.9.6-1/files/extras/get_ports
    apf-0.9.6-1/files/extras/importconf
    apf-0.9.6-1/files/internals/
    apf-0.9.6-1/files/internals/multicast.networks
    apf-0.9.6-1/files/internals/cports.common
    apf-0.9.6-1/files/internals/functions.apf
    apf-0.9.6-1/files/internals/icmp.types
    apf-0.9.6-1/files/internals/internals.conf
    apf-0.9.6-1/files/internals/reserved.networks
    apf-0.9.6-1/files/internals/private.networks
    apf-0.9.6-1/files/vnet/
    apf-0.9.6-1/files/vnet/main.vnet
    apf-0.9.6-1/files/vnet/vnetgen
    apf-0.9.6-1/files/vnet/vnetgen.def
    apf-0.9.6-1/files/deny_hosts.rules
    apf-0.9.6-1/files/VERSION
    apf-0.9.6-1/files/apf
    apf-0.9.6-1/files/bt.rules
    apf-0.9.6-1/files/allow_hosts.rules
    apf-0.9.6-1/files/conf.apf
    apf-0.9.6-1/files/ds_hosts.rules
    apf-0.9.6-1/files/firewall
    apf-0.9.6-1/files/glob_allow.rules
    apf-0.9.6-1/files/glob_deny.rules
    apf-0.9.6-1/files/log.rules
    apf-0.9.6-1/files/main.rules
    apf-0.9.6-1/files/postroute.rules
    apf-0.9.6-1/files/preroute.rules
    apf-0.9.6-1/files/sysctl.rules
    apf-0.9.6-1/CHANGELOG
    apf-0.9.6-1/.ca.def
    apf-0.9.6-1/README.antidos
    apf-0.9.6-1/COPYING.GPL
    apf-0.9.6-1/logrotate.d.apf
    apf-0.9.6-1/README.apf
    apf-0.9.6-1/apf.init
    apf-0.9.6-1/cron.daily
    apf-0.9.6-1/importconf
    apf-0.9.6-1/install.sh
    [email protected] [/temporary]# cd apf-0.9.6-1/
    [email protected] [/temporary/apf-0.9.6-1]# ./install.sh
    Installing APF 0.9.6-1: eth0: error fetching interface information: Device not found
    Completed.

    Installation Details:
    Install path: /etc/apf/
    Config path: /etc/apf/conf.apf
    Executable path: /usr/local/sbin/apf
    AntiDos install path: /etc/apf/ad/
    AntiDos config path: /etc/apf/ad/conf.antidos
    DShield Client Parser: /etc/apf/extras/dshield/

    Other Details:
    Listening TCP ports: 1,21,25,53,80,110,111,143,443,465,993,995,1144,2082,2
    2086,2087,2095,2096,3306,5678
    Listening UDP ports: 53,43115
    Note: These ports are not auto-configured; they are simply presented for i
    mation purposes. You must manually configure all port options.
    [email protected] [/temporary/apf-0.9.6-1]# cd
    [email protected] [~]# /usr/local/sbin/apf -s
    : command not found: line 9:
    : command not found: line 16:
    : command not found: line 20:
    : command not found: line 24:
    : command not found: line 28:
    : command not found: line 33:
    : command not found: line 35:
    : command not found: line 39:
    : command not found: line 46:
    : command not found: line 50:
    : command not found: line 56:
    : command not found: line 60:
    : command not found: line 64:
    : command not found: line 70:
    : command not found: line 71:
    : command not found: line 75:
    : command not found: line 82:
    : command not found: line 90:
    : command not found: line 96:
    : command not found: line 102:
    : command not found: line 107:
    : command not found: line 111:
    : command not found: line 115:
    : command not found: line 118:
    : command not found: line 126:
    : command not found: line 129:
    : command not found: line 132:
    : command not found: line 135:
    : command not found: line 138:
    : command not found: line 141:
    : command not found: line 144:
    : command not found: line 150:
    : command not found: line 156:
    : command not found: line 161:
    : command not found: line 167:
    : command not found: line 174:
    : command not found: line 180:
    : command not found: line 188:
    : command not found: line 195:
    : command not found: line 201:
    : command not found: line 208:
    : command not found: line 213:
    : command not found: line 218:
    : command not found: line 222:
    : command not found: line 227:
    : command not found: line 234:
    : command not found: line 248:
    : command not found: line 258:
    : command not found: line 264:
    : command not found: line 277:
    : command not found: line 286:
    : command not found: line 303:
    : command not found: line 306:
    : command not found: line 312:
    : command not found: line 316:
    : command not found: line 328:
    : command not found: line 331:
    : command not found: line 334:
    : command not found: line 344:
    : command not found: line 347:
    : command not found: line 355:
    : command not found: line 358:
    : command not found: line 366:
    : command not found: line 369:
    : command not found: line 372:
    : command not found: line 378:
    : command not found: line 381:
    : command not found: line 386:
    : command not found: line 391:
    : command not found: line 397:
    : command not found: line 401:
    : command not found: line 406:
    : command not found: line 411:
    : command not found: line 415:
    : command not found: line 420:
    : command not found: line 424:
    : command not found: line 428:
    : No such file or directory36: /etc/apf
    [email protected] [~]#
    As you can see, after typing './install.sh' I get the error "eth0: error fetching interface information: Device not found."

    And as I go to run APF I get all those "command not found: line xxx:" errors.

    Anyone have any idea how I can get APF onto my server?

    Thankyou all,
    Rhett.

  2. #2
    Join Date
    Apr 2003
    Location
    NC
    Posts
    3,080
    Are you running a redhat based distro?
    John W, CISSP, C|EH
    MS Information Security and Assurance
    ITEagleEye.com - Server Administration and Security
    Yawig.com - Managed VPS and Dedicated Servers with VIP Service

  3. #3
    Join Date
    Oct 2002
    Location
    Manchester, UK
    Posts
    1,164
    You on a VPS by any chance? - If so you need to change all instances of eth0 to venet0
    Rob Greenwood
    RedHat Certified, Unix Consultant
    http://www.linkedin.com/in/bilco105

  4. #4
    Are you running a redhat based distro?
    Hey eth00,

    I am running on
    You on a VPS by any chance? - If so you need to change all instances of eth0 to venet0
    Hey Bilco105,

    Yes I am running a VPS, how exactly would I change instances of eth0 to venet0?

    Thanks all!!!
    Rhett.

  5. #5
    In my last post I forgot to say which OS I am running on, I'm running on CentOS 3.4

  6. #6
    Join Date
    Jun 2006
    Location
    NYC
    Posts
    1,446
    Even adjusting the interface to the virtual interface in many cases.... Due to the lack of capabilities in some VPS' APF will not run correctly. I would suggest Dos-Deflate in those cases.

    http://deflate.medialayer.com/

    and

    BFD - http://www.r-fx.ca/downloads/bfd-current.tar.gz
    FiberPeer.Com | | REAL DDoS Protection | Cloud Hosting | VPS | Dedicated Servers | High Bandwidth Hosting | 1Gbps-10Gbps Unmetered
    FiberPeer DDoS Mitigation | ethProxy Upgraded! | 14-Years Experience | Emergency 24/7 Support
    Visit us @ www.fiberpeer.com

  7. #7
    Join Date
    Apr 2004
    Location
    Singapore
    Posts
    1,506
    /etc/apf/conf.apf

    Look for eth0 and change it to venet0

    Can you paste the result of "uname -a" here? I would like to see what software is your host using for the VPS.
    tanfwc
    Singapore Managed Colocation
    Singapore BGP Announcement

  8. #8
    ecsportal - Thanks for the suggestion, but doesn't BFD require APF?

    tanfwc, this is the result I get:
    Linux server.rlcserver.com 2.4.20-021stab028.19.777-enterprise #1 SMP Wed Oct 19 13:05:01 MSD 2005 i686 athlon i386 GNU/Linux

    Thanks, Rhett.

  9. #9
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,858
    Does anybody know of symlinks work okay with device nodes? Perhaps you could just do

    ln -s /dev/vnet0 /dev/eth0

  10. #10
    Join Date
    Oct 2002
    Location
    Manchester, UK
    Posts
    1,164
    APF works fine on any virtual enviroments, you just need to ensure the monolithic kernel option is enabled within conf.apf along with any instance of eth0 replaced with venet0.

    I wouldn't reccommend any symlinks within /dev. However, regardless of that. Venet0 is a seperate type of interface from eth0, so a symlink would only cause you issues.
    Last edited by Bilco105; 09-17-2006 at 11:03 AM.
    Rob Greenwood
    RedHat Certified, Unix Consultant
    http://www.linkedin.com/in/bilco105

Posting Permissions

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