Forum Discussion
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.
2 Replies
- Vitaliy_Savrans
Nacreous
Hi,
maybe it's better to configure vs listenning 80 or 443?
- nitass
Employee
can you try to enable translate-port?
translate-port enabled
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com