Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: azop on June 03, 2008, 01:46:01 am

Title: Forwarding ports to different public ip addresses -> private ip addresses
Post by: azop on June 03, 2008, 01:46:01 am
We have two public IP addresses from our ISP.  I want be able to specify which ports get forwarded to which )internal) IP addresses.

IE publicip1:80 -> lancomputer1:8080
IE publicip2:80 -> lancomputer2:8080

Can this be done from the ebox administrator?
Title: Re: Forwarding ports to different public ip addresses -> private ip addresses
Post by: sixstone on June 03, 2008, 08:55:30 am
From Firewall -> Redirects, you may do the Network Address Translation (NAT) without a problem and intuitively.

Hope this helps.
Title: Re: Forwarding ports to different public ip addresses -> private ip addresses
Post by: javi on June 04, 2008, 01:21:11 pm
You can do that from the eBox GUI as long as every public IP comes in eBox by  a separate network interface.
Title: Re: Forwarding ports to different public ip addresses -> private ip addresses
Post by: azop on June 04, 2008, 01:24:45 pm
Seperate virtual interface or real interface (eth2)

You can do that from the eBox GUI as long as every public IP comes in eBox by  a separate network interface.
Title: Re: Forwarding ports to different public ip addresses -> private ip addresses
Post by: sixstone on June 04, 2008, 02:17:09 pm
Real interface.
Title: Re: Forwarding ports to different public ip addresses -> private ip addresses
Post by: javi on June 06, 2008, 10:51:12 am
You have to keep in mind that you need something to distinguish from which router the packets are coming out, so with real interfaces you use the interface to separate.

You could use the mac address of each router, but you will have to add custom rules to eBox without using the GUI.

Another option which is easier if you have control on your routers is configuring one of them to forward the port 80 to eBox port 81. This way you can easily distinguish and create rules:

from port 80 forward to local_IP_1:80
from port 81 forward to local_IP_2:80

Title: Re: Forwarding ports to different public ip addresses -> private ip addresses
Post by: jcanfield on June 21, 2008, 06:27:45 pm
We have two public IP addresses from our ISP.  I want be able to specify which ports get forwarded to which )internal) IP addresses.

IE publicip1:80 -> lancomputer1:8080
IE publicip2:80 -> lancomputer2:8080

Can this be done from the ebox administrator?

Would 1:1 NAT help you?  While is does require some manual editing, it might do the trick as well.

See this post:

http://forum.eboxplatform.com/index.php?topic=163.msg575#msg575