Forum Discussion

facevedo's avatar
facevedo
Icon for Nimbostratus rankNimbostratus
Sep 06, 2017

ISP with two links browsing

Hi! if i have two differents ISP links, i need perform a snat translation with a snatpool in a particular host, and that my snatpool contains one IP on ISP1 and one IP on ISP2. that is possible?

 

Example:

 

ISP1: 100.100.100.1 ISP2:200.200.200.1

 

Internal 10.10.10.10 SNAT ISP1 100.100.100.10 and 200.200.200.10

 

the host can reach internet through both isp links with the snat pool indicated

 

before i did this, but i had some troubles with the persistence.

 

Regards!

 

1 Reply

  • Hi,

    of course you can do this.

    you have multiple solution:

    • create a dedicated VS with destination 0.0.0.0/0 and source 10.10.10.10. define SNAT pool on this VLAN
    • create an irule to assign SNAT pool based on the client IP
    • create an irule to assign manually SNAT

    when you assign a SNAT Pool to a VS or with an irule, the pool member is selected based on the egress interface self IP network. so solution 1 or solution 2 are the best

    the irule can be:

    when CLIENT_ACCEPTED {
        if {[IP::remote_addr] equals "10.10.10.10"} {snatpool SNATPOOL10}
    }