Forum Discussion
Kevin_Jones_505
Feb 16, 2007Historic F5 Account
Telnet Proxy iRule
We would like an iRule that would accept a client connection on port 23, prompt the user for the desired destination (host name or IP), and then open an associated telnet session to an external host.
Our site doesn't allow employees to go directly to these external servers. Currently, our firewalls perform this proxy function, but they are being migrated to another platform that doesn't support this feature.
The virtual server associated with this iRule would be a host address and not associated with any pool; it would likely do SNAT Automap also.
Generally, we guess it would be something like:
when CLIENT_ACCEPTED {
Send Prompt Message across client connection asking client for desired destination device
}
when CLIENT_DATA {
collect data ...
if valid IP address connect to server
if valid hostname, resolve externally and then connect to server
if neither valid IP address or hostname prompt user again
}
Does this sound plausible? Any hints or help would be appreciated.
thanks
- Kevin_Jones_505Historic F5 AccountThanks, Colin. This is a beginning. Hmm. I see your suggestion seems to include a SERVER_CONNECTED event .... and while this should happen in this application, no decisions are needed at that point. I suspect I didn't explain the problem well or I don't understand your solution.
- Kevin_Jones_505Historic F5 AccountWell, we've got our base functionality working with this:
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