Forum Discussion
junglefox_13333
Nimbostratus
Sep 10, 2013Plz help! Why is my irules not working
Hi every f5ers!
My company owns several IP and I want to allocate one(ex 6.6.6.6) for visting a website(with a static ip,ex 8.8.8.8) instead of using selfip of our f5 ltm.I wrote irules as below,as...
hoolio
Cirrostratus
Sep 10, 2013That looks okay to me. Can you add some logging, retest and check /var/log/ltm for the log output?
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Connected=[IP::local_addr]:[TCP::client_port] [virtual name]"
}
when LB_SELECTED {
if {[IP::addr [LB::server addr] equals 8.8.8.8] } {
snat 6.6.6.6
log local0. "[IP::client_addr]:[TCP::client_port]: Selected=[LB::server], SNAT=[LB::snat], matched=8.8.8.8"
} else {
snat automap
log local0. "[IP::client_addr]:[TCP::client_port]: Selected=[LB::server], SNAT=[LB::snat], not matched=8.8.8.8"
}
}
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