galou_31358
Jun 14, 2011Nimbostratus
transform juniper redirector and cluster to VS using irule
Hi all
I'm new in iRule developping, i would like just transforming this redirector and cluster Juniper DX to a virtual server.
Do i need to create to 2 VS, one VS for redirect using an irule and a second standard VS with snat automap?
In this configuration, the user is redirected from 1.2.3.4:80 to the cluster 1.2.3.4:8080 with a new URI:new_uri/test
set cluster foo listen vip 1.2.3.4
set cluster foo listen netmask 255.255.255.255
set cluster foo listen port 8080
set cluster foo target host 5.6.7.8:8080
set cluster foo target name foo.bar.com
set redirector foo listen netmask 255.255.255.255
set redirector foo listen port 80
set redirector foo name foo
set redirector foo listen vip 1.2.3.4
set redirector foo port 8080
set redirector foo protocol http
set redirector foo host foo.bar.com
set redirector vega customurl new_uri/test
Thanks for your help.