Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere   

The above 'ACCEPT'-line is quiet confusing to me. Doesn't it mean, that I allow all incoming traffic? And if, how can I instead deny it?

How do I have to configure iptables, when I want to run an email server as well?

When configuring your firewall, you can set default policy to accept all traffic and then deny unwanted ones. The other (more secure) one is to set the default policy to deny all traffic and accept the needed ones.

For your email services, you will usually need to open the port of SMTP, POP, and IMAP. You cna find many tutorials and howtos on configuring iptables

CentOS has a great introduction to iptables in their documentation.

http://wiki.centos.org/HowTos/Network/IPTables

  • Thank you both for your kind advice! I will check out the CentOS introduction then. :-) – Robert Frost Dec 29 '11 at 21:09

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.