Port Maksing
Hi,
my application is running on port 8055
but I wan to give the user
and dont want to show the port number 8055 in the user browser.
ltm pool PL_NOMCAT { members { 192.168.200.42:8055 { address 192.168.200.42 session monitor-enabled state up } } monitor /Common/gateway_icmp
ltm virtual VS_NOMCAT_VIP { destination 192.168.210.242:any ip-protocol tcp mask 255.255.255.255 partition ENOC_PRODUCTION persist { ENOC_PROD_STICKY { default yes } } pool PL_NOMCAT profiles { /Common/http { } /Common/stream { } /Common/tcp { } } rules { NOMCAT_IRULE } source 0.0.0.0/0 source-address-translation { type automap } translate-port disabled vlans { ENOC_PRODUCTION_VLAN_210 } vlans-enabled I am trying the below iRule but no luck
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
HTTP::header replace Host "nomcat.abc.com:8055"
`
}
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://nomcat.abc.com:8055" "http://nomcat.abc.com"} [HTTP::header Location]]
}
` if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@http://nomcat.abc.com:8055@http://nomcat.abc.com@}
enable STREAM processing
STREAM::enable
}
}
Please assist.