Forum Discussion

ijwrighty's avatar
ijwrighty
Icon for Nimbostratus rankNimbostratus
Sep 21, 2019

Single Public IP to multiple services

Hi,

 

Im just having a play with the F5 Big IP in my home lab environment.

 

I only have one external IP address but would like to utilise different services (ADFS, Exchange Web Services, OWA etc) using the single public IP. I remember way back when, TMG used to be able to determine its routing based upon the request that was coming in.

 

eg if a client requests owa.mydomain.com then it would hit the Exchange servers but if a client hit adfs.mydomain.com then it would hit ADFS even though the public IP was identical.

 

I would have to NAT from my router to the F5.

 

Hope the above makes sense.

2 Replies

  • Hi ijwrighty,

    You can redirect to pool using iRule.

    when HTTP_REQUEST {
    	switch -glob [HTTP::host] {
    		"owa.mydomain.com" { pool owa_pool }
    		"adfs.mydomain.com" { pool adfs_pool }
    		"exchange.mydomain.com" { pool exchange_pool }
    		default { pool default_pool }
    	}
    }
  • Hi,

     

    Thanks for this.

     

    Ive added these rules in with my URLs/pools but I get "cannot reach this page" from my external browser.

     

    Config wise I have this running in hyper v with 3 interfaces:

     

    MGMT: 192.168.31.250 (VLAN 310)

    1.1: 192.168.0.250 - Self IP (No VLAN, connected to router)

    1.2: 192.168.41.250 Self IP (VLAN41)

     

    I created the ADFS and Exchange configs from an iApp template.

     

    The ADFS application has an ip address of 192.168.41.12 and internally, everything works ok.

     

    Externally nothing works with the above config. One test I have done is to change the Virtual Server address to 192.168.0.199 and set the NAT to point to that and all works OK.

     

    Any ideas?