Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-2009, 02:41 PM
Active Member
 
Posts: 31
Default Problem with an internal ZImbra server

Hi everybody!
I have the following configuration: one OpenSuse 11 box (as a firewall/router/web server) and, in an internal Lan, a Ubuntu 8.04 Zimbra Mail server.
From outside I can access web site and zimbra (with a link in my main page: https//www.mysite.com)
From the internal lan I can access the web site but not zimbra, unless I write: https://192.168.1.x
I want to give my users the same link, no matter if they are coming to zimbra from outside or inside the Lan.
I have set up a split dns and with bind 9 different views (internal/external), but the problem remains.
Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 05-27-2009, 09:55 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by masterguido View Post
From the internal lan I can access the web site but not zimbra, unless I write: https://192.168.1.x
If you can't access your server by it's correct url then your split DNS is not set-up correctly, search the forums for some information on what commands you need to run to diagnose the problem and post the results here.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 05-27-2009, 10:59 PM
Moderator
 
Posts: 7,929
Default

Also check /var/log/messages to ensure that you do not have a error in your internal BIND view.
__________________
Reply With Quote
  #4 (permalink)  
Old 05-28-2009, 08:15 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Are you using http://www.site.com to access the website and https://www.site.com to access the Zimbra system from the outside? That's what it sounds like to me.. Does the firewall forward https traffic from the outside to your Zimbra system? If that's the case you'll need to replicate that routing setup for your internal users as well or simply just change their URL to https://mail.site.com from everywhere.
__________________
What a n00b!
Reply With Quote
  #5 (permalink)  
Old 05-28-2009, 11:48 AM
Active Member
 
Posts: 31
Default That's right

Quote:
Originally Posted by y@w View Post
Are you using http://www.site.com to access the website and https://www.site.com to access the Zimbra system from the outside? That's what it sounds like to me.. Does the firewall forward https traffic from the outside to your Zimbra system? If that's the case you'll need to replicate that routing setup for your internal users as well or simply just change their URL to https://mail.site.com from everywhere.
y@w, It is just the case. The firewall forwards https traffic from outside to zimbra box.
I canīt access https://mail.site.com from inside.
My firewall has:
Quote:
#Redirecciono entrada al puerto 443 al servidor de correo
$IPT -t nat -A PREROUTING -i $WAN -p tcp --dport 443 -j DNAT --to-destination 192.168.1.7:443
$IPT -A FORWARD -i $WAN -p tcp --dport 443 -m state --state NEW -j ACCEPT
How can I replicate this to the internal Lan?
I've tried:
Quote:
#Redirecciono entrada al puerto 443 al servidor de correo
$IPT -t nat -A PREROUTING -i $LAN -p tcp --dport 443 -j DNAT --to-destination 192.168.1.7:443
$IPT -A FORWARD -i $LAN -p tcp --dport 443 -m state --state NEW -j ACCEPT
but this didn't work. What can I do?
Thanks a lot for your help
Reply With Quote
  #6 (permalink)  
Old 05-28-2009, 12:05 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Hmm.. Yeah I wasn't sure if that would work or not. I actually don't know iptables very well but it looks like that should work, logically.

Just thinking out loud here.. You could setup an Apache (or whatever web server you're using) proxy and just have it listen only on your internal LAN (or both if you want to take out the DNAT rule for that matter).
__________________
What a n00b!
Reply With Quote
  #7 (permalink)  
Old 05-28-2009, 12:12 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Also, just to be sure we're on the same page.. This is what I'm assuming is happening:

From the outside:
http://www.site.com -> web server on external IP
https://www.site.com -> hits DNAT rule on external IP -> Zimbra server on internal network


From inside:
http://www.site.com -> web server on internal IP of web server
https://www.site.com -> https on internal IP of web server (which presumably isn't listening)


I just want to make sure since you did mention mail.site.com in your previous post.
__________________
What a n00b!
Reply With Quote
  #8 (permalink)  
Old 05-28-2009, 07:06 PM
Active Member
 
Posts: 31
Default

Quote:
Originally Posted by y@w View Post
Also, just to be sure we're on the same page.. This is what I'm assuming is happening:
From the outside:
http://www.site.com -> web server on external IP
https://www.site.com -> hits DNAT rule on external IP -> Zimbra server on internal network
From inside:
http://www.site.com -> web server on internal IP of web server
https://www.site.com -> https on internal IP of web server (which presumably isn't listening)
I just want to make sure since you did mention mail.site.com in your previous post.
You are right:
I have mail.site.com. If I write -http://mail.site.com it takes me to my web site, but if I write https://mail.site.com it goes down to zimbra server.

Last edited by masterguido; 05-29-2009 at 10:42 AM..
Reply With Quote
  #9 (permalink)  
Old 06-01-2009, 05:57 AM
Active Member
 
Posts: 31
Default

Do anybody have any idea/suggestion?
Reply With Quote
  #10 (permalink)  
Old 06-01-2009, 06:19 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by masterguido View Post
Do anybody have any idea/suggestion?
You've provided no diagnostic information for anyone to help you and I've already answered this question but I'll state it again, if you can't reach your server by it's url then your split DNS (and possibly your hosts file) is not set-up correctly. Search the forums on what information you need to provide for this problem.
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.