Skip to main content
flyinstar
New Member
November 5, 2018
Question

Forward same port to different IP destination

  • November 5, 2018
  • 1 reply
  • 7222 views

Hello,

I just have a little question, i would like to forward same port to multiple destination IP.

Exemple from WAN1 to 192.168.1.100 and 101

- PORT 50001 forwarding to ip 192.168.1.100 (destination ip).

- PORT 50001 forwarding to ip 192.168.1.101

 

I can create Virtual Ip for the first port forwarding. If i create a second virtual ip to the second IP destination i have this message :

A duplicate entry already exists.

 

Can you help me please ?

Thanks in advance.

    1 reply

    Markus
    New Member
    November 5, 2018

    Hello and welcome to the forums.

     

    This is not possible with VIPs. You have either to use load balancing or other ports. Best

    ede_pfau
    SuperUser
    SuperUser
    November 5, 2018

    This would be called 'mirroring' as the device would have to duplicate the traffic in order to forward it to 2 destinations. How would the reply traffic be routed? To the first, or to the second address?

    IMHO your plan needs rethinking. As posted, this is not doable - in FortiOS, or any other firewall.

    flyinstar
    flyinstarAuthor
    New Member
    November 6, 2018

    Thank you for your responses.

    Yes, maybe the best things is to configure differents ports for each IP. I my case, this is 2 Servers not configured by me, the installator give me this recommandations. I ask him to change port on one server :)