1

Topic: iptables restart fails

==== Required information ====
- iRedMail version (check /etc/iredmail-release): v0.9.5-1
- Linux/BSD distribution name and version: Debian 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? v2.4.0
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When I try to restart iptables I get following error:

/etc/init.d/iptables-test restart
[ ok ] Flushing firewall rules: iptables.
[ ok ] Setting chains to policy ACCEPT: filter.
[....] Applying iptables firewall rules:iptables-restore: line 39 failed

I already downloaded the last version of  iptables.init.debian from bitbucket, but still the same error.

Here is the content of /etc/default/iptables (I removed here first and last commets):

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]

# Keep state.
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Loop device.
-A INPUT -i lo -j ACCEPT

# Backup device
-A IPNUT -i eth1 -j ACCEPT

# http, https
-A INPUT -p tcp --dport 80 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT

# smtp, submission
-A INPUT -p tcp --dport 25 -j ACCEPT
-A INPUT -p tcp --dport 587 -j ACCEPT
-A INPUT -p tcp --dport 465 -j ACCEPT

# pop3, pop3s
-A INPUT -p tcp --dport 110 -j ACCEPT
-A INPUT -p tcp --dport 995 -j ACCEPT

# imap, imaps
-A INPUT -p tcp --dport 143 -j ACCEPT
-A INPUT -p tcp --dport 993 -j ACCEPT

# ssh
-A INPUT -p tcp --dport 22 -j ACCEPT

# Allow PING from remote hosts.
-A INPUT -p icmp --icmp-type echo-request -j ACCEPT

COMMIT

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iptables restart fails

How about download default iptables rules for testing?
https://bitbucket.org/zhb/iredmail/raw/ … bles.rules

3

Re: iptables restart fails

Thanks for your hint.

Comparing your one with mine, I found the difference: Backup device
And there I just had a typo, which caused the error.
Now everything wokrs fine again.