Forum Discussion

5 Replies

  • Hi All,

     

     

    Need help how to redirect internal users to external sites.

     

     

    Below is the example scenario that needs to work:

     

     

     

    Example flow

     

     

    Internal user ->F5 -> External site

     

     

    Example config entry:

     

     

    Internal Users

     

    -------------------------------------------------

     

    Internal DNS entry: Customer.com = 10.1.1.1

     

     

     

     

     

    External Users

     

    -------------------------------------------------

     

    External DNS entry: Customer.com = 202.1.1.1

     

    External F5 VS for customer.com = 202.1.1.1

     

     

    When external users browse customer.com needs to redirect to customer1.com <- I created an irule and mounted on the External F5 VS and currently working.

     

     

    ------------------------------------------------------

     

    What I want to do is:

     

     

    1)when internal users browse customer.com they should be redirected to customer1.com

     

     

     

    Do you think will it work if:

     

     

    1) I will create a interval F5 VS 10.1.1.1 and create an irule that will redirect them to customer1.com?

     

     

     

    Thanks.

     

  • If you can hardcode the IP address for the external customer.com site, you could simply create a pool of 202.1.1.1 and have the internal VS on 10.1.1.1 point to the pool.

     

     

    If you need to resolve the hostname customer.com dynamically you could use RESOLV::lookup to do this and then select the IP using the node command:

     

     

    https://devcentral.f5.com/wiki/iRules.resolv__lookup.ashx

     

    https://devcentral.f5.com/wiki/iRules.node.ashx

     

     

    Aaron
  • Hi Aaron,

     

     

    What do you mean hardcode the IP address for the external customer.com site? you mean create an external VS that will serve external customer?

     

     

     

    Thansk,

     

     

     

    OG
  • Hi,

     

     

    Could you please let me know the steps to do this task? I did'nt get what it means hard code the IP address?

     

     

    Could you please elaborate.

     

     

    Thanks you.

     

     

     

    Cheers,

     

     

    OG
  • 1) I will create a interval F5 VS 10.1.1.1 and create an irule that will redirect them to customer1.com? yes, i think it would work.

    What do you mean hardcode the IP address for the external customer.com site? you mean create an external VS that will serve external customer? i understand Aaron means something like this.

    [root@ve10:Active] config  b virtual list
    virtual internal_vip {
       snat automap
       pool external_site
       destination 10.1.1.1:80
       ip protocol 6
    }
    [root@ve10:Active] config  b pool external_site list
    pool external_site {
       members 172.28.19.251:80 {}
    }