Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables firewall making smtp/pop3 slow in response

Reply
Thread Tools Display Modes

iptables firewall making smtp/pop3 slow in response

 
 
Tobias Skytte
Guest
Posts: n/a

 
      01-19-2004, 07:36 AM
Hi all,

I am having a little troubble with my firewall.
I have a masq'd lan behind the server and the server has iptables
setup to drop everything on input and output tables as a policy and
then specifically opens up for ports 25, 110 and so on.
The problem is that now it takes the server 10 - 30 seconds to respond
on the smtp and pop3 ports.
If I telnet to the server on port 23 there is no problem, but 25 and
110 are very slow to respond. Once the connection is established the
speed is normal though.
What gives? any clues would be helpful.
Btw, the server is running rh 7.1.
Thanks in advance.

Tobias Skytte
 
Reply With Quote
 
 
 
 
Michael Fyles
Guest
Posts: n/a

 
      01-19-2004, 03:21 PM
Tobias Skytte <(E-Mail Removed)> wrote:
> I have a masq'd lan behind the server and the server has iptables
> setup to drop everything on input and output tables as a policy and
> then specifically opens up for ports 25, 110 and so on.
> The problem is that now it takes the server 10 - 30 seconds to respond
> on the smtp and pop3 ports.


It could be that the server queries something like
the ident service on the client machine, but with
dropped packets has to wait for a timeout. Perhaps
you could change the default to REJECT (this
requires a rule and can't be done as a policy, I
think), rather than DROP.

--
Michael
 
Reply With Quote
 
KH
Guest
Posts: n/a

 
      01-19-2004, 04:35 PM
Michael Fyles wrote:
> Tobias Skytte <(E-Mail Removed)> wrote:
>
>>I have a masq'd lan behind the server and the server has iptables
>>setup to drop everything on input and output tables as a policy and
>>then specifically opens up for ports 25, 110 and so on.
>>The problem is that now it takes the server 10 - 30 seconds to respond
>>on the smtp and pop3 ports.

>
>
> It could be that the server queries something like
> the ident service on the client machine, but with
> dropped packets has to wait for a timeout. Perhaps
> you could change the default to REJECT (this
> requires a rule and can't be done as a policy, I
> think), rather than DROP.
>


Or add a rule to specifically reject the requests to ident if you don't
want to change your default rule.

 
Reply With Quote
 
Nathan
Guest
Posts: n/a

 
      01-19-2004, 07:25 PM
Most likely the delay is due to packets being sent to port 113 (ident)
being dropped silently as mentioned below. If the server is your mail
server, you may consider disabling ident lookups as they aren't
particularly useful anyway.. You could also open up the port and run an
identd daemon as well... but it really depends on what your using the
machine for, how concerned you are about security, etc.

Nathan


KH wrote:
> Michael Fyles wrote:
>
>> Tobias Skytte <(E-Mail Removed)> wrote:
>>
>>> I have a masq'd lan behind the server and the server has iptables
>>> setup to drop everything on input and output tables as a policy and
>>> then specifically opens up for ports 25, 110 and so on.
>>> The problem is that now it takes the server 10 - 30 seconds to respond
>>> on the smtp and pop3 ports.

>>
>>
>>
>> It could be that the server queries something like
>> the ident service on the client machine, but with
>> dropped packets has to wait for a timeout. Perhaps
>> you could change the default to REJECT (this
>> requires a rule and can't be done as a policy, I
>> think), rather than DROP.
>>

>
> Or add a rule to specifically reject the requests to ident if you don't
> want to change your default rule.
>


 
Reply With Quote
 
Tobias Skytte
Guest
Posts: n/a

 
      01-20-2004, 12:08 AM
Hey thanks guys.
I added the REJECT for ident and now it works great.

Best regards,
Tobias Skytte
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
POP3 and SMTP prob with BT David Brown Broadband 17 12-28-2004 12:25 AM
browsing web became very slow after IPtables firewall Philip Sheng Linux Networking 0 08-12-2004 08:43 PM
pop3 and smtp marco Windows Networking 2 08-09-2004 06:50 PM
Slow Response in Outlook Express(Pop3) Matthew Broadband Hardware 0 04-30-2004 01:34 AM
Anyone using POP3 and SMTP that comes with Win2003 Server Jerry Weir Windows Networking 0 02-26-2004 03:25 AM



1 2 3 4 5 6 7 8 9 10 11