Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Firewall rules

  1. #1
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    10

    Default Firewall rules

    I have followed the brief instructions on how to setup a iptables (my first attemt at iptabes i always used ipf) on the wiki when i run a /sbin/service iptables status i just get every line as an error is something wrong with the instructions on the wiki ?? or is this just my lack of experience with iptables??

    Firewall Configuration - ZimbraWiki
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    What's the error?

  3. #3
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    10

    Default

    Quote Originally Posted by jholder View Post
    What's the error?
    /sbin/service iptables status
    /etc/sysconfig/iptables-config: line 58: -A: command not found
    /etc/sysconfig/iptables-config: line 59: -A: command not found
    /etc/sysconfig/iptables-config: line 60: -A: command not found
    /etc/sysconfig/iptables-config: line 61: -A: command not found
    /etc/sysconfig/iptables-config: line 62: -A: command not found
    /etc/sysconfig/iptables-config: line 64: -A: command not found
    /etc/sysconfig/iptables-config: line 65: -A: command not found
    /etc/sysconfig/iptables-config: line 67: -A: command not found
    /etc/sysconfig/iptables-config: line 68: -A: command not found
    /etc/sysconfig/iptables-config: line 69: -A: command not found
    /etc/sysconfig/iptables-config: line 70: -A: command not found
    /etc/sysconfig/iptables-config: line 71: -A: command not found
    /etc/sysconfig/iptables-config: line 72: -A: command not found
    /etc/sysconfig/iptables-config: line 73: -A: command not found
    /etc/sysconfig/iptables-config: line 74: -A: command not found
    /etc/sysconfig/iptables-config: line 75: -A: command not found
    /etc/sysconfig/iptables-config: line 77: -A: command not found
    /etc/sysconfig/iptables-config: line 78: -A: command not found
    /etc/sysconfig/iptables-config: line 79: -A: command not found
    /etc/sysconfig/iptables-config: line 80: -A: command not found
    /etc/sysconfig/iptables-config: line 81: -A: command not found
    /etc/sysconfig/iptables-config: line 82: -A: command not found
    /etc/sysconfig/iptables-config: line 83: -A: command not found
    /etc/sysconfig/iptables-config: line 84: -A: command not found
    /etc/sysconfig/iptables-config: line 85: -A: command not found
    /etc/sysconfig/iptables-config: line 86: -A: command not found
    /etc/sysconfig/iptables-config: line 87: -A: command not found
    /etc/sysconfig/iptables-config: line 89: -A: command not found
    /etc/sysconfig/iptables-config: line 90: COMMIT: command not found
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Are you actually running this as root?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    10

    Default

    yes i am running this as root is that bad?
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by rmvg View Post
    yes i am running this as root is that bad?
    No, that's what you should be doing. That error usually arises because it's not run as root or you haven't done an 'su - root' - do you have the hypen in there when you su?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    May 2006
    Location
    Reston, VA
    Posts
    34
    Rep Power
    9

    Default

    Do you get the same results if you run "/sbin/iptables -nL"?

  8. #8
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    10

    Default

    nope i get this

    /sbin/iptables -nL
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    then this
    [root@canmail zcs]# /sbin/service iptables status
    /etc/sysconfig/iptables-config: line 58: -A: command not found
    /etc/sysconfig/iptables-config: line 59: -A: command not found
    /etc/sysconfig/iptables-config: line 60: -A: command not found
    /etc/sysconfig/iptables-config: line 61: -A: command not found
    /etc/sysconfig/iptables-config: line 62: -A: command not found
    /etc/sysconfig/iptables-config: line 64: -A: command not found
    /etc/sysconfig/iptables-config: line 65: -A: command not found
    /etc/sysconfig/iptables-config: line 67: -A: command not found
    /etc/sysconfig/iptables-config: line 68: -A: command not found
    /etc/sysconfig/iptables-config: line 69: -A: command not found
    /etc/sysconfig/iptables-config: line 70: -A: command not found
    /etc/sysconfig/iptables-config: line 71: -A: command not found
    /etc/sysconfig/iptables-config: line 72: -A: command not found
    /etc/sysconfig/iptables-config: line 73: -A: command not found
    /etc/sysconfig/iptables-config: line 74: -A: command not found
    /etc/sysconfig/iptables-config: line 75: -A: command not found
    /etc/sysconfig/iptables-config: line 77: -A: command not found
    /etc/sysconfig/iptables-config: line 78: -A: command not found
    /etc/sysconfig/iptables-config: line 79: -A: command not found
    /etc/sysconfig/iptables-config: line 80: -A: command not found
    /etc/sysconfig/iptables-config: line 81: -A: command not found
    /etc/sysconfig/iptables-config: line 82: -A: command not found
    /etc/sysconfig/iptables-config: line 83: -A: command not found
    /etc/sysconfig/iptables-config: line 84: -A: command not found
    /etc/sysconfig/iptables-config: line 85: -A: command not found
    /etc/sysconfig/iptables-config: line 86: -A: command not found
    /etc/sysconfig/iptables-config: line 87: -A: command not found
    /etc/sysconfig/iptables-config: line 89: -A: command not found
    /etc/sysconfig/iptables-config: line 90: COMMIT: command not found
    Table: filter
    Chain INPUT (policy ACCEPT)
    num target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    num target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination

    then this when check the status again

    [root@canmail zcs]# /sbin/service iptables status
    /etc/sysconfig/iptables-config: line 58: -A: command not found
    /etc/sysconfig/iptables-config: line 59: -A: command not found
    /etc/sysconfig/iptables-config: line 60: -A: command not found
    /etc/sysconfig/iptables-config: line 61: -A: command not found
    /etc/sysconfig/iptables-config: line 62: -A: command not found
    /etc/sysconfig/iptables-config: line 64: -A: command not found
    /etc/sysconfig/iptables-config: line 65: -A: command not found
    /etc/sysconfig/iptables-config: line 67: -A: command not found
    /etc/sysconfig/iptables-config: line 68: -A: command not found
    /etc/sysconfig/iptables-config: line 69: -A: command not found
    /etc/sysconfig/iptables-config: line 70: -A: command not found
    /etc/sysconfig/iptables-config: line 71: -A: command not found
    /etc/sysconfig/iptables-config: line 72: -A: command not found
    /etc/sysconfig/iptables-config: line 73: -A: command not found
    /etc/sysconfig/iptables-config: line 74: -A: command not found
    /etc/sysconfig/iptables-config: line 75: -A: command not found
    /etc/sysconfig/iptables-config: line 77: -A: command not found
    /etc/sysconfig/iptables-config: line 78: -A: command not found
    /etc/sysconfig/iptables-config: line 79: -A: command not found
    /etc/sysconfig/iptables-config: line 80: -A: command not found
    /etc/sysconfig/iptables-config: line 81: -A: command not found
    /etc/sysconfig/iptables-config: line 82: -A: command not found
    /etc/sysconfig/iptables-config: line 83: -A: command not found
    /etc/sysconfig/iptables-config: line 84: -A: command not found
    /etc/sysconfig/iptables-config: line 85: -A: command not found
    /etc/sysconfig/iptables-config: line 86: -A: command not found
    /etc/sysconfig/iptables-config: line 87: -A: command not found
    /etc/sysconfig/iptables-config: line 89: -A: command not found
    /etc/sysconfig/iptables-config: line 90: COMMIT: command not found
    Table: filter
    Chain INPUT (policy ACCEPT)
    num target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    num target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

  9. #9
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You shouldn't need to run that command with '/sbin/' in the path, if you do you're not running as root. What happens if you leave the path off that command?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    10

    Default

    sbin is not in my path

    # service iptables status
    bash: service: command not found
    [root@canmail imapscripts]#
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

Similar Threads

  1. Rules du Jour - spamassassin
    By sturgis in forum Administrators
    Replies: 10
    Last Post: 11-27-2007, 09:12 AM
  2. zmtrainsa - can't find site rules
    By reza225 in forum Administrators
    Replies: 9
    Last Post: 07-09-2007, 12:19 PM
  3. Personal rules
    By Assaf in forum Administrators
    Replies: 1
    Last Post: 01-16-2007, 06:56 AM
  4. LDAP auth working only when firewall stopped
    By brousky in forum Installation
    Replies: 1
    Last Post: 09-19-2006, 06:32 AM
  5. Server behind firewall
    By VmarkV in forum Installation
    Replies: 3
    Last Post: 11-05-2005, 08:37 PM

Posting Permissions

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