Forum Discussion
Tim_W_72292
Nimbostratus
Jun 16, 2008Changing an ip address in an RMI connection
Hi,
I am trying to change an ip address within an RMI connection, and I am not really too sure where to start. The data is as follows:
JRMI..KN..10.10.10.141.....
...
hoolio
Cirrostratus
Jun 17, 2008Can you try this?
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals 10.10.10.152]} {
TCP::collect 30
}
}
when CLIENT_DATA {
Do a regsub search and replace
set bad_ip {15\.15\.15\.24}
set replace_ip {10\.10\.10\.141}
if { [regsub -all $bad_ip [TCP::payload] $replace_ip new_payload ] > 0} {
TCP::payload replace 0 [TCP::payload length] $new_payload
TCP::release
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
