Untangle Networks [home]


Go Back   Untangle Forums > General Forums > Tip of the Day!

Closed Thread
 
LinkBack Thread Tools
Old 07-04-2009, 05:00 AM   #1 (permalink)
Untangler
 
jchaves3's Avatar
 
Join Date: Aug 2008
Location: Teresina,Brazil - Lake Forest, Ca USA
Posts: 99
jchaves3 is on a distinguished road
Default How to: Outlook and UT's public IP

Hi everyone, I have my e-mail server sitting behind UT router, inside my LAN outlook doesn't work when I set it up with UT's Public IP(WAN), only works with UT's private IP (LAN).

P.S.: Out of my local network, outlook works fine when set it up with UT's Public IP.

Any ideas?
jchaves3 is offline  
Old 07-04-2009, 06:25 AM   #2 (permalink)
Untangle Ninja

 
WebFooL's Avatar
 
Join Date: Jan 2009
Location: Sweden (Eskilstuna)
URLs submitted: 57
Posts: 2,933
WebFooL is on a distinguished road
Send a message via MSN to WebFooL
Default

Hi,
How dose the Firewall rule look?

Do you have:
Source Interface: ANY
Destination Interface: Internal

Or:
Source Interface: External
Destination Interface: Internal
?

If you have External to Internal try with ANY insted. (As the cilent is coming from the inside)
WebFooL is offline  
Old 07-04-2009, 07:41 AM   #3 (permalink)
Untangler
 
jchaves3's Avatar
 
Join Date: Aug 2008
Location: Teresina,Brazil - Lake Forest, Ca USA
Posts: 99
jchaves3 is on a distinguished road
Default

Thanks for the reply,

Firewal rule is set as the attachments:

I tried source interface any, but I still can't connect inside of my network.
Attached Images
File Type: jpg firewall.JPG (59.2 KB, 29 views)
File Type: jpg port.JPG (70.5 KB, 29 views)
jchaves3 is offline  
Old 07-04-2009, 09:49 AM   #4 (permalink)
Untangler
 
Join Date: Sep 2007
URLs submitted: 23
Posts: 66
napoleon41 is on a distinguished road
Default

That's the way it is supposed to work. On the LAN side, use the LAN address. On the public side, use the public address.

Maybe I misunderstood your post.
napoleon41 is offline  
Old 07-04-2009, 10:14 AM   #5 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 7
Posts: 9,951
sky-knight is on a distinguished road
Default

Adjust your port forward rule to include the internal interface as well as external... then traffic can bounce off the external address and back in.

Or, if you prefer a more elegant approach... your mail server more than likely has a DNS name associated with it for easy access on the internet. If your network clients are using UT as their DNS server, you can create a host record within the dns service to resolve to the internal IP address.

6 of one, half dozen of the other. I prefer the latter, as it doesn't waste router resources on internal connections.
__________________
Intouch Technology
Rob Sandling, BS:SWE, MCP
Office: 480-272-9889
rob@intouchtechllc.com
sky-knight is online now  
Old 07-06-2009, 04:52 AM   #6 (permalink)
Untangler
 
jchaves3's Avatar
 
Join Date: Aug 2008
Location: Teresina,Brazil - Lake Forest, Ca USA
Posts: 99
jchaves3 is on a distinguished road
Default

Again, thanks for the replies!

I tried on port foward mark both interfaces, external and internal...but it gives me a big problem, all the outgoing e-mail return with the message: "too may hops" cuz both interface marked creates a loop.
I have my own Public DNS server running on windows 2003. A friend suggested creating 2 A records, one pointing to UT's public IP and the other pointing to UT's LAN IP. After flushing my dns, It seems the problem is solved.

Anyways, thanks my friends!
jchaves3 is offline  
Old 07-07-2009, 04:38 AM   #7 (permalink)
Untangler
 
jchaves3's Avatar
 
Join Date: Aug 2008
Location: Teresina,Brazil - Lake Forest, Ca USA
Posts: 99
jchaves3 is on a distinguished road
Default

Well I guess I was wrong...two A records ex: pop.mydomain.com.br pointing to a LAN IP and a WAN IP at the same time obviously wouldn't work. Actually, it work for while, but for user out of my network, the started getting outlook error, cuz my domain was resolving to a LAN IP. Now the solution...I turned on UT's DNS, set my domain and mail server on it and left my public DNS handling only one A record pointing to a public IP. That's it!

Thanks folks!
jchaves3 is offline  
Old 07-07-2009, 09:37 AM   #8 (permalink)
Untangler
 
Join Date: Sep 2007
URLs submitted: 23
Posts: 66
napoleon41 is on a distinguished road
Default

You already have external DNS pointing to your external IP's, right? Whoever hosts your DNS on the OUTSIDE of your network.

Put put the INTERNAL ip address records for your domain on your INTERNAL DNS servers for your LAN users.

Leave the EXTERNAL IP address of your mail servers on the EXERNAL DNS servers.

Typically, people's domain controllers serve as their DNS servers in house. Most routers can also be setup to do this function, though if you really need them to.
napoleon41 is offline  
Old 08-11-2009, 05:41 PM   #9 (permalink)
Master Untangler
 
boyan.sharic's Avatar
 
Join Date: May 2009
Location: Banja Luka, Bosnia and Herzegovina
URLs submitted: 3
Posts: 102
boyan.sharic is on a distinguished road
Default

could you please elaborate on that

i too have problem with inside users able to send and recive mail using internal LAN address of the mail server

where outside users can send and receive mail using public static IP address

i don't want my users to have to change their setting every day
boyan.sharic is offline  
Old 08-11-2009, 07:15 PM   #10 (permalink)
Untangler
 
Join Date: Sep 2007
URLs submitted: 23
Posts: 66
napoleon41 is on a distinguished road
Default

Say that your PUBLIC domain name is company.com, and your private is company.local

Some mail servers respond only to the fully qualified domain name (faqn) that the outside world uses (public).

i.e. it may or may not work to send or receive mail using the "mail.company.local" address or the inside IP address in outlook. Your mail server is setup to function as the public domain, not the private.

To fix this issue, best practice is to go to your INTERNAL DNS servers (MS Server 2003 and 2008 can do this as well as some gateway routers if you don't yet have internal servers) and setup the company.com domain.

Create the zone (AD integrated is what most people with a microsoft environment use) and add an A record, and also MX record for your mail server (presumably mail.company.com) using the INSIDE IP ADDRESS.

Now, from one of your work stations, ping your mail servers OUTSIDE FQDN (i.e. mail.company.com). It should resolve to the private address (192.168.x.x, 172.16-32.x.x, 10.x.x.x), not the public address.

Try to telnet [fqdn] 25 from a client using your public, and you should get a response from the mail server assuming that the DNS is setup.

If you have the mail server in the DMZ, make sure that there are appropriate rule for all necessary traffic to pass (port 25, 143_imap, etc. . . )
napoleon41 is offline  
Closed Thread

Thread Tools

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 On



All times are GMT -7. The time now is 03:10 PM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.3.2