Question

Router not forwarding SMTP packets

Asked by: kevin1983

Hi,

We have a netgear router (Netgear DG834 v2 with firmware version 3.01.38) which contains a firewall rule to forward SMTP traffic onto our Sonicwall email security 3000 box so that email can be filtered for spam, good email can then sent to our email server.

However the router doesnt appear to forward SMTP packets. From looking at the logs on the router it does appear that the SMTP traffic is reaching the router and that the firewall rule that should forward it to the sonicwall box is being applied.

The SMTP traffic never seems to leave the router. We can connect to the internet fine through the router. We have restored the router to factory settings and reconfigured it but still no joy.

Below is a sample of the log file on the router, any ideas on how to resolve this issue?
A sample section of the log file. (the date/time wasnt set correctly after router settings were restored)

 
Sun, 2002-09-08 12:50:58 - TCP Packet - Source:117.193.233.47,1429 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:51:02 - TCP Packet - Source:122.164.85.173,2367 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:51:06 - TCP Packet - Source:81.152.38.46,4584 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:51:17 - TCP Packet - Source:201.231.93.23,64226 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:51:31 - TCP Packet - Source:122.168.50.118,1750 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:51:32 - TCP Packet - Source:122.168.50.118,1758 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:52:03 - TCP Packet - Source:200.50.165.129,62411 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:52:17 - TCP Packet - Source:125.24.152.50,11160 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:52:35 - TCP Packet - Source:124.43.203.1,3483 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:52:51 - Administrator login successful - IP:200.200.100.217
Sun, 2002-09-08 12:52:51 - TCP Packet - Source:218.168.203.179,2041 Destination:87.127.3.49,25 - [SMTP rule match]
Sun, 2002-09-08 12:52:51 - TCP Packet - Source:88.4.75.21,17833 Destination:87.127.3.49,25 - [SMTP rule match]

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-29 at 02:10:12ID24853917
Topics

Network Routers

,

Simple Mail Transfer Protocol (SMTP)

,

DSL Lines / Cable Internet

