+ Post New Thread
Results 1 to 10 of 10
*nix Thread, Zimbra - Port for UI in Technical; Hi, I wish to add (not change) a port that Zimbra uses for the web interface. I want it so ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    Zimbra - Port for UI

    Hi,

    I wish to add (not change) a port that Zimbra uses for the web interface.

    I want it so that it loads for both port 80 and 8080. Is this possible?

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    use iptables to redirect the port.

    Code:
    iptables -A PREROUTING -t nat -p tcp --dport 8080 -j REDIRECT --to-port 80

  3. Thanks to Geoff from:

    Hightower (2nd July 2009)

  4. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by Geoff View Post
    use iptables to redirect the port.

    Code:
    iptables -A PREROUTING -t nat -p tcp --dport 8080 -j REDIRECT --to-port 80
    Thanks Geoff. Would you be able to explain a bit more about IPTables and how I would implement that code?

    I've had a search about and can't find much to help me.

    Thanks.

  5. #4

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    UPDATE: Scratch that.... just had to type it in as a SU. Cheers Geoff. That's working internally!

  6. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    You'll need to add it to your init scripts if you want it to stick between reboots.

  7. Thanks to Geoff from:

    Hightower (2nd July 2009)

  8. #6

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Just stumbled on this thread again as I'm setting up a new Zimbra server. How do I save the IPTables so they are there for every start up?

    Thanks,

  9. #7
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,461
    Thank Post
    10
    Thanked 496 Times in 436 Posts
    Rep Power
    113
    Put a script in /etc/network/if-up.d/

  10. #8

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by DMcCoy View Post
    Put a script in /etc/network/if-up.d/
    Sorry - can you explain a bit further?

    Thanks

  11. #9
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,461
    Thank Post
    10
    Thanked 496 Times in 436 Posts
    Rep Power
    113
    Quote Originally Posted by Hightower View Post
    Sorry - can you explain a bit further?

    Thanks
    create a file in nano with the command in, save it into that folder. chmod +x the file so it's an executable. This will be run automatically when the interface is started. You will see that there are already files in there which do things like ntp etc.

  12. Thanks to DMcCoy from:

    Hightower (17th December 2009)

  13. #10

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    This worked a treat. I also had to put #!/bin/sh in the first line before the iptables line, but obviously you linux guru's already knew that!

    Thanks

SHARE:
+ Post New Thread

Similar Threads

  1. Zimbra Admin Port
    By kmount in forum *nix
    Replies: 8
    Last Post: 14th March 2014, 06:35 AM
  2. Backing up zimbra
    By reggiep in forum *nix
    Replies: 22
    Last Post: 25th February 2009, 01:42 PM
  3. Replies: 5
    Last Post: 24th February 2009, 11:24 AM
  4. Replies: 17
    Last Post: 23rd February 2009, 11:26 AM
  5. Replies: 3
    Last Post: 19th February 2008, 10:13 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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