1 (edited by ChristianP 2019-10-24 20:36:09)

Topic: Missing Iptables

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0 Beta2
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
wanted to unlock a few ports but I noticed that iptables didn't seem to be installed the folder (/etc/default/iptables) was empty. Then I set up the system freshly and installed everything again again no Iptables Start script under init.d is available I try to start the system comes an error message. Does anyone else have this problem?
Greetings Christian

/etc/init.d# ./iptables start
[....] Starting iptables (via systemctl): iptables.serviceJob for iptables.service failed because the control process exited with error code.
See "systemctl status iptables.service" and "journalctl -xe" for details.

/etc/init.d# systemctl status iptables.service
● iptables.service - LSB: Control iptables firewall.
   Loaded: loaded (/etc/init.d/iptables; generated)
   Active: failed (Result: exit-code) since Wed 2019-10-23 18:37:15 CEST; 2s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 9119 ExecStart=/etc/init.d/iptables start (code=exited, status=1/FAILURE)

Oct 23 18:37:15 mail.domain systemd[1]: Starting LSB: Control iptables firewall....
Oct 23 18:37:15 mail.domain systemd[1]: iptables.service: Control process exited, code=exited, status=1/FAILURE
Oct 23 18:37:15 mail.domain systemd[1]: iptables.service: Failed with result 'exit-code'.
Oct 23 18:37:15 mail.domain systemd[1]: Failed to start LSB: Control iptables firewall..

----

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

2

Re: Missing Iptables

Debian 10 uses "nftables" instead. Its config file is /etc/nftables.conf.

3

Re: Missing Iptables

ZhangHuangbin wrote:

Debian 10 uses "nftables" instead. Its config file is /etc/nftables.conf.

Do you know if all iptables rules will carry over to nftables on upgrade from 9>10?

4

Re: Missing Iptables

wylel wrote:

Do you know if all iptables rules will carry over to nftables on upgrade from 9>10?

iptables and nftables config file syntax are different, you need to migrate manually.

But if you continue running iptables RC/SysV script, it should work.

5 (edited by ChristianP 2019-10-25 19:54:40)

Re: Missing Iptables

Thanks, everything works smile