Participating Experts
2
Points
500
Comments
36

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SMTP
    Hi, we have aWinNt workstation but the SMTP protocol is not found.does it ship with NT workstation or with the NT server where to find it in both .
  2. SMTP
    Does anyone know of a good "Coding with SMTP" tutorial on the net? Regards bukko
  3. smtp
    can i hide my smtp server address from my receiver when i send emails?
  4. SMTP  SPAM errors
    We are currently not on any blacklists , but we are getting back messages from a few domains with the error - SMTP Protocol Returned a Permanent Error 554 Transaction Failed Spam Message not queued. ...
  5. inetinfo.exe making smtp connection[Packet Sniffing Anal…
    Hi we are having problem with lot of spamming from last couple of days, and our isp blocked us due to that. its sound allright now, today , i have used microsoft packet sniffeing software to see what packet is going out from myserver. one entry is making me afraid,so i want...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: shauncroucherPosted on 2009-10-29 at 03:54:23ID: 25692248

As well as a forward rule, you may need to add SMTP port 25 to any other firewall settings on the router. Every time a change is made, reboot to be on the safe side, some routers require a reboot for changes to be made.

Can you use telnet to test from outside and inside to your email security 3000 compliance. If you get a 220 banner response from inside, use the same test from outside to confirm if the port is forwarded properly.

Shaun

 

by: kevin1983Posted on 2009-10-29 at 04:41:04ID: 25692515

I have tried telnet using port 25 (internal and external), the logs show the SMTP traffic hitting the router and the firewall rule being applied. the 220 banner doesnt appear, just recive a timeout error message.

There are no other settings that I can change on the router. The only option relating to port forwarding has been set. There is a custom services option page but as SMTP has already been defined as a service I cannot add a rule there.

I've tried rebooting the router.

 

by: shauncroucherPosted on 2009-10-29 at 04:55:24ID: 25692598

Follow the article here: http://portforward.com/english/routers/port_forwarding/Netgear/DG834G/eMule.htm

NOTE that sometimes there is a section for port forwarding and a section for firewall rules where BOTH MUST BE CONFIGURED.

Shaun

 

by: kevin1983Posted on 2009-10-29 at 05:12:09ID: 25692704

I have attached screenshots of the current configuration, the second shot shows the message you get if you try and define another service on port 25.

SMTP is already defined as a service in the router. private ip address 200.200.100.190 is our Sonicwall email security box.




 

 

by: kevin1983Posted on 2009-10-29 at 05:14:37ID: 25692724

the first screenshot was the wrong one, please see attached:

 

by: kevin1983Posted on 2009-10-29 at 05:43:51ID: 25692953

Do you think there could be a fault with the router?, or the isp is blocking some traffic perhaps...although smtp traffic seems to reach the router so i guess thats not the case

 

by: moorhouselondonPosted on 2009-10-29 at 14:56:45ID: 25698662

The Sonicwall's gateway needs to point to the Netgear Router.

87.127.3.49 is not a valid Private IP range address, which could be a problem.  The default range for the Netgear is 192.168.0.x.

 

by: moorhouselondonPosted on 2009-10-29 at 15:00:17ID: 25698687

200.200.100.190 is not in a valid Private IP range either.  You could get the situation where DNS sends traffic for these non-private IP's out to the Internet, rather than directed locally.

 

by: kevin1983Posted on 2009-10-30 at 02:09:36ID: 25701160

200.200.100.190 is a valid class C private ip address which we usa on our internal network. A valid Class C can be in the range: 192.0.1.1 to 223.255.254.254. It might be a slightly unusal address as most companys tend to use 192.168.X.X buts its still fine.

The sonicwall box is not a gateway as such it is a email spam filtering box, and SMTP traffic needs to be forwarded to this not the other way round, the sonicwall box then forwards clean email onto the email server.

Im aware 87.127.3.49  is not a private IP address, this is the public IP address of a firewall but as i said that second screenshot that i poseted was incorrect and is not how the router is currently configured.

 

by: kevin1983Posted on 2009-10-30 at 02:42:07ID: 25701358

See valid IP Address ranges here: http://www.computerhope.com/jargon/i/ip.htm

 

by: moorhouselondonPosted on 2009-10-30 at 02:47:11ID: 25701386

>200.200.100.190 is a valid class C private ip address

http://wq.apnic.net/apnic-bin/whois.pl
I tapped that number into the above link and got this output:-



% APNIC found the following authoritative answer from: whois.lacnic.net

% Copyright LACNIC lacnic.net
%  The data below is provided for information purposes
%  and to assist persons in obtaining information about or
%  related to AS and IP numbers registrations
%  By submitting a whois query, you agree to use this data
%  only for lawful purposes.
%  2009-10-30 07:42:52 (BRST -02:00)

inetnum:     200.128/9
status:      allocated
owner:       Comite Gestor da Internet no Brasil
ownerid:     BR-CGIN-LACNIC
responsible: Frederico A C Neves
address:     Av. das Naýýes Unidas, 11541, 7ý andar
address:     04578-000 - Sýo Paulo - SP
country:     BR
phone:       +55 11 9119-0304 []
owner-c:     CGB
tech-c:      CGB
abuse-c:     CGB
inetrev:     200.128/9
nserver:     A.DNS.BR  
nsstat:      20091027 AA
nslastaa:    20091027
nserver:     B.DNS.BR  
nsstat:      20091027 AA
nslastaa:    20091027
nserver:     C.DNS.BR  
nsstat:      20091027 AA
nslastaa:    20091027
nserver:     D.DNS.BR  
nsstat:      20091027 AA
nslastaa:    20091027
nserver:     F.DNS.BR  
nsstat:      20091027 AA
nslastaa:    20091027
remarks:     These addresses have been further assigned to Brazilian users.
remarks:     Contact information can be found at the WHOIS server located
remarks:     at whois.registro.br or at http://whois.registro.br
created:     19950104
changed:     20020902

nic-hdl:     CGB
person:      Comite Gestor da Internet no Brasil
e-mail:      blkadm@NIC.BR
address:     Av. das Naýýes Unidas, 11541, 7ý andar
address:     04578-000 - Sýo Paulo - SP
country:     BR
phone:       +55 19 9119-0304 []
created:     20020902
changed:     20061004

% whois.lacnic.net accepts only direct match queries.
% Types of queries are: POCs, ownerid, CIDR blocks, IP
% and AS numbers.

 

by: kevin1983Posted on 2009-10-30 at 03:26:13ID: 25701567

That may be the case but our priavte IP address is behind a firewall/NAT which cannot be seen to the outside world and will not be routed on the internet so is doesnt matter if that address is in use on the public internet.

 

by: shauncroucherPosted on 2009-10-30 at 03:44:00ID: 25701638

Is there a reason why you have to use the IP structure?

It would be interesting to see what happens if you tried using a 192.168 or 172.16 or 10.0 etc etc

Shaun

 

by: moorhouselondonPosted on 2009-10-30 at 03:53:08ID: 25701669

Sometimes network devices make assumptions about their environment which can cause strange things to happen.  My recommendation would be to use a conventional Private IP Class C range.

Getting back to your other point.  I had a similar issue with a network recently which drove home to me the necessity that things that point one way have to have a corresponding link backwards too, in order to work properly.  In detail, I had a pc which was listening for packets from one Router, and another Router was also sending packets to that pc.  Even though the two Routers were on the same Network, same Subnet Mask, the pc flatly ignored the packets from the second Router.  the only way I resolved that issue was by putting a NIC card into the PC specifically to listen for traffic from the second Router.

 

by: kevin1983Posted on 2009-10-30 at 03:58:03ID: 25701691

the IP structure has been used on the internal network for a number of years and hasnt caused issues before.

moorhouselondon: you just made an very interesting point...we have another internt connection (our main internet connection) which is forwarding SMTP packets onto our sonicwall email spam box (200.200.100.190) fine which likely proves that our ip address structure is not the problem. What i'm trying to achieve is a level of fault tolerence so that if our first internet connection fails then email is routed through our second internet connection. but the 2 routers for the two different internet connections (different ISP's) of course have different gateway address's....sorry i guess i should of explained a bit better in my orginal question.

 

