Hot!Multiple public IP on one wan port (2 networks)

Author
DamianM
New Member
  • Total Posts : 3
  • Scores: 0
  • Reward points: 0
  • Joined: 2020/09/07 04:45:41
  • Status: offline
2020/09/07 05:03:47 (permalink)
0

Multiple public IP on one wan port (2 networks)

Hi all,
I have problem with configuration multiple public IP on one Wan port.
Our provaider set as one public adres on 176.x.x.x.x/30 and then set 8 addicional public IP adresses on 89.x.x.x/29 (4 to use).
Everythink is agregated on one wan port. I would like to use one of 89.x.x.x adresses to use it for our webserver.
Interface on our Fortigate is configured on 176.x.x.x network. How can I use addicional IP's?
In "IP Pools" there is no options to set gateway or mask for 89.x.x.x network. How to set this?
 
#1

7 Replies Related Threads

    Toshi Esumi
    Expert Member
    • Total Posts : 2241
    • Scores: 215
    • Reward points: 0
    • Joined: 2014/11/06 09:56:42
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/07 08:56:06 (permalink)
    0
    A common way to provide additional public subnets by ISPs. You seem to have decided to do mappings from those public IPs to servers' private IPs, instead of routing by assigning it on a LAN interface. Then  you need to configure VIPs for inbound (DNAT) and use ippools (SNAT) for oubound to/from those servers. There are many articles in Doc libraries or on the internet for these. I listed a few below.
    https://docs.fortinet.com/document/fortigate/6.2.0/cookbook/510402/static-virtual-ips
    http://itadminguide.com/one-one-static-nat-configuration-fortigate/
    By the way, if you get a /29 additional subnet and use all of them as VIPs/SNATs, you should be able to use all 8 IPs. If you decided to just route them to LAN side (means servers have public IPs) the FGT takes one IP (ex. .1) and the rest, 5 IPs (ex. .2 - .6), should be usable for servers except the subnet (ex. .0) and broadcast (ex. .7) addresses.
    #2
    sw2090
    Expert Member
    • Total Posts : 751
    • Scores: 56
    • Reward points: 0
    • Joined: 2017/06/14 01:27:25
    • Location: Regensburg
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/08 01:02:38 (permalink)
    0
    You cannt use all 8 IPs in a /29 because the 1st ist the network address and the last is the broadcast address. So it is 6 usable addresses in /29.
    #3
    Toshi Esumi
    Expert Member
    • Total Posts : 2241
    • Scores: 215
    • Reward points: 0
    • Joined: 2014/11/06 09:56:42
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/08 08:02:55 (permalink)
    0
    Yes, you can if you use VIP/SNAT in most cases as I stated. You, of course, can't use sbnet/broadcast address if your "route" the subnet.
    #4
    emnoc
    Expert Member
    • Total Posts : 5769
    • Scores: 375
    • Reward points: 0
    • Joined: 2008/03/20 13:30:33
    • Location: AUSTIN TX AREA
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/08 08:10:45 (permalink)
    0
    Correct.
     
    As long as the /29 is not assigned to interface but routed to the firewall you can use all 8  address.
     
    Ken Felix
     

    PCNSE 
    NSE 
    StrongSwan  
    #5
    DamianM
    New Member
    • Total Posts : 3
    • Scores: 0
    • Reward points: 0
    • Joined: 2020/09/07 04:45:41
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/09 00:33:38 (permalink)
    0
    So my 60F is configured:
    WAN1 - interface set to 176.x.x.x\30 network.
    WAN2 - interface ser to my other provider set as backup.
    I have set two static routes 0.0.0.0 - wan1 gateway and 0.0.0.0 - wan2 gateway. If Wan1 is down first route is turn off. I have my webserwer in LAN. And now.
    1. I have set VIP 89.x.x.x (second free adress) to webserver adress.
    2. I have set webserver in Adresses.
    3. I have set 89.X.X.X form 1. in IP pools as Overload and set ARP Relay.
    4. I have set policy wan to lan with destination to VIP in 1 with turn off NAT.
    5. I have set policy lan to wan with NAT on and IP Pool configuration set on 3.
    What I am missing?
     
     
    #6
    DamianM
    New Member
    • Total Posts : 3
    • Scores: 0
    • Reward points: 0
    • Joined: 2020/09/07 04:45:41
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/11 04:10:40 (permalink)
    0
    I have found what I was doing wrong.
    In secondary address I have added all network address not a specyfic address from VIP. And now I can use all 6 avalible adresses.
    #7
    maick78
    New Member
    • Total Posts : 6
    • Scores: 0
    • Reward points: 0
    • Joined: 2020/06/30 11:39:31
    • Status: offline
    Re: Multiple public IP on one wan port (2 networks) 2020/09/12 13:29:42 (permalink)
    0
    Hi DamianM,
     
    I recommend you configure Vlans for each network (2 VLANs). So you add them to the port and also to the SD-WAN, in the SDWAN configuration you can put the gw of those networks.
    Also remember that you can implement it in a LACP.
     
    S2s
    #8
    Jump to:
    © 2020 APG vNext Commercial Version 5.5