Forum Discussion
Rav_99576
Feb 05, 2012Nimbostratus
Redirect Port
Hello Everybody,
I have a case over here that i need to redirect the port that hits my VIP meaning
I have already a Service running on port 80 and all the requests that i receive ...
nitass
Feb 05, 2012Employee
can you try this?
[root@ve1023:Active] config b virtual list
virtual bar {
destination 172.28.19.79:any
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
virtual bar80 {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::redirect "http://[getfield [HTTP::host] ":" 1][HTTP::uri]"
}
}
[root@ve1023:Active] config curl -I http://172.28.19.79:8080/test
HTTP/1.0 302 Found
Location: http://172.28.19.79/test
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects