Forum Discussion
Romel_77740
Nimbostratus
Jan 15, 2009irule to replace source IP with an arbitrary IP
When a packet hits a bigIP VIP, I need an irule to replace the source IP of the received packet with an arbitrary IP before forarding the packet to some destination server.
Is there an irule ca...
Romel_77740
Nimbostratus
Jan 17, 2009Ok. I am trying a simple code as shown below. When the snat command is commented out, the virtual server that is loaded with the irule forwards the packet. When I uncomment out the snat statement, the virtual server does not forward the packet that matches the source IP w.x.y.z though the log statements show in /var/log/ltm file.
I am using bigIP version LTM 9.4.4 HF3.
What am I doing wrong?
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals w.x.y.z]} {
log local0. "before snat"
snat m.n.o.p
log local0. "after snat"
}
if {[UDP::payload] contains "_avcv_"} {
log local0. "in UDP payload"
node a.b.c.d 5060
}
}
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
