Thank you for the reply.

I have configured my IPTABLES in several ways but I can't telnet to
eth0, here is my iptables rules:

[code]
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-I INPUT -d 192.168.0.0 -p tcp --dport 143 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
[/code]

The result is always the same:

[code]
[root@localhost andrelopes]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:6B:43:E2
          inet addr:192.168.59.246  Bcast:192.168.59.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe6b:43e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8659 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9188890 (8.7 MiB)  TX bytes:979323 (956.3 KiB)
...
[root@localhost andrelopes]# telnet 192.168.59.246 25
Trying 192.168.59.246...
telnet: connect to address 192.168.59.246: Connection refused
[/code]

By the way, I'm testing this on a VMWare Virtual Machine

Any clues on why iptables is not accepting the rule on port 25?


Best Regards,


On Tue, Feb 7, 2012 at 8:04 PM, Nick Bright <nick.bri...@valnet.net> wrote:
> On 2/7/2012 1:58 PM, Andre Lopes wrote:
>>
>> Hi all,
>>
>> I have installed and configured Postfix and Dovecot in CentOS6, I have
>> followed this tutorials:
>>
>> Postfix, http://www.server-world.info/en/note?os=CentOS_6&p=mail&f=1
>> Dovecot, http://www.server-world.info/en/note?os=CentOS_6&p=mail&f=2
>>
>>
>> What can I do to try to solve this? Please give me a clue.
>>
>> Best Regards,
>>
>
> The default configuration of Postfix on CentOS6 specifies to only listen on
> localhost. Make sure that you've set inet_interfaces to "inet_interfaces =
> all" to ensure that postfix listens on all IP addresses.
>
> Alternatively, refer to
> http://www.postfix.org/postconf.5.html#inet_interfaces for more specific
> parameter documentation.
>
> Also make sure that you've allowed port 25 in your firewall. If you're using
> the default CentOS iptables firewall, add:
>
> -A INPUT -m state --state NEW -m tcp -p tcp --dport smtp -j ACCEPT
>
> with the other similar looking lines, then do "service iptables restart" to
> apply the changes.
>
>  - Nick Bright
>

Reply via email to