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.....
...
Tim_W_72292
Nimbostratus
Jun 17, 2008Aaron,
So you reckon like this then
rule test_1 {
when CLIENT_ACCEPTED {
if { ( [IP::client_addr] = "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-ip ] > 0} {
TCP::payload replace 0 31 $new-ip
TCP::release
}
}
Cheers
Tim
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
