Forum Discussion

Aurel's avatar
Aurel
Icon for Cirrus rankCirrus
Mar 31, 2016

HTTP_REQUEST - invalid command name "1.1.1.1%1" while executing "$client_ip equals "2.2.2.2""

Hi guys, I try to do something that looks not difficult, but i'm really stucked. Any help is welcome.

 

I just want to check the remote client ip and push an ifile proxy.pac to him, and if not i want to push the default one.

 

I don't understand anything about how to post code there, with the autmatic html formating.Is it so complicated ?

 

14 Replies

  • Josiah_39459's avatar
    Josiah_39459
    Historic F5 Account

    if {[$client_ip equals "1.1.1.1"]}

    should be

    if {$client_ip equals "1.1.1.1"}

  • IP address comparisons were discussed quite thoroughly in this old DevCentral post. Pay particular attention to the first comment, which discusses how to strip the route domain indicator from the test address.