Re: Iptables, tcpdump and smtp... Hmmm

From: Karl Heyes (karl_heyes@removethisbit.lineone.net)
Date: 12/21/01


From: Karl Heyes <karl_heyes@removethisbit.lineone.net>
Date: Fri, 21 Dec 2001 00:13:19 +0000

On Thu, 20 Dec 2001 22:43:45 +0000, Edoardo Costa wrote:

> Hi all,
> I got a little problem with my fw and I can't figure out what's wrong.
>
> I opened it up (smtp) to make sure I could send my mail:
>
> $ipt -A INPUT -v -p TCP --dport 25 -j ACCEPT
> $ipt -A OUTPUT -v -p TCP --dport 25 -j ACCEPT
>
> (short term sollution ;)
>
> My mail still doesn't go out!
> I ran a tcp dump with the firewall activated and one without. The
> mail only goes out *without* the firewall and the only difference I
> can find in the tcpdump log is that the mal isn't pushed (P flag).
>
> Can anyone tell me what I'm restricting?

The SMTP server is trying to talk to your machine on port some high
number port eg 1052 in the snapshot, and the firewall is disallowing
it.

$ipt -A INPUT -p tcp --sport smtp -i ppp0 -j ACCEPT

That will allow the remote box to connect in. You want to state the
source IP but yahoo use various servers.

karl.



Relevant Pages

  • Re: [Newbie alert!] Is the Linksys BEFSX41 hardware Firewall/router a "real" firewall?
    ... there is very little that a real firewall appliance will ... ALL inbound and outbound traffic in real time - a simple KVM switch will ... outbound SMTP then it can spam all it wants. ... Private Ports in some versions - where you can list port ranges to block ...
    (comp.security.firewalls)
  • Re: Mail sent through IIS virtual SMTP server not arriving
    ... Open the IIS Manager and check the properties for the smtp server. ... I am using port number 5181. ... ' Create a new blank MailMessage ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: servers
    ... The reason for that simplicity is because Gmail uses SMTP port 465 ... the SMTP server must be the same as the one providing your Internet ... If you frequently send from multiple locations, get a free Gmail account, ...
    (microsoft.public.windows.vista.mail)
  • RE: SBS firewall blocking port 25 SMTP traffic?
    ... you should forward the incoming port 25 on firewall to port 25 ... Microsoft CSS Online Newsgroup Support ... SBS firewall blocking port 25 SMTP traffic? ...
    (microsoft.public.windows.server.sbs)
  • Re: change incoming mail pop3 to smtp
    ... Hi thanks for your help so far, i have run the CEICW again, and emails are ... and SMTP SERVER. ... the telnet is on port 23 ... This has not made any difference, should i be configuring the SBS firewall? ...
    (microsoft.public.windows.server.sbs)