QuestionQ43Verified/Identify and Resolve LTM Device IssuesCopy linkReport a problemAsk AstroTutorSave questionWhich iRule will reject every connection that originates from the 10.0.0.0/8 network?Awhen CLIENT_ACCEPTED { set remote_ip [IP::addr [IP::remote_addr] mask 8] switch $remote_ip { "10.0.0.0" { reject } "11.0.0.0" { pool pool_http1} default { pool http_pool } } }Bwhen CLIENT_ACCEPTED { set remote_ip [IP::addr [IP::local_addr] mask 8] switch $remote_ip { "10.0.0.0" { reject } "11.0.0.0" { pool pool_http1} default { pool http_pool } } }Cwhen CLIENT_ACCEPTED { set remote_ip [IP::addr [IP::client_addr] mask 255.0.0.0] switch $remote_ip { "10.0.0.0" { reject } "11.0.0.0" { pool pool_http1} default { pool http_pool } } }Dwhen CLIENT_ACCEPTED { set remote_ip [IP::addr [IP::local_addr] mask 255.0.0.0] switch $remote_ip { "10.0.0.0" { reject } "11.0.0.0" { pool pool_http1} default { pool http_pool } }Show AnswerAnswerExplanationIP::client_addr returns the connecting client’s IP address. Applying IP::addr with the 255.0.0.0 mask produces that address’s /8 network ID, so every client address in 10.0.0.0/8 evaluates to 10.0.0.0 and reaches the reject branch. IP::local_addr identifies the local virtual-server endpoint instead of the connection origin.Learn moreF5 iRules: IP::addrF5 iRules: IP::client_addrShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion