Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
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?

share|improve this question
1  
See serverfault.com/questions/189729/… –  ott-- Dec 29 '11 at 20:17
    
And also Google, iptables is complex and there are hundreds of resources out there (techrepublic.com/article/…). Try to crate a set of rules yourself and then ask the community for help debugging them (like this serverfault.com/questions/345111/…). –  msanford Dec 29 '11 at 20:31

2 Answers 2

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

share|improve this answer

CentOS has a great introduction to iptables in their documentation.

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

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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