Forum Discussion
touch_93816
Nimbostratus
May 26, 2011Help Port redirection
Hi All I am new about IRule and facing a difficulty. Could anyone help me out? Thank you very much. My scenarios is there are two nodes in my pool and I want to u...
hoolio
Cirrostratus
May 26, 2011Hi Touch,
Can you clarify what's failing? Are you trying to telnet (or use an SSH client?) to connect to the virtual server address on port 5810 or port 5811? Do you have the virtual server defined on port 0 (any)? Do you have port translation enabled on the virtual server?
Can you add some debug logging and check /var/log/ltm for the output?
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Connection to [virtual name] [IP::local_addr]:[TCP::local_port]"
switch [TCP::local_port] {
"5810" {
pool newpool member 192.168.1.1 22
log local0. "[IP::client_addr]:[TCP::client_port]: Matched 5810"
}
"5811" {
pool newpool member 192.168.1.2 22
log local0. "[IP::client_addr]:[TCP::client_port]: Matched 5810"
}
}
}
when SERVER_CONNECTED {
Debug event only. Remove when done testing
log local0. "[IP::client_addr]:[TCP::client_port]: Connected to [IP::server_addr]:[TCP::server_port]"
}
Aaron
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