Forum Discussion

Ravi_75526's avatar
Ravi_75526
Icon for Nimbostratus rankNimbostratus
Jan 04, 2013

Required irule for websphere version 8

Hi,

 

 

I am prety new to Irules. I have a client with 2 Websphere servers which each has 3 instances per server running on port 9081, 9082,9083. The servers was configured only to accept request on a specic FQDN. eg (http://). (http://<10.8.1.236 :9081/enovia/emxLogin.jsp>) same as for 9082 and 9083. i want to configure my LTM as a HTTP proxy. Any help to configure i rule to accept client traffic to it the server port 9081,9082,9083.

 

 

Thanks in Advance

 

Ravikumar

 

1 Reply

  • not sure if i understand your question correctly. do you want to replace host header to pool member (server) ip and port?

     configuration
    
    [root@ve10:Active] config  b virtual bar80 list
    virtual bar80 {
       snat automap
       pool foo
       destination 172.28.19.252:80
       ip protocol 6
       rules myrule
       profiles {
          http {}
          tcp {}
       }
    }
    [root@ve10:Active] config  b pool foo list
    pool foo {
       members 200.200.200.101:9081 {}
    }
    [root@ve10:Active] config  b rule myrule list
    rule myrule {
       when HTTP_REQUEST_SEND {
       clientside { HTTP::header replace Host "[LB::server addr]:[LB::server port]" }
    }
    }
    
     test
    
    [root@ve10:Active] config  ssldump -Aed -nni 0.0 port 80 or port 9081
    New TCP connection 1: 172.28.19.251(55626) <-> 172.28.19.252(80)
    1357299062.8498 (0.0013)  C>S
    ---------------------------------------------------------------
    HEAD /enovia/emxLogin.jsp HTTP/1.1
    User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
    Host: 172.28.19.252
    Accept: */*
    
    ---------------------------------------------------------------
    
    New TCP connection 2: 200.200.200.10(55626) <-> 200.200.200.101(9081)
    1357299062.8517 (0.0018)  C>S
    ---------------------------------------------------------------
    HEAD /enovia/emxLogin.jsp HTTP/1.1
    User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
    Host: 200.200.200.101:9081
    Accept: */*
    
    ---------------------------------------------------------------