Results 1 to 3 of 3

Thread: port forwarding for admin interface

  1. #1
    geekmonkey is offline New Member
    Join Date
    Jul 2008
    Posts
    4
    Rep Power
    7

    Default port forwarding for admin interface

    Hello,

    I thought I give zimbra another try and installation worked pretty smooth on Ubuntu 8.04.
    The problem I have is that I am behind a nasty firewall that has pretty much all ports closed except for a few standard ones.
    I want to access the admin interface through one of the standard ports and redirect it with iptables on the zimbra server to port 7071.

    This is what I added to iptables:
    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j REDIRECT --to-port 7071

    when I access https://www.example.com:8080 then the server replies, but redirects the request to https://www.example.com/zimbra/?zinitmode=http

    How do I setup iptables properly to get this working?
    Thanks for any help
    Michael

  2. #2
    irfan is offline Zimbra Employee
    Join Date
    Aug 2007
    Location
    Pune, India
    Posts
    46
    Rep Power
    8

    Default

    You might want to set zimbraAdminPort and zimbra_admin_service_port to your custom port.

    su - zimbra
    zmprov ms `zmhostname` zimbraAdminPort 8080
    zmlocalconfig -e zimbra_admin_service_port=8080
    zmcontrol stop
    zmcontrol start

    Also remove the iptables rule, it is not needed. Server admin port should listen on 8080
    - Irfan




  3. #3
    geekmonkey is offline New Member
    Join Date
    Jul 2008
    Posts
    4
    Rep Power
    7

    Default

    Thanks for your reply.
    That would certainly be the perfect solution, if only it would work.
    Zimbra continues to listen on 7071.

    Quote Originally Posted by irfan View Post
    You might want to set zimbraAdminPort and zimbra_admin_service_port to your custom port.

    su - zimbra
    zmprov ms `zmhostname` zimbraAdminPort 8080
    zmlocalconfig -e zimbra_admin_service_port=8080
    zmcontrol stop
    zmcontrol start

    Also remove the iptables rule, it is not needed. Server admin port should listen on 8080

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  2. [SOLVED] Build Zimbra..a little problem...
    By Abdelmonam Kouka in forum Developers
    Replies: 33
    Last Post: 05-22-2008, 05:10 AM
  3. Zimbra Installation Problems (RHEL AS v4)
    By stillwell in forum Installation
    Replies: 15
    Last Post: 06-28-2007, 07:58 PM
  4. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •