Skip to contentSkip to conversation

Iptables for webmail access

DISCUSSION Alejandro Cabrera Obed 3 participants 3 messages Sep 27, 2005 – Sep 28, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi people,

I have a Linux machine with a webmail server (smtp+imap+http), and I have a iptables script in order to protect the host.

By default I deny all the traffic. Then, I enable all new connections (--syn) from every hosts (-s 0/0) to ports 25, 80 and 143.

But whern a try to log in via web, I can enter the webmail interface and I get a message teling "IMAP timeout".

The connection from the webmail to the imap server is from eth0 to eth0, I suposse Im forgetting something like this.....

Can you help me with a iptables rule in order to connect to my imap server from the webmail interface, both in a unique machine ???

Thanks a lot,

Alejandro

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

are you allowing traffic on the lookback interface in input?

iptables -A INPUT -i lo -j ACCEPT

Remember traffic to localhost will go through OUTPUT, and then will reach INPUT.

Quoted 24 lines · Alejandro Cabrera Obed

Hi people,

I have a Linux machine with a webmail server (smtp+imap+http), and I have a iptables script in order to protect the host.

By default I deny all the traffic. Then, I enable all new connections (--syn) from every hosts (-s 0/0) to ports 25, 80 and 143.

But whern a try to log in via web, I can enter the webmail interface and I get a message teling "IMAP timeout".

The connection from the webmail to the imap server is from eth0 to eth0, I suposse Im forgetting something like this.....

Can you help me with a iptables rule in order to connect to my imap server from the webmail interface, both in a unique machine ???

Thanks a lot,

Alejandro

#3 lore raw
In reply to Alejandro Cabrera Obed
Quoted 8 lines · Alejandro Cabrera Obed

Hi people,

I have a Linux machine with a webmail server (smtp+imap+http), and I have a iptables script in order to protect the host.

By default I deny all the traffic. Then, I enable all new connections (--syn) from every hosts (-s 0/0) to ports 25, 80 and 143.

Quoted 8 lines

But whern a try to log in via web, I can enter the webmail interface and I get a message teling "IMAP timeout".

The connection from the webmail to the imap server is from eth0 to eth0, I suposse Im forgetting something like this.....

Can you help me with a iptables rule in order to connect to my imap server from the webmail interface, both in a unique machine ???

No, not enough information :( Please post your rule set, either the output of iptables -nvxL or iptables-save.