Forum Discussion
Ron_Kim_110696
Nimbostratus
Mar 23, 2007Selective SNAT based on server network
I'm trying to do a selective SNAT based on where the servers are located.
The BIGIP has multiple network connections.
This iRule does not work.
Any suggestions?
I have...
JRahm
Admin
Mar 28, 2007The developers could probably be more precise in responding, but the behavior without the LB::detach indicated to me that the server side connection had already begun at the LB_SELECTED event. If that's the case, then I can no longer change my source IP, which is why I issued the LB::detach. This could be faulty logic, though.
Since I was detaching the connection, I wanted to make sure I re-attached to the same server, which is why I used the pool [LB::server pool] member $dst_server line. Without this line, detaching would kick off another load balancing decision, which may or may not impact your snat selection. As I've become more comfortable with iRules, I've tried to make the rules as generic as possible so I can reuse them on different virtuals or systems with as little rework as possible.
I have no idea on your third question. I haven't convinced my employer that I need the web accelerator yet, so I have no experience with that piece.
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