Forum Discussion
Dave_Marshaloni
Nimbostratus
Mar 22, 2011Redirect User to different host based on source address
Hello All,
I'm new to iRules so this question may be stupid or not able to be accomplished.
We have a website (i.e. www.server.com) that we have. We want our internal users to be ...
George_Watkins_
May 17, 2012Historic F5 Account
Hi Darrell,
Here is the syntax I used:
irb(main):001:0> bigip = F5::IControl.new("test-ltm-ve-03", "admin", "admin", ["LocalLB.NodeAddressV2"]).get_interfaces
=> {"LocalLB.NodeAddressV2"=>>}
irb(main):002:0> bigip["LocalLB.NodeAddressV2"].set_monitor_rule(["test-ubuntu-lucid-01"], [ { "type" => "MONITOR_RULE_TYPE_SINGLE", "quorum" => 0, "monitor_templates" => [ "icmp" ] } ])
=> nil
That sets the ICMP node-specific monitor for node test-ubuntu-lucid-01. I tested using version 11.0.0.1 of the Ruby iControl library on an LTM running version 11.1.0 build 2027.0 HF2. Hope that helps, George
- Daniel_VarelaOct 10, 2017
Employee
I don't think there is a way to change the url in the browser but sending back a redirect to the client. Host header rewrite is intended to rewrite this header on its way to the back-end server so you can show them a diferent host if that's the requirement.
- Lee_SutcliffeOct 10, 2017
Nacreous
When a client accesses the URL for the first time, what address will they use?
Typically you'd want your clients to connect on (resolved by public DNS) If the HTTP response, from your internal servers contain a header different to the request. You can replace the header on response. This way your clients will only see in the address bar.