1

Topic: help me to reinstall iptables

Hi,
I have flushed all iptables by using iptables -F and saved the service which I got from iredmail and saved the service.
Can anyone please guide me how to reconfigure the iptables

Regards
siddartha.g

----

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

2

Re: help me to reinstall iptables

Refer to sample config file shipped in iRedMail:
http://code.google.com/p/iredmail/sourc … bles.rules

3 (edited by siddartha.g 2011-06-28 15:12:27)

Re: help me to reinstall iptables

ZhangHuangbin wrote:

Refer to sample config file shipped in iRedMail:
http://code.google.com/p/iredmail/sourc … bles.rules

Thanks for your reply, In ubuntu where I need to save them( I have observed your link Sample iptables rules. It should be localted at  /etc/sysconfig/iptables is mentioned in the same page but I am unable to find /etc/sysconfig/iptables)

Regards
siddartha

4

Re: help me to reinstall iptables

It's /etc/default/iptables on Debian/Ubuntu.
You can simply copy it to /etc/default/iptables, make sure port of OpenSSH server is allowed, default is port 22. Then restart iptables service.

5

Re: help me to reinstall iptables

ZhangHuangbin wrote:

It's /etc/default/iptables on Debian/Ubuntu.
You can simply copy it to /etc/default/iptables, make sure port of OpenSSH server is allowed, default is port 22. Then restart iptables service.

I have copied it to /etc/default/iptables, later i have saved the ip tables by using "iptable-save", but i am not able to restart the ip tables
"/etc/init.d/iptables" not able to locate and
"service iptables stop/start/restart" giving error like unrecognized service

Regards
siddartha