Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Haloweb

    Haloweb Well-Known Member

    Joined:
    Jul 2, 2004
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    156
    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:
    156
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice