The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iptables invalid tcp error

Discussion in 'General Discussion' started by Haloweb, Mar 28, 2005.

  1. Haloweb

    Haloweb Well-Known Member

    Joined:
    Jul 2, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Hi There

    Please could someone help,

    I have just upgraded to the latest APF (APF version 0.9.4 ) on my RH server however I now get the following error when starting apf firewall

    root@server [~]# apf -r
    iptables v1.2.9: invalid TCP port/service `#123' specified
    Try `iptables -h' or 'iptables --help' for more information.

    thanks in advance for your help
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The latest is 0.9.5-1

    Check your /etc/apf/deny_hosts.rules and allow_hosts.rules for incorrect entries
     
  3. Haloweb

    Haloweb Well-Known Member

    Joined:
    Jul 2, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Chirpy,

    I am not quite sure if there should be anything in either both those files as everything
    seems to be commented out :confused:
     
  4. Haloweb

    Haloweb Well-Known Member

    Joined:
    Jul 2, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Phew I found the problem

    It was the ports i specified in my apf conf I put in #123 instead of 123

    Thank again Chirpy :)
     
Loading...

Share This Page