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

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 10-27-2009, 09:48 AM
Senior Member
 
Posts: 58
Default [SOLVED] Nessus Security Scan Fail - Internal IP in HTTP Header

As part of our company security policy we regularly run Nessus security scanner against our servers.

Our Zimbra OSS has failed on "HTTP Header Internal IP Disclosure" which basically means the internal 192.168.x.x IP of the server is being sent in the HTTP header. Tenable Network Security

On Tomcat we add a proxyName value to rewrite the header with the domain name.

But I don't know if this is possible with Jetty, or how it is done in the Zimbra Jetty.

Anyone any ideas?

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-31-2009, 01:12 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

Why don't you just disable the x-originating-ip in the Admin UI or is there some other IP showing?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-31-2009, 06:40 AM
Senior Member
 
Posts: 58
Default

It's not in the email header, but the HTTP header returned from Jetty.

I have the option you describe disabled already.

Thanks

bertie
Reply With Quote
  #4 (permalink)  
Old 10-31-2009, 12:08 PM
Senior Member
 
Posts: 58
Default

Found a solution. Similar to the Tomcat method.

In /opt/zimbra/jetty/etc/jetty.xml.in add the following lines to the <!-- user services connector, no SSL --> section:

<Set name="forwarded">true</Set>
<Set name="hostHeader">mail.domain.com</Set>


and to the <!-- user services connector, SSL --> section:

<Set name="forwarded">true</Set>
<Set name="hostHeader">mail.domain.com:443</Set>

Then restart Zimbra.

Don't use the jetty.xml as this is overwritten by the .in version when Zimbra restarts.

Bertie
Reply With Quote
  #5 (permalink)  
Old 11-02-2009, 05:21 PM
Senior Member
 
Posts: 58
Default

P.s. Seems a Zimbra upgrade removes this.
Reply With Quote
  #6 (permalink)  
Old 04-14-2011, 09:13 AM
Member
 
Posts: 14
Unhappy

Quote:
Originally Posted by bertie_uk View Post
P.s. Seems a Zimbra upgrade removes this.
That's normal Zimbra behaviour, BTW.
Reply With Quote
  #7 (permalink)  
Old 04-14-2011, 09:47 AM
Member
 
Posts: 14
Question Will the external IP show in Zimbra log?

Quote:
Originally Posted by bertie_uk View Post
In /opt/zimbra/jetty/etc/jetty.xml.in add the following lines to the <!-- user services connector, no SSL --> section:
<Set name="forwarded">true</Set>
<Set name="hostHeader">mail.domain.com</Set>
and to the <!-- user services connector, SSL --> section:
<Set name="forwarded">true</Set>
<Set name="hostHeader">mail.domain.com:443</Set>
Then restart Zimbra.
Sorry to raise old thread, but I am wondering whether this change will allow the IP address of the client show in mailbox.log and audit.log of Zimbra behind http proxies?

For example, an failed login from IP address 99,98.97.96 which connect to proxy 111.112.113.114 will show up as a log entry like this:
Code:
2011-04-13 20:37:39,694 INFO  [btpool0-36341] [name=anaccount@mydomain.tld;oip=111.112.113.114;ua=zclient/5.0.11_GA_2695.RHEL5_64;] SoapEngine - handler exception: authentication failed for anaccount, invalid password
As the actual address 99,98.97.96 does not show at all. With the change bertie_uk suggested will cause the log entry those the actual client IP address in that log entry?

Thanks!
Reply With Quote
  #8 (permalink)  
Old 11-13-2011, 06:07 AM
j2b j2b is offline
Special Member
 
Posts: 109
Default

Please see the other your request: logging client IPs when running behind non-Zimbra nginx HTTP proxy
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.