by: shauncroucherPosted on 2009-10-30 at 04:06:42ID: 25701745

SMTP uses TCP, which is a three way handshake protocol (a connection). This means that the server will need to have the DG set to the router.

Shaun

 

by: moorhouselondonPosted on 2009-10-30 at 04:09:24ID: 25701762

Yes, in fact resilience was how I stumbled upon this gotcha.  That's why I thought I would add my thoughts to this thread.  With a pc, it's easy, stick a net card in, but my brain's not in network topology mode this morning, so no quick answer from me on the sonicwall - unless you can do a diagram outlining where the sonicwall sits in relation to everything else.

 

by: kevin1983Posted on 2009-10-30 at 04:26:40ID: 25701838

Heres a quick diagram of our of where the sonicwall box is on our network:

 

by: kevin1983Posted on 2009-10-30 at 04:30:37ID: 25701860

do you think we would need to setup a computer with 2 Nic cards, one that listens on the private IP address of gateway 1 (router1) and the other nic listens on gateway 2 (router 2)?.

Looking at the settings on the sonicwall box theres an Network Architecture page....currently its set to  All in One (recommended for most deployments) but theres the option of setting it to: Split (for multi-datacenter deployments) maybe that might help although i think its meant to be if you have more than one sonicwall box. I think the sonicwall box only has one network card.

 

by: kevin1983Posted on 2009-10-30 at 04:32:50ID: 25701871

see digram of sonicwalls suggest split setup:

 

by: moorhouselondonPosted on 2009-10-30 at 04:41:07ID: 25701906

>do you think we would need to setup a computer with 2 Nic cards, one that listens on the private IP address of gateway 1 (router1) and the other nic listens on gateway 2 (router 2)?.

That would work I am pretty certain.  Unless Shaun has a better idea...

 

by: shauncroucherPosted on 2009-10-30 at 04:55:05ID: 25702001

You would need to have two MX records for this to work. Then a way of directing all the traffic to the Sonicwall. The important thing is that the SMTP conversation from outside to inside uses the same gateway, so dual NIC is one way to do this I guess.

Shaun

 

by: kevin1983Posted on 2009-10-30 at 05:02:11ID: 25702045

we already have 2 mx records setup....1 which goes through our main internet connection and one which goes through the second internet connection.

To enable all SMTP traffic to be directed to the sonicwall do you think SMTP traffic should be forwarded on from the 2 routers onto a computer with 2 nics and then the computer forwards the traffic onto the sonicwall box, would the computer need to have any smtp software installed to handle the traffic?

how can we ensure SMTP traffic from outside to in uses the same gateway if we have 2 internet connections with diferent public ip addreses (using different ISP) any suggestions would be great

 

by: moorhouselondonPosted on 2009-10-30 at 05:25:33ID: 25702214

>how can we ensure SMTP traffic from outside to in uses the same gateway if we have 2 internet connections with diferent public ip addreses (using different ISP) any suggestions would be great

The NIC's will have the Default Gateways pointing to the two different routers.  It doesn't matter that the ISP's are the same or different, because that only has an effect on the Public side of the router.  It is the MX record that does the routing for you.

