Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2007, 01:45 PM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #2 (permalink)  
Old 08-27-2007, 11:13 AM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

What's the error?
Reply With Quote
  #3 (permalink)  
Old 09-01-2007, 08:51 PM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #4 (permalink)  
Old 09-02-2007, 12:26 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
Default

Are you actually running this as root?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-02-2007, 03:30 AM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #6 (permalink)  
Old 09-02-2007, 05:58 AM
Zimbra Consultant & Moderator
 
Posts: 11,518
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
Reply With Quote
  #7 (permalink)  
Old 09-02-2007, 08:21 AM
Active Member
 
Posts: 34
Default

Do you get the same results if you run "/sbin/iptables -nL"?
Reply With Quote
  #8 (permalink)  
Old 09-02-2007, 12:16 PM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #9 (permalink)  
Old 09-02-2007, 01:09 PM
Zimbra Consultant & Moderator
 
Posts: 11,518
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
Reply With Quote
  #10 (permalink)  
Old 09-02-2007, 04:20 PM
Advanced Member
 
Posts: 178
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
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0