Forum Discussion

wilfred_pascasi's avatar
wilfred_pascasi
Icon for Nimbostratus rankNimbostratus
Oct 12, 2006

redirect aol proxy

I would like to redirect my traffic to a specific server within my server farm. If the users (clients) are AOL (1 of the IPs from AOL proxy) I will like to forward that traffic to server 1, otherwise the rest of the traffic should continue to be load balanced among the other servers.

2 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    There is a defined class of AOL proxy IP's stored in the /etc/default_classes.txt file in 4.5.x. You can reference this class in a rule. There is a releveant class example in this post: Click here

    
    rule route_aol_clients_rule { 
        if (client_addr contains one of aol) { 
           use pool aol_pool
        } 
        else { 
           use pool default_pool
        }
    }

    Note that I didn't test the syntax, but I think it should give you a place to start. Repost if you run into any problems.

    Aaron

  • Thanks. I was able to create another class as well.

     

     

    rule redirect_class_rule {

     

    if (client_addr equal one of aol or client_addr equal one of class2) {

     

    use pool not_aol_class2_pool

     

    }

     

    else {

     

    use pool test_pool

     

    }

     

    }