MartinS
Apr 16, 2019Nimbostratus
irule based on source ip and http host
Hello, could anyone help me with irule which should choose address pool based on HTTP::host and Client IP address?
I started with
when HTTP_REQUEST {
if { ([HTTP::host] equals "sd.informe.xx") and ([IP::addr "192.168.0.0 mask 255.255.0.0" equals [IP::client_addr]])}
{
pool inside_pool_443
}
elseif { ([HTTP::host] equals "sd.informe.xx") and !([IP::addr "192.168.0.0 mask 255.255.0.0" equals [IP::client_addr]])}
{
pool pool_outside_443
}
elseif { ([HTTP::host] equals "sdint.informe.xx") and ([IP::addr "192.168.0.0 mask 255.255.0.0" equals [IP::client_addr]])}
{
pool pool_inside_444
}
}
but unfortunately I stucked and dont know how to combine http host and ip address
thank you very much
my case is related to version 12.1.0(Build 0.0.1434)
Martin