>To enable all SMTP traffic to be directed to the sonicwall do you think SMTP traffic should be forwarded on from the 2 routers onto a computer with 2 nics and then the computer forwards the traffic onto the sonicwall box, would the computer need to have any smtp software installed to handle the traffic?

Thinking about it, there's still a problem here.  I think rather than have a pc which has two NIC's it would be easier to have two Sonicwalls, or configure the one Sonicwall for two gateways if that is a possibility.

 

by: kevin1983Posted on 2009-10-30 at 05:56:16ID: 25702418

i dont think its possbile to configure two gateways on the sonicwall box and dont really want to purchase another sonicwall box unless thats the only way. I guess other compnaies must have a method of providing a level of fault tolerence for email delivery.

so you think even useing a pc with 2 nic will still have issues?

 

by: moorhouselondonPosted on 2009-10-30 at 06:00:52ID: 25702464

Yes because SMTP traffic comes in on one NIC which points to its corresponding Gateway.  SMTP traffic comes in on the other NIC which points to its corresponding Gateway.  

Perhaps what's needed is a third NIC which points to the Sonicwall, with the Soniwall listening to traffic from that third NIC.  

Presumably a Proxy needs to route traffic from NIC1 to NIC3, and from NIC2 to NIC3.

 

by: moorhouselondonPosted on 2009-10-30 at 06:07:55ID: 25702519

Something like Mailgate should do the trick, but there are Shareware equivalents which will work.

 

by: kevin1983Posted on 2009-10-30 at 06:10:42ID: 25702550

Ok, to clarify do you mean perhaps setting up a computer with 3 nics, and this pc needs to have static public addreses?  and an MX record is point to the public ip address of this computer, the computer then forwards traffic from NIC 1 to NiC 3 and from NIC 2 to Nic 3?


 

by: kevin1983Posted on 2009-10-30 at 06:12:44ID: 25702570

if you could please clarify your suggested setup that might do the trick that would be great.

 

by: moorhouselondonPosted on 2009-10-30 at 06:16:22ID: 25702604

MX1 points to Public IP of NAT Router1
MX2 points to Public IP of NAT Router2

NAT Router1 -> pc NIC1 (static IP)
NAT Router2 -> pc NIC2 (static IP)

Proxy Gateway software in the pc routes pc NIC1 -> pc NIC3; and pc NIC2 -> pc NIC3

pc NIC3 (static IP)-> Sonicwall

 

by: kevin1983Posted on 2009-10-30 at 07:25:50ID: 25703243

ok thanks for this info thats a great help,

i guess the below are both static private (internal) IP addreses?
NAT Router1 -> pc NIC1 (static IP)
NAT Router2 -> pc NIC2 (static IP)

would you suggest mailgate for the proxy gateway software....this software: http://www.mailgate.com/  ?

 

by: moorhouselondonPosted on 2009-10-30 at 07:45:32ID: 25703435

>i guess the below are both static private (internal) IP addreses?
Yes

Mailgate is a bit pricey.  I'm sure it can be done with something Open Source, reliability is obviously important.

 

by: kevin1983Posted on 2009-11-03 at 04:08:30ID: 25728103

We have a Sonicwall TZ190 firwall which looks like it has another port labeld which can be used as another WAN port, maybe if our second internet connection is connected through this it can load balance between the 2 interent connections and route SMTP traffic through the second internet connection when the main internet connections is down. I guess this is a similar idea to what larger companies use, or some kind of hardware box that proxy's traffic from different internet conections.

 

by: moorhouselondonPosted on 2009-11-03 at 14:29:01ID: 25734536

http://www.smallnetbuilder.com/content/view/30099/109/

There seems to be some conflict in this review as to whether the device has two WAN ports, or one WAN port and an OPT port which is not used on this model.

 

by: kevin1983Posted on 2009-11-05 at 07:32:31ID: 31647412

Thanks for all your help. now have a better understanding of how SMTP traffic is handled.

 

by: kevin1983Posted on 2009-11-05 at 07:35:26ID: 25750560

THe device does have 2 WAN ports, have sucessfully configured the OPT as a second WAN port and now have the 2 internet connections running through the sonicwall tz190 firewall and setup ethernet load balancing so that if the main internet connection goes down the second internet connection automatically takes over. However still havent got SMTP traffic going through yet, it seems to get to the firewall from the second internet connection but doesnt get forwarded onto the Sonicwall email box.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...