Jump to content

Recommended Posts

Posted

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?

Posted
use iptables to redirect the port.

 

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 months later...
Posted
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.

  • Thanks 1